@arkade-os/sdk Documentation - v0.4.0-next.8
    Preparing search index...

    Interface PathContext

    Context for path selection decisions.

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

    Properties

    blockHeight?: number

    Current block height (optional)

    collaborative: boolean

    Is collaborative spending available (server cooperation)?

    currentTime: number

    Current time in milliseconds

    role?: string

    Explicit role override (for multi-party contracts like VHTLC). If not provided, handler may derive role from walletPubKey.

    The specific VTXO being evaluated

    walletPubKey?: string

    Wallet's public key (x-only, 32 bytes hex). Used by handlers to determine wallet's role in multi-party contracts.