hedera_reject_token
Reject unwanted tokens by building an unsigned transaction that returns them to their treasury. Implements HIP-904.
Instructions
Build (unsigned) a token rejection (HIP-904) — returns an unwanted token to its treasury.
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": {
"tokenId": "<tokenId>"
},
"name": "hedera_reject_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenId | Yes | ||
| ownerAccountId | No | Holder rejecting (defaults to payer) | |
| payerAccountId | No |