Get Tokens or Transactions
GetTokensBlocking
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
GetTokenTransfersBlocking
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 */
GetTransactionHistoryBlocking
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
GetErc20TransferHistoryBlocking
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
GetErc721TransferHistoryBlocking
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

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
Last updated
Was this helpful?