Skip to main content

decryptrecord

Decrypts the encrypted record and returns the hex encoded bytes of the record.

Arguments

ParameterTypeRequiredDescription
encrypted_recordstringYesThe encrypted record
account_view_keystringYesThe account view key used to decrypt the ciphertext

Response

ParameterTypeDescription
resultstringThe hex-encoded record bytes

Example

curl --user username:password --data-binary '{ 
"jsonrpc":"2.0",
"id": "1",
"method": "decryptrecord",
"params": [
{
"encrypted_record": "encrypted_record_string",
"account_view_key": "account_view_key_string"
}
]
}' -H 'content-type: application/json' http://127.0.0.1:3030/