{"openapi":"3.1.0","info":{"title":"Avalanche Data API (BYOK) API","version":"0.1.0","description":"Avalanche Data API (BYOK) lets an AI assistant read your own Avalanche Data API data through the Avalanche Data API API with a key you supply (AvaCloud Data API key (free account)). Read-only: 12 tools (list_chains, get_chain, list_latest_blocks, get_block, get_native_balance, list_erc20_balances, list_erc721_balances, list_address_transactions, list_address_erc20_transfers, get_transaction,...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-avacloud-data.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-avacloud-data/docs"},"termsOfService":"https://connectorbay.com/byok-avacloud-data/terms"},"servers":[{"url":"https://byok-avacloud-data.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-avacloud-data/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_chains":{"post":{"operationId":"list_chains","summary":"List the EVM chains the Data API indexes (Avalanche C-Chain and L1s) with chain id, name, VM, explorer URL, native token","description":"List the EVM chains the Data API indexes (Avalanche C-Chain and L1s) with chain id, name, VM, explorer URL, native token and status. Use for \"Which Avalanche chains does the Data API support\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"network":{"anyOf":[{"enum":["mainnet","fuji","testnet"],"type":"string"},{"type":"null"}],"default":null,"description":"mainnet or testnet/fuji.","title":"Network"},"feature":{"anyOf":[{"enum":["nftIndexing","webhooks","teleporter"],"type":"string"},{"type":"null"}],"default":null,"description":"Only chains with this feature enabled.","title":"Feature"}},"title":"list_chainsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_chain":{"post":{"operationId":"get_chain","summary":"Get one chain's name, status, VM, explorer URL, RPC URL and native token. Use for \"What is the native token and explorer","description":"Get one chain's name, status, VM, explorer URL, RPC URL and native token. Use for \"What is the native token and explorer of chain 43114\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"chain_id":{"description":"EVM chain id: 43114 Avalanche C-Chain, 43113 Fuji testnet, or any L1 listed by list_chains.","maxLength":30,"title":"Chain Id","type":"string"}},"required":["chain_id"],"title":"get_chainArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_latest_blocks":{"post":{"operationId":"list_latest_blocks","summary":"List the latest blocks of an EVM chain, newest first, with transaction count, gas used and fees. Use for \"What are the l","description":"List the latest blocks of an EVM chain, newest first, with transaction count, gas used and fees. Use for \"What are the latest blocks on Avalanche C-Chain\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"chain_id":{"description":"EVM chain id: 43114 Avalanche C-Chain, 43113 Fuji testnet, or any L1 listed by list_chains.","maxLength":30,"title":"Chain Id","type":"string"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Items per page, 1 to 100 (default 10).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Page token from the previous answer's nextPageToken to get the next page.","title":"Page Token"}},"required":["chain_id"],"title":"list_latest_blocksArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_block":{"post":{"operationId":"get_block","summary":"Get one block by number or hash: time, transaction count, gas used and fees. Use for \"Show block 49889407 on Avalanche C","description":"Get one block by number or hash: time, transaction count, gas used and fees. Use for \"Show block 49889407 on Avalanche C-Chain\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"chain_id":{"description":"EVM chain id: 43114 Avalanche C-Chain, 43113 Fuji testnet, or any L1 listed by list_chains.","maxLength":30,"title":"Chain Id","type":"string"},"block_id":{"description":"Block number or block hash.","maxLength":70,"title":"Block Id","type":"string"}},"required":["chain_id","block_id"],"title":"get_blockArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_native_balance":{"post":{"operationId":"get_native_balance","summary":"Get the native token balance (for example AVAX) of an address with its price and value in a currency. Use for \"How much ","description":"Get the native token balance (for example AVAX) of an address with its price and value in a currency. Use for \"How much AVAX does 0x71C7656EC7ab88b098defB751B7401B5f6d8976F hold\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"chain_id":{"description":"EVM chain id: 43114 Avalanche C-Chain, 43113 Fuji testnet, or any L1 listed by list_chains.","maxLength":30,"title":"Chain Id","type":"string"},"address":{"description":"Wallet or contract address, 0x followed by 40 hex characters.","maxLength":42,"title":"Address","type":"string"},"block_number":{"anyOf":[{"maxLength":20,"type":"string"},{"type":"null"}],"default":null,"description":"Block to read at (latest when omitted).","title":"Block Number"},"currency":{"anyOf":[{"enum":["usd","eur","aud","cad","chf","clp","cny","czk","dkk","gbp","hkd","huf","jpy","nzd"],"type":"string"},{"type":"null"}],"default":null,"description":"Currency for values: usd (default), eur, aud, cad, chf, clp, cny, czk, dkk, gbp, hkd, huf, jpy or nzd.","title":"Currency"}},"required":["chain_id","address"],"title":"get_native_balanceArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_erc20_balances":{"post":{"operationId":"list_erc20_balances","summary":"List the ERC-20 token balances of an address with price and value; spam tokens are hidden by default. Use for \"Which ERC","description":"List the ERC-20 token balances of an address with price and value; spam tokens are hidden by default. Use for \"Which ERC-20 tokens does 0x71C7656EC7ab88b098defB751B7401B5f6d8976F hold on Avalanche\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"chain_id":{"description":"EVM chain id: 43114 Avalanche C-Chain, 43113 Fuji testnet, or any L1 listed by list_chains.","maxLength":30,"title":"Chain Id","type":"string"},"address":{"description":"Wallet or contract address, 0x followed by 40 hex characters.","maxLength":42,"title":"Address","type":"string"},"page_size":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Items per page, 1 to 500 (default 10).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Page token from the previous answer's nextPageToken to get the next page.","title":"Page Token"},"filter_spam_tokens":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":true,"description":"True (default) hides tokens flagged as spam.","title":"Filter Spam Tokens"},"contract_addresses":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated token contract addresses to filter by.","title":"Contract Addresses"},"currency":{"anyOf":[{"enum":["usd","eur","aud","cad","chf","clp","cny","czk","dkk","gbp","hkd","huf","jpy","nzd"],"type":"string"},{"type":"null"}],"default":null,"description":"Currency for values: usd (default), eur, aud, cad, chf, clp, cny, czk, dkk, gbp, hkd, huf, jpy or nzd.","title":"Currency"}},"required":["chain_id","address"],"title":"list_erc20_balancesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_erc721_balances":{"post":{"operationId":"list_erc721_balances","summary":"List the ERC-721 NFTs an address owns with collection name, symbol and token id. Use for \"Which NFTs does 0x71C7656EC7ab","description":"List the ERC-721 NFTs an address owns with collection name, symbol and token id. Use for \"Which NFTs does 0x71C7656EC7ab88b098defB751B7401B5f6d8976F own on Avalanche\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"chain_id":{"description":"EVM chain id: 43114 Avalanche C-Chain, 43113 Fuji testnet, or any L1 listed by list_chains.","maxLength":30,"title":"Chain Id","type":"string"},"address":{"description":"Wallet or contract address, 0x followed by 40 hex characters.","maxLength":42,"title":"Address","type":"string"},"page_size":{"anyOf":[{"maximum":500,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Items per page, 1 to 500 (default 10).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Page token from the previous answer's nextPageToken to get the next page.","title":"Page Token"},"contract_address":{"anyOf":[{"maxLength":42,"type":"string"},{"type":"null"}],"default":null,"description":"Only NFTs of this collection contract.","title":"Contract Address"}},"required":["chain_id","address"],"title":"list_erc721_balancesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_address_transactions":{"post":{"operationId":"list_address_transactions","summary":"List the native transactions of an address (sent or received) newest first, with status, parties, value and gas. Use for","description":"List the native transactions of an address (sent or received) newest first, with status, parties, value and gas. Use for \"What are the latest transactions of 0x71C7656EC7ab88b098defB751B7401B5f6d8976F on Avalanche\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"chain_id":{"description":"EVM chain id: 43114 Avalanche C-Chain, 43113 Fuji testnet, or any L1 listed by list_chains.","maxLength":30,"title":"Chain Id","type":"string"},"address":{"description":"Wallet or contract address, 0x followed by 40 hex characters.","maxLength":42,"title":"Address","type":"string"},"start_block":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"First block of the range, inclusive.","title":"Start Block"},"end_block":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Last block of the range, exclusive.","title":"End Block"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Items per page, 1 to 100 (default 10).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Page token from the previous answer's nextPageToken to get the next page.","title":"Page Token"}},"required":["chain_id","address"],"title":"list_address_transactionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_address_erc20_transfers":{"post":{"operationId":"list_address_erc20_transfers","summary":"List the ERC-20 token transfers of an address with token, parties, value and transaction hash. Use for \"Which ERC-20 tra","description":"List the ERC-20 token transfers of an address with token, parties, value and transaction hash. Use for \"Which ERC-20 transfers did 0x71C7656EC7ab88b098defB751B7401B5f6d8976F make on Avalanche\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"chain_id":{"description":"EVM chain id: 43114 Avalanche C-Chain, 43113 Fuji testnet, or any L1 listed by list_chains.","maxLength":30,"title":"Chain Id","type":"string"},"address":{"description":"Wallet or contract address, 0x followed by 40 hex characters.","maxLength":42,"title":"Address","type":"string"},"start_block":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"First block of the range, inclusive.","title":"Start Block"},"end_block":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"description":"Last block of the range, exclusive.","title":"End Block"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Items per page, 1 to 100 (default 10).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Page token from the previous answer's nextPageToken to get the next page.","title":"Page Token"}},"required":["chain_id","address"],"title":"list_address_erc20_transfersArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_transaction":{"post":{"operationId":"get_transaction","summary":"Get one transaction by hash: status, parties, value, gas and fees (token transfers and logs are left out). Use for \"Show","description":"Get one transaction by hash: status, parties, value, gas and fees (token transfers and logs are left out). Use for \"Show transaction 0x3e9303f81be00b4af28515dab7b914bf3dbff209ea10e7071fa24d4af0a112d4 on Avalanche\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"chain_id":{"description":"EVM chain id: 43114 Avalanche C-Chain, 43113 Fuji testnet, or any L1 listed by list_chains.","maxLength":30,"title":"Chain Id","type":"string"},"tx_hash":{"description":"Transaction hash, 0x followed by 64 hex characters.","maxLength":70,"title":"Tx Hash","type":"string"}},"required":["chain_id","tx_hash"],"title":"get_transactionArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_latest_transactions":{"post":{"operationId":"list_latest_transactions","summary":"List the latest transactions on an EVM chain, optionally only failed or successful ones. Use for \"What are the latest fa","description":"List the latest transactions on an EVM chain, optionally only failed or successful ones. Use for \"What are the latest failed transactions on Avalanche C-Chain\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"chain_id":{"description":"EVM chain id: 43114 Avalanche C-Chain, 43113 Fuji testnet, or any L1 listed by list_chains.","maxLength":30,"title":"Chain Id","type":"string"},"page_size":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Items per page, 1 to 100 (default 10).","title":"Page Size"},"page_token":{"anyOf":[{"maxLength":500,"type":"string"},{"type":"null"}],"default":null,"description":"Page token from the previous answer's nextPageToken to get the next page.","title":"Page Token"},"status":{"anyOf":[{"enum":["failed","success"],"type":"string"},{"type":"null"}],"default":null,"description":"Only failed or successful transactions.","title":"Status"}},"required":["chain_id"],"title":"list_latest_transactionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_chains_for_address":{"post":{"operationId":"list_chains_for_address","summary":"List the indexed chains where an address has activity. Use for \"On which Avalanche chains is 0x71C7656EC7ab88b098defB751","description":"List the indexed chains where an address has activity. Use for \"On which Avalanche chains is 0x71C7656EC7ab88b098defB751B7401B5f6d8976F active\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"address":{"description":"Wallet or contract address, 0x followed by 40 hex characters.","maxLength":42,"title":"Address","type":"string"}},"required":["address"],"title":"list_chains_for_addressArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}