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.
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 |