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

    Interface TonClientConfig

    Configuration options for registering TON schemes to an t402Client

    interface TonClientConfig {
        signer: ClientTonSigner;
        getJettonWalletAddress: (
            ownerAddress: string,
            jettonMasterAddress: string,
        ) => Promise<string>;
        policies?: PaymentPolicy[];
        networks?: Network[];
        schemeConfig?: ExactTonSchemeConfig;
    }
    Index

    Properties

    The TON signer to use for creating payment payloads

    getJettonWalletAddress: (
        ownerAddress: string,
        jettonMasterAddress: string,
    ) => Promise<string>

    Function to get Jetton wallet address for a given owner and Jetton master This is required for building Jetton transfer messages

    policies?: PaymentPolicy[]

    Optional policies to apply to the client

    networks?: Network[]

    Optional specific networks to register If not provided, registers wildcard support (ton:*)

    schemeConfig?: ExactTonSchemeConfig

    Optional scheme configuration (gas amounts, etc.)