Navigate...
Get Approve Calldata
sdk.distributions.getApproveCalldata(req)
Generate ERC-20 token approval calldata. Returns a transaction that calls approve(spender, amount) on the token contract, allowing the Multisender contract to spend your tokens. Sign and submit this transaction before distributing ERC-20 tokens. Skip this method entirely for native currency (ETH, POL, BNB, etc.) — native tokens do not require approval. Calling it with the zero address produces an invalid approval.
Skip for native currency
This method is only needed for ERC-20 token distributions. If you are distributing native currency (ETH, POL, BNB, etc.) — i.e. using tokenAddress: 0x0000000000000000000000000000000000000000 in distribute() / createDraft() — skip this step entirely. No approval is required for native tokens.
API key required to run methods
API Key *
Base URL
request.chainId
number
required
Blockchain chain ID (determines which Multisender contract is the spender)
Chain ID
Select chain
request.tokenAddress
string
required
ERC-20 token contract address to approve. Do NOT pass the zero address here — native currency (ETH, POL, BNB, etc.) does not require approval, skip this method entirely.
Token Address
request.amount
string
required
Amount in wei (integer string, no decimals) or "max" for unlimited approval (uses maxUint256)
Amount
Amount in wei or "max" for unlimited approval
Returns
ApproveCalldata
Pre-built approval transaction — sign and submit to your wallet
to
string
Token contract address (call approve() on this)
data
string
Encoded approve(address,uint256) function calldata
value
string
Native token value — always "0x0" for approvals
spender
string
Multisender contract address being approved as spender
amount
string
Approval amount in wei
Errors
Validation error
The request is not authorized
You do not have permission to access this resource
See Also
distribute()
Next step — create distribution after approval
getApproveCalldataForDistribution()
Auto-calculate exact approval amount from an existing distribution
getChain()
Find the Multisender contract address for a chain
Generated Code