interface Trade {
    id: string;
    orderId: string;
    chain: {
        id: string;
        name: string;
    };
    buy: (orderbook.ERC20Item | orderbook.NativeItem)[];
    sell: (orderbook.ERC1155Item | orderbook.ERC721Item)[];
    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;
}
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)