An asset onchain scoped to a particular network, e.g. ETH on base-sepolia, or the USDC ERC20 Token on ethereum-mainnet.

Export

Asset

interface Asset {
    asset_id: string;
    contract_address?: string;
    decimals?: number;
    network_id: string;
}

Properties

asset_id: string

The ID for the asset on the network

Memberof

Asset

contract_address?: string

The optional contract address for the asset. This will be specified for smart contract-based assets, for example ERC20s.

Memberof

Asset

decimals?: number

The number of decimals the asset supports. This is used to convert from atomic units to base units.

Memberof

Asset

network_id: string

The ID of the blockchain network

Memberof

Asset