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

    Type Alias ClientTronSigner

    ClientTronSigner - Used by t402 clients to sign TRC20 transfer transactions

    This interface represents a TRON wallet that can:

    • Sign TRC20 transfer transactions
    • Query its own address

    Implementations may include:

    • TronWeb with private key
    • TronLink wallet adapter
    • Hardware wallet integration
    type ClientTronSigner = {
        address: string;
        signTransaction(params: SignTransactionParams): Promise<string>;
        getBlockInfo(): Promise<
            { refBlockBytes: string; refBlockHash: string; expiration: number },
        >;
    }
    Index

    Properties

    address: string

    The wallet address (T-prefix base58check)

    Methods

    • Sign a TRC20 transfer transaction Returns the hex-encoded signed transaction ready for broadcast

      Parameters

      • params: SignTransactionParams

        Transaction parameters

      Returns Promise<string>

      Hex-encoded signed transaction

    • Get the current reference block info for transaction building Returns block bytes and hash for replay protection

      Returns Promise<{ refBlockBytes: string; refBlockHash: string; expiration: number }>

      Reference block info