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;
    fees: orderbook.Fee[];
    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[]

Use Fees instead (taker always pays the fees)

sellerAddress: string

Use makerAddress or takerAddress instead

buyerAddress: string

Use makerAddress or takerAddress instead

makerAddress: string
takerAddress: string
fees: orderbook.Fee[]

Fees paid by the taker of the trade

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)