InputCoin: {
    amount: BN;
    assetId: string;
    outputIndex: number;
    owner: string;
    predicate: string;
    predicateData: string;
    predicateDataLength: BN;
    predicateGasUsed: BN;
    predicateLength: BN;
    txID: string;
    txPointer: TxPointer;
    type: Coin;
    witnessIndex: number;
}

Type declaration

  • amount: BN

    Amount of coins (u64)

  • assetId: string

    Asset ID of the coins (b256)

  • outputIndex: number

    Index of transaction output (u16)

  • owner: string

    Owning address or script hash (b256)

  • predicate: string

    Predicate bytecode (byte[])

  • predicateData: string

    Predicate input data (parameters) (byte[])

  • predicateDataLength: BN

    Length of predicate input data, in bytes (u64)

  • predicateGasUsed: BN

    Gas used by predicate (u64)

  • predicateLength: BN

    Length of predicate, in instructions (u64)

  • txID: string

    Hash of transaction (b256)

  • txPointer: TxPointer

    Points to the TX whose output is being spent. (TxPointer)

  • type: Coin
  • witnessIndex: number

    Index of witness that authorizes spending the coin (u16)