build_clawback_unsigned
Assemble an unsigned Clawback transaction for an issuer to revoke previously-issued tokens from a holder. Returns unsigned JSON for offline signing.
Instructions
Assemble an UNSIGNED Clawback — an issuer revokes previously-issued tokens from a holder (ported from XRPL). Account is the ISSUER; the holder is whom you claw from. NOTE: requires the issuer to have enabled clawback (AccountSet asfAllowTrustLineClawback) BEFORE issuing. Cannot claw native XAH. Returns unsigned JSON + preflight. Never signs; testnet by default.
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": {
"account": "<account>",
"holder": "<holder>",
"currency": "<currency>",
"value": "<value>"
},
"name": "build_clawback_unsigned"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | amount to claw back (positive) | |
| holder | Yes | the account to claw tokens back from | |
| account | Yes | the token issuer (you) | |
| network | No | testnet | |
| currency | Yes | 3-char ISO code or 40-hex currency |