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

Get chain activity by wallet

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
200Returns the active chains for the wallet address.
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request GET \
--url 'https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/chains' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
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"
}
}
}