Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.0

Get chain activity by wallet

GEThttps://deep-index.moralis.io/api/v2/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": "0x26fcbd3afebbe28d0a8684f790c48368d21665b5"
});

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"
}
}
}