Binance Web3 Connector JS
    Preparing search index...

    Interface GetErc20ApproveTransactionRequest

    Request parameters for getErc20ApproveTransaction operation in TradingApi. GetErc20ApproveTransactionRequest

    interface GetErc20ApproveTransactionRequest {
        approveAmount: string;
        binanceChainId: string;
        nonce?: string;
        recvWindow?: number | bigint;
        tokenContractAddress: string;
        vendor?: string;
    }
    Index
    approveAmount: string

    Approval amount in the token's smallest unit (positive integer string). Example "1000000" = 1 USDT (decimals=6).

    TradingApiGetErc20ApproveTransaction

    binanceChainId: string

    Unique chain identifier (e.g. "1"=Ethereum, "56"=BSC).

    TradingApiGetErc20ApproveTransaction

    nonce?: string

    Unique request identifier for anti-replay; falls back to X-OC-SIGN if omitted.

    TradingApiGetErc20ApproveTransaction

    recvWindow?: number | bigint

    Allowed time deviation in milliseconds (default: 5000, max: 60000).

    TradingApiGetErc20ApproveTransaction

    tokenContractAddress: string

    ERC-20 token contract address to approve (0x + 40 hex chars).

    TradingApiGetErc20ApproveTransaction

    vendor?: string

    RFQ vendor name. Required for equity / RWA tokens (Ondo, BStock); pass the vendorName from the /quote response (e.g. InchFusion, CowSwap, PcsXRfq). When provided, the backend returns approve calldata targeting the vendor-specific spender contract (e.g. 1inch Router, PcsX Permit2, CowSwap VaultRelayer) instead of the default DEX router.

    For regular (non-RWA) tokens, this parameter is optional. If omitted, the backend uses the standard DEX router. If a valid RFQ vendor is passed, the backend resolves that vendor's spender — used when buying Ondo/BStock with a stablecoin, where the from-token (e.g. USDT) itself is not an RFQ token but must be approved to the RFQ vendor's router.

    TradingApiGetErc20ApproveTransaction