Navigate...

K

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 *

Don't have an API key?Get one at dashboard.multisender.app

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

400

Invalid distribution id

401

The request is not authorized

403

You do not have permission to access this resource

404

Distribution not found

See Also

prepare()

Next step — prepare calldata after token approval

createDraft()

Create the draft distribution first

Previous

getApproveCalldata()

Next

distribute()

Generated Code