AI agent documentation index: llms.txt. Raw markdown for any page is available by appending .md to the URL. Full content snapshot: llms-full.txt.
llms.txt — complete Cartesi documentation index. Append .md to any page URL for raw Markdown (e.g. /cartesi-rollups/2.0/development/building-an-application.md).
Skip to main content

Get Withdrawal

Example Request

{
"jsonrpc": "2.0",
"method": "cartesi_getWithdrawal",
"params": {
"application": "<name-or-address>",
"account_index": "<hex-encoded-index>"
},
"id": 1
}

The cartesi_getWithdrawal method retrieves a single emergency withdrawal by its application and account index.

Parameters

NameTypeRequiredDescription
applicationstringYesThe application's name or hex encoded address
account_indexstringYesThe account index in the accounts drive (hex encoded)

Response

{
"jsonrpc": "2.0",
"result": {
"data": {
"account_index": "0x0",
"account": "0xe803000000000000bd8eba8bf9e56ad92f4c4fc89d6cb8890253574900000000",
"output": "0x10321e8b...",
"block_number": "0xaac079",
"transaction_hash": "0xfe6c84b741624b237b6d09a9f71a174e81a59e5eedb7893a77f238b45e833656",
"log_index": "0x2b7",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
},
"id": 1
}

Response Fields

See the Withdrawal type.

NameTypeDescription
account_indexstringThe account index in the accounts drive (hex encoded)
accountstringThe account as encoded in the accounts drive (hex)
outputstringThe withdrawal output (hex encoded)
block_numberstringThe block number of the Withdrawal event (hex encoded)
transaction_hashstringThe transaction hash of the withdrawal
log_indexstringThe log index within the block (hex encoded)
created_atstringTimestamp when the withdrawal was recorded
updated_atstringTimestamp when the withdrawal was last updated

Error Codes

CodeMessageDescription
-32602Invalid paramsInvalid parameter values
-32000Application not foundThe specified application does not exist
-32003Withdrawal not foundThe specified withdrawal does not exist
-32603Internal errorAn internal error occurred
We use cookies to ensure that we give you the best experience on our website. By using the website, you agree to the use of cookies.