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

    Type Alias ExactLegacyPayload

    Payload for exact-legacy scheme (approve + transferFrom pattern) Used for legacy USDT and other tokens without EIP-3009 support

    type ExactLegacyPayload = {
        signature?: Hex;
        authorization: {
            from: Address;
            to: Address;
            value: string;
            validAfter: string;
            validBefore: string;
            nonce: Hex;
            spender: Address;
        };
    }
    Index

    Properties

    signature?: Hex
    authorization: {
        from: Address;
        to: Address;
        value: string;
        validAfter: string;
        validBefore: string;
        nonce: Hex;
        spender: Address;
    }

    Type Declaration

    • from: Address

      Payer address

    • to: Address

      Recipient address

    • value: string

      Payment amount in token units

    • validAfter: string

      Unix timestamp after which the authorization is valid

    • validBefore: string

      Unix timestamp before which the authorization is valid

    • nonce: Hex

      Unique nonce to prevent replay attacks

    • spender: Address

      Facilitator address that will call transferFrom