T402 API Reference - v2.8.0
    Preparing search index...

    Type Alias FacilitatorTonSigner

    FacilitatorTonSigner - Used by t402 facilitators to verify and settle payments

    This interface combines RPC capabilities with signing abilities:

    • Query Jetton balances and wallet addresses
    • Verify signed messages
    • Broadcast transactions
    • Wait for confirmations
    type FacilitatorTonSigner = {
        getAddresses(): readonly string[];
        getJettonBalance(
            params: { ownerAddress: string; jettonMasterAddress: string },
        ): Promise<bigint>;
        getJettonWalletAddress(
            params: { ownerAddress: string; jettonMasterAddress: string },
        ): Promise<string>;
        verifyMessage(params: VerifyMessageParams): Promise<VerifyMessageResult>;
        sendExternalMessage(signedBoc: string): Promise<string>;
        waitForTransaction(
            params: WaitForTransactionParams,
        ): Promise<TransactionConfirmation>;
        getSeqno(address: string): Promise<number>;
        isDeployed(address: string): Promise<boolean>;
    }
    Index

    Methods

    • Get all addresses this facilitator can use for signing Enables dynamic address selection for load balancing

      Returns readonly string[]

    • Query Jetton balance for an owner

      Parameters

      • params: { ownerAddress: string; jettonMasterAddress: string }

        Owner and Jetton master addresses

      Returns Promise<bigint>

      Balance in smallest units

    • Get Jetton wallet address for an owner Derives the associated Jetton wallet contract address

      Parameters

      • params: { ownerAddress: string; jettonMasterAddress: string }

        Owner and Jetton master addresses

      Returns Promise<string>

      Jetton wallet address

    • Send a pre-signed external message to the network

      Parameters

      • signedBoc: string

        Base64 encoded signed BOC

      Returns Promise<string>

      Transaction hash or identifier

    • Get current seqno for an address

      Parameters

      • address: string

        Wallet address to query

      Returns Promise<number>

      Current seqno

    • Check if a wallet is deployed (active)

      Parameters

      • address: string

        Address to check

      Returns Promise<boolean>

      true if deployed