qbit-rpc
    Preparing search index...

    Interface WalletTransaction

    gettransaction. Amounts are signed bits: sends and fees are negative.

    interface WalletTransaction {
        amountBits: bigint;
        bip125Replaceable: "unknown" | "yes" | "no";
        blockHash?: string;
        blockHeight?: number;
        blockIndex?: number;
        blockTime?: number;
        comment?: string;
        confirmations: number;
        details: readonly (
            | {
                abandoned: boolean;
                address?: string;
                amountBits: bigint;
                category: WalletTxCategory;
                feeBits?: bigint;
                label?: string;
                parentDescs?: readonly string[];
                vout: number;
            }
            | {
                abandoned: boolean;
                address?: undefined;
                amountBits: bigint;
                category: "send";
                feeBits: bigint;
                label?: undefined;
                parentDescs?: undefined;
                vout?: undefined;
            }
        )[];
        feeBits?: bigint;
        generated?: boolean;
        hex: string;
        lastProcessedBlock: LastProcessedBlock;
        mempoolConflicts: readonly string[];
        parentDescs?: readonly string[];
        replacedByTxid?: string;
        replacesTxid?: string;
        time: number;
        timeReceived: number;
        to?: string;
        trusted?: boolean;
        txid: string;
        walletConflicts: readonly string[];
        wtxid: string;
    }
    Index
    amountBits: bigint

    The net amount for the wallet, in bits: negative for a send.

    bip125Replaceable: "unknown" | "yes" | "no"

    Whether it or an unconfirmed ancestor signals BIP 125 replaceability; unknown for an unconfirmed transaction outside the mempool whose ancestors the wallet does not know.

    blockHash?: string

    The block holding the transaction.

    blockHeight?: number

    The height of the block holding it.

    blockIndex?: number

    Its index in that block.

    blockTime?: number

    That block's time, in UNIX epoch seconds.

    comment?: string

    The comment stored with the transaction, when not empty.

    confirmations: number

    Negative when the transaction conflicted that many blocks ago.

    details: readonly (
        | {
            abandoned: boolean;
            address?: string;
            amountBits: bigint;
            category: WalletTxCategory;
            feeBits?: bigint;
            label?: string;
            parentDescs?: readonly string[];
            vout: number;
        }
        | {
            abandoned: boolean;
            address?: undefined;
            amountBits: bigint;
            category: "send";
            feeBits: bigint;
            label?: undefined;
            parentDescs?: undefined;
            vout?: undefined;
        }
    )[]

    One entry per output that concerns the wallet, and per output a send pays, or one fee-only entry. A change-only self-transfer (every input is this wallet's, every output is change) has no such output: if it pays a fee, qbit Core v1.0.1 and later give it one fee-only send entry, its only one, with amountBits 0n, the fee in feeBits, and no vout, address, label or parentDescs; v1.0.0 gives it none. Check vout !== undefined, or a category other than send, before using an entry as an output.

    feeBits?: bigint

    The fee, in bits, negative. Only for a send.

    generated?: boolean

    Present, as true, when the transaction's only input is a coinbase.

    hex: string

    The serialized transaction, as hex.

    lastProcessedBlock: LastProcessedBlock

    The block this information was computed at.

    mempoolConflicts: readonly string[]

    Mempool transactions that conflict with this one or one of its ancestors.

    parentDescs?: readonly string[]

    The descriptors of the output script received. Only for a receive.

    replacedByTxid?: string

    The transaction that replaced this one, when bumpfee made it. Only for a send.

    replacesTxid?: string

    The transaction this one replaces, when bumpfee made it. Only for a send.

    time: number

    The transaction's time, in UNIX epoch seconds.

    timeReceived: number

    When the wallet received it, in UNIX epoch seconds.

    to?: string

    The to comment stored with the transaction, when there is one.

    trusted?: boolean

    Whether the wallet trusts the transaction and will spend its outputs. Only with 0 or negative confirmations.

    txid: string

    The transaction's txid.

    walletConflicts: readonly string[]

    txids of wallet transactions spending the same inputs, confirmed or not: a fee bump's replacement is one.

    wtxid: string

    The transaction's witness txid (wtxid).