@arkade-os/sdk Documentation - v0.4.21
    Preparing search index...

    Interface PathContext

    Context for path selection decisions.

    interface PathContext {
        blockHeight?: number;
        collaborative: boolean;
        currentTime: number;
        role?: string;
        vtxo?: VirtualCoin;
        walletDescriptor?: string;
        walletPubKey?: string;
    }
    Index

    Properties

    blockHeight?: number

    Current block height, when known.

    collaborative: boolean

    Whether collaborative spending is available through server cooperation.

    currentTime: number

    Current time in milliseconds.

    role?: string

    Explicit role override for multi-party contracts such as VHTLC. If not provided, the handler may derive the role by matching walletDescriptor (preferred) — or walletPubKey as a fallback — against the contract's sender/receiver params.

    The specific virtual output being evaluated.

    walletDescriptor?: string

    Wallet's descriptor for signing. Format: tr(pubkey) for static keys, tr([fingerprint/path']xpub/0/{index}) for HD. Used by handlers to determine wallet's role in multi-party contracts.

    walletPubKey?: string

    Wallet's public key (x-only, 32 bytes hex).

    Use walletDescriptor instead.