Skip to main content
Version: 2.2

Get chain activity by wallet

Don't have an API key yet?

Start using this API for your project today.

Get your free API key
GEThttps://deep-index.moralis.io/api/v2.2/wallets/:address/chains

Get the active chains for a wallet address.

PATH PARAMS
addressstringrequired
Wallet address
QUERY PARAMS
chainsarray
The chains to query.
No items in the array
Responses
API KEY
import Moralis from 'moralis';

try {
await Moralis.start({
apiKey: "YOUR_API_KEY"
});

const response = await Moralis.EvmApi.wallets.getWalletActiveChains({
"address": "0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326"
});

console.log(response.raw);
} catch (e) {
console.error(e);
}
Response Example
{
"address": "0x057Ec652A4F150f7FF94f089A38008f49a0DF88e",
"active_chains": {
"chain": "eth",
"chain_id": "0x1",
"first_transaction": {
"block_number": "123456789",
"block_timestamp": "2022-08-23T20:58:31.000Z",
"transaction_hash": "0x2d30ca6f024dbc1307ac8a1a44ca27de6f797ec22ef20627a1307243b0ab7d09"
},
"last_transaction": {
"block_number": "123456789",
"block_timestamp": "2022-08-23T20:58:31.000Z",
"transaction_hash": "0x2d30ca6f024dbc1307ac8a1a44ca27de6f797ec22ef20627a1307243b0ab7d09"
}
}
}