fetch_token_as_asset#

fetch_token_as_asset(web3, contract_address)[source]#

Get ERC-20 token details suitable for persistent stroage.

Parameters:
  • contract_address (str) – Address of an ERC-20 contract

  • web3 (Web3) –

Returns:

Asset identifier that can be use with persistent storage.

Return type:

AssetIdentifier