API ReferenceWallet APIGet Wallet DetailsGet chain activity by walletVersion: 2.2Get chain activity by walletGEThttps://deep-index.moralis.io/api/v2.2/wallets/:address/chainsGet the active chains for a wallet address.PATH PARAMSaddressstringrequiredWallet addressQUERY PARAMSchainsarrayThe chains to query.No items in the arrayAdd ItemResponses200 Returns the active chains for the wallet address.objectAPI KEYTest Live APINode.jsPythoncURLGoPHPimport 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);}from moralis import evm_apiapi_key = "YOUR_API_KEY"params = { "address": "0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326"}result = evm_api.wallets.get_wallet_active_chains( api_key=api_key, params=params,)print(result)curl --request GET \ --url 'https://deep-index.moralis.io/api/v2.2/wallets/0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326/chains' \ --header 'accept: application/json' \ --header 'X-API-Key: YOUR_API_KEY' package mainimport ( "fmt" "net/http" "io/ioutil")func main() { url := "https://deep-index.moralis.io/api/v2.2/wallets/0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326/chains" req, _ := http.NewRequest("GET", url, payload) req.Header.Add("Accept", "application/json") req.Header.Add("X-API-Key", "YOUR_API_KEY") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body))}<?php// Dependencies to install:// $ composer require guzzlehttp/guzzlerequire_once('vendor/autoload.php');$client = new \GuzzleHttp\Client();$response = $client->request('GET', 'https://deep-index.moralis.io/api/v2.2/wallets/0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326/chains', [ 'headers' => [ 'Accept' => 'application/json', 'X-API-Key' => 'YOUR_API_KEY', ],]);echo $response->getBody();Response Example200 Returns the active chains for the wallet address.{ "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" } }}