Vana SDK - v3.5.0
    Preparing search index...

    Interface EscrowGatewayClient

    Minimal client for the gateway's escrow endpoints.

    Construct with createEscrowGatewayClient.

    interface EscrowGatewayClient {
        submitDeposit(
            params: SubmitDepositParams,
        ): Promise<DepositSubmissionResult>;
        getEscrowBalance(account: `0x${string}`): Promise<EscrowBalanceResult>;
        syncEscrowBalance(account: `0x${string}`): Promise<EscrowBalanceSyncResult>;
        payForOp(params: PayForOpParams): Promise<EscrowPayResult>;
    }
    Index

    Methods

    • Force a reconciliation pass then return the updated balance.

      Triggers the gateway's lazy-confirmation worker for the account — any submitted deposits that have reached the configured confirmation level are credited before the balance is returned. Prefer this over getEscrowBalance when you need a fresh view after a deposit.

      Parameters

      • account: `0x${string}`

      Returns Promise<EscrowBalanceSyncResult>