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

    Type Alias FacilitatorSvmSigner

    Minimal facilitator signer interface for SVM operations. Supports multiple signers for load balancing and high availability. All implementation details (RPC clients, key management, signature handling) are hidden.

    type FacilitatorSvmSigner = {
        getAddresses(): readonly Address[];
        signTransaction(
            transaction: string,
            feePayer: Address,
            network: string,
        ): Promise<string>;
        simulateTransaction(transaction: string, network: string): Promise<void>;
        sendTransaction(transaction: string, network: string): Promise<string>;
        confirmTransaction(signature: string, network: string): Promise<void>;
    }
    Index

    Methods

    • Get all addresses this facilitator can use as fee payers Enables dynamic address selection for load balancing and key rotation

      Returns readonly Address[]

      Array of addresses available for signing

    • Sign a partially-signed transaction with the signer matching feePayer Transaction is decoded, signed, and re-encoded internally

      Parameters

      • transaction: string

        Base64 encoded partially-signed transaction

      • feePayer: Address

        Fee payer address (determines which signer to use)

      • network: string

        CAIP-2 network identifier

      Returns Promise<string>

      Base64 encoded fully-signed transaction

      Error if no signer exists for feePayer or signing fails

    • Simulate a signed transaction to verify it would succeed Implementation manages RPC client selection and simulation details

      Parameters

      • transaction: string

        Base64 encoded signed transaction

      • network: string

        CAIP-2 network identifier

      Returns Promise<void>

      Error if simulation fails

    • Send a signed transaction to the network Implementation manages RPC client selection and sending details

      Parameters

      • transaction: string

        Base64 encoded signed transaction

      • network: string

        CAIP-2 network identifier

      Returns Promise<string>

      Transaction signature

      Error if send fails

    • Wait for transaction confirmation Allows signer to implement custom retry logic, timeouts, and confirmation strategies

      Parameters

      • signature: string

        Transaction signature to confirm

      • network: string

        CAIP-2 network identifier

      Returns Promise<void>

      Promise that resolves when transaction is confirmed

      Error if confirmation fails or times out