Prepare airdrop
prepare_airdropBuild the UNSIGNED HIP-904 TokenAirdropTransaction bytes to distribute HTS tokens or NFT serials to a list of accounts — no pre-association needed. Recipients without an association slot get a PENDING airdrop automatically (they claim it; you can cancel unclaimed ones). Returns the frozen transaction bytes for the SENDER's own Hedera key to sign, plus best-effort ownership/balance pre-checks. This server never signs and never holds keys — you sign and submit. The sender pays all network fees, custom fees, royalties, and association rent; the platform pays and takes nothing. Check what's pending with check_pending_airdrops.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sender_account_id": "<sender_account_id>",
"token_id": "<token_id>",
"recipients": "<recipients>"
},
"name": "prepare_airdrop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token_id | Yes | Token being airdropped, e.g. 0.0.123456 (fungible or NFT collection) | |
| recipients | Yes | 1-50 recipients; each gives either amount OR serial_numbers, not both | |
| sender_account_id | Yes | Sender's 0.0.x account id — must hold the tokens; pays all fees |