@cfxlabsinc/b2b-services
    Preparing search index...

    Type Alias ObservedChainTransaction<K>

    One EVM, Bitcoin or Tron transaction as the chain settled it, whatever vendor read it. K narrows chainKey, a b2b.chain.key.

    type ObservedChainTransaction<K extends string = string> = {
        blockHeight: number;
        blockTime: Temporal.Instant;
        chainData: JsonObject;
        chainKey: K;
        deltas: {
            address: string;
            amount: string;
            mint: string;
            programId: string;
        }[];
        error: JsonValue
        | null;
        family: "EVM" | "BITCOIN" | "TRON";
        fee: string;
        feePayer: string | null;
        indexWithinBlock: number;
        internalFor: string | null;
        status: "FINALIZED" | "FAILED";
        txHash: string;
    }

    Type Parameters

    • K extends string = string
    Index
    blockHeight: number
    blockTime: Temporal.Instant
    chainData: JsonObject
    chainKey: K
    deltas: { address: string; amount: string; mint: string; programId: string }[]

    One per (address, mint), base units, signed. Only addresses the tx touched.

    error: JsonValue | null
    family: "EVM" | "BITCOIN" | "TRON"
    fee: string

    Base units, paid by feePayer; already inside the payer's native delta.

    feePayer: string | null
    indexWithinBlock: number
    internalFor: string | null

    EVM: the lowercased address internal transfers were fetched for. Native deltas are complete for it alone; others lack internal-transfer movement. null elsewhere.

    status: "FINALIZED" | "FAILED"
    txHash: string