Revoke a credential (writes to the ledger)
revoke_credentialSubmits a CredentialDelete transaction to withdraw a credential so it no longer counts as held on the XRP Ledger; requires write access and spends XRP.
Instructions
Submit a CredentialDelete transaction, withdrawing one credential so it no longer counts as held. THIS WRITES TO THE LEDGER and spends XRP.
A credential is identified by the triple (issuer, subject, credential_type). The issuer or the subject may sign the delete.
This tool is only available if the server was started with --allow-writes. The signing seed comes from the OS keychain, which the server reads itself, so the seed never passes through the agent's context.
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": {
"subject": "<subject>",
"credential_type": "<credential_type>"
},
"name": "revoke_credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| network | No | ||
| subject | Yes | ||
| credential_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||