interface Trade {
    id: string;
    orderId: string;
    chain: {
        id: string;
        name: string;
    };
    buy: (
        | NativeItem
        | ERC20Item
        | ERC721Item
        | ERC1155Item)[];
    sell: (ERC20Item | ERC721Item | ERC1155Item)[];
    buyerFees: orderbook.Fee[];
    sellerAddress: string;
    buyerAddress: string;
    makerAddress: string;
    takerAddress: string;
    indexedAt: string;
    blockchainMetadata: {
        transactionHash: string;
        blockNumber: string;
        transactionIndex: string;
        logIndex: string;
    };
}

Properties

id: string
orderId: string
chain: {
    id: string;
    name: string;
}
buy: (
    | NativeItem
    | ERC20Item
    | ERC721Item
    | ERC1155Item)[]
buyerFees: orderbook.Fee[]
sellerAddress: string
buyerAddress: string
makerAddress: string
takerAddress: string
indexedAt: string

Time the on-chain event was indexed by the Immutable order book service

blockchainMetadata: {
    transactionHash: string;
    blockNumber: string;
    transactionIndex: string;
    logIndex: string;
}

Type declaration

  • transactionHash: string

    The transaction hash of the trade

  • blockNumber: string

    EVM block number (uint64 as string)

  • transactionIndex: string

    Transaction index in a block (uint32 as string)

  • logIndex: string

    The log index of the fulfillment event in a block (uint32 as string)