Interface Asset

Generic Blockchain Asset.

interface Asset {
    decimals?: number;
    name?: string;
    tokenAddress: string;
    tokenId: null | string;
    tokenStandard?: TokenStandard;
}

Hierarchy (view full)

Properties

decimals?: number

Optional for fungible items

name?: string

Optional for ENS names

tokenAddress: string

The asset's contract address

tokenId: null | string

The asset's token ID, or null if ERC-20

tokenStandard?: TokenStandard

The token standard (e.g. "ERC721") for this asset