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

    Interface UtilaTransactionPayload

    The subset of Utila's v2Transaction this schema and its readers rely on.

    Typed structurally on purpose, for the same reason ParsedSolanaTransactionEvent is: db sits at the bottom of the dependency graph, and the authoritative type is UtilaTransaction in @cfxlabsinc/clients — which is what the write site asserts against, and which pulls openapi-fetch and the 6,000-line generated utila.d.ts with it. Declaring that here would make every consumer of db depend on the Utila client to describe a column two packages write.

    Every field is optional because Utila's generated schema makes them so. Deliberately partial: the fee derivation and the sponsor lookup are still open questions (§ 8.1, § 8.5), and pinning a shape nobody has verified against a prod payload would bake a guess into the schema. Anything not named here is still stored — this types the read, not the write.

    interface UtilaTransactionPayload {
        blockNumber?: string;
        confirmTime?: string;
        createTime?: string;
        direction?: string;
        gasStationOrder?: string;
        hash?: string;
        mineTime?: string;
        name?: string;
        network?: string;
        request?: {
            externalId?: string;
            initiator?: string;
            sourceWallet?: string;
        };
        state?: string;
        subType?: string;
        transfers?: UtilaTransactionTransfer[];
        type?: string;
    }
    Index
    blockNumber?: string
    confirmTime?: string
    createTime?: string
    direction?: string
    gasStationOrder?: string

    vaults/{vault_id}/gasStations/{gas_station_id}/orders/{order_id}.

    hash?: string
    mineTime?: string
    name?: string

    vaults/{vault_id}/transactions/{transaction_id}.

    network?: string

    networks/{network_id}. Absent for connection transactions.

    request?: { externalId?: string; initiator?: string; sourceWallet?: string }
    state?: string
    subType?: string
    type?: string