Navigate...
Get Approve Calldata for Distribution
sdk.distributions.getApproveCalldataForDistribution(id)
Generate ERC-20 approval calldata for a specific distribution. Automatically calculates the exact approval amount based on the distribution's totalAmount — no need to compute it yourself. Use this in the two-step flow after creating a draft.
API key required to run methods
API Key *
Base URL
id
string
required
Distribution ID (must have a non-zero totalAmount)
Distribution ID
Returns
ApproveCalldata
Pre-built approval transaction with exact amount from the distribution
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
Exact approval amount in wei (from distribution totalAmount)
Errors
Invalid distribution id
The request is not authorized
You do not have permission to access this resource
Distribution not found
See Also
getApproveCalldata()
Manual approval with custom amount (for single-step flow)
prepare()
Next step — prepare calldata after token approval
createDraft()
Create the draft distribution first
Generated Code