Skip to main content
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.
Responses
API KEY
import Moralis from 'moralis';

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

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

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