Mark Token as Spam
mark_token_spamMark or unmark a token as spam so unwanted dust or airdrops are excluded from accounting and existing records are updated; this queued action defaults to marking spam and returns a requestId.
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": {
"workspaceRef": "<workspaceRef>",
"portfolioRef": "<portfolioRef>",
"chainId": "<chainId>",
"tokenAddress": "<tokenAddress>"
},
"name": "mark_token_spam"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isSpam | No | Spam flag to set (default true; false unmarks) | |
| reason | No | Optional immutable root reason. Nonempty bytes are preserved exactly; use ptx:<uuid> for transaction references. | |
| chainId | Yes | Chain ID of the token (from a walletOperation) | |
| portfolioRef | Yes | Portfolio exact name or slug | |
| tokenAddress | Yes | Token contract address (from a walletOperation) | |
| workspaceRef | Yes | Workspace exact name or slug |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| status | Yes | ||
| success | No | ||
| requestId | No |