Tokens and Transactions can be queried by Blockscout api or Cronoscan api. Please find the Blockscout api address or apply the Cronoscan API key before using them:
{% content-ref url="../../../block-explorers/block-explorer-and-api-keys.md" %} block-explorer-and-api-keys.md {% endcontent-ref %}
given the BlockScout REST API base url and the account address (hexadecimal), it will return the list of all owned tokens (ref: https://cronos.org/explorer/testnet3/api-docs)
Blockscout Base Url
: the base url of the BlockScout API (e.g. https://cronos.org/explorer/api)Account Address
: the account address to queryOutput
: the output of the querySuccess
: success of the queryOutput Message
: error message of the query
given the BlockScout REST API base url and the account address (hexadecimal; required) and optional contract address (hexadecimal; optional -- it can be empty if the option is ByAddress), it will return all the token transfers (ERC20, ERC721... in the newer BlockScout releases, also ERC1155) (ref: https://cronos.org/explorer/testnet3/api-docs)
NOTE: QueryOption::ByContract is not supported by BlockScout
Blockscout Base Url
: the base url of the BlockScout API (e.g. https://cronos.org/explorer/api)Address
: the account address to queryContract Address
: the contract address to queryOption
: the query optionOutput
: the output of the querySuccess
: success of the queryOutput Message
: error message of the query */
crono-scan api, get transaction history
Address
: the address to queryApikey
: the api keyOutput
: the output of the querySuccess
: success of the queryOutput Message
: error message of the query
crono-scan api, get erc20 transaction history
Address
: the address to queryContract Address
: the contract address to queryOption
: the query optionApi Key
: the api keyOutput
: the output of the querySuccess
: success of the queryOutput Message
: error message of the query
crono-scan api, get erc721 transaction history
returns the ERC721 transfers of a given address of a given contract.
(address can be empty if option is ByContract)
default option is by address
The API key can be obtained from https://cronoscan.com
Address
: the address to queryContract Address
: the contract address to queryOption
: the query optionApi Key
: the api keyOutput
: the output of the querySuccess
: success of the queryOutput Message
: error message of the query