Asset
Description
The asset object defines currencies in a format supported by the Metafi SDK.
Structure
Field Name | Type | Description |
---|---|---|
| String | Name of the asset, eg. "Ethereum" |
| String | Symbol of the asset, eg. "ETH" |
| chain (class) | Chain on which the asset resides |
| Number | Number of decimal places of precision for the asset. eg. 18 for ETH |
| boolean | Whether the asset is the native currency for the chain |
| String | Image of the currency symbol |
| String | Contract address if the currency is an ERC20 token |
| String | Key for the chain in the |
Supported Assets
By default, we support the following assets:
eth_eth
eth_usdc
goerli_eth
goerli_usdc
Usage
Last updated