Read a credential's state on the ledger
get_credentialReads one credential's XRP Ledger state to confirm existence, subject acceptance, URI, and expiration without submitting a transaction.
Instructions
Read one credential's state from the XRP Ledger: whether it exists, whether the subject has accepted it, its URI, and its expiration.
This is a pure read. It submits no transaction, spends nothing, and does not need --allow-writes.
Existence is not acceptance: a credential issued with issue_credential does not become valid for the subject until the subject accepts it. This tool reports which of those is true.
For an account's balance and other state, use lookup_account. To accept a credential, use accept_credential.
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": {
"issuer": "<issuer>",
"subject": "<subject>",
"credential_type": "<credential_type>"
},
"name": "get_credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issuer | Yes | ||
| network | No | ||
| subject | Yes | ||
| credential_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||