Skip to main content

createtransaction

Create a new transaction from a given transaction kernel, returning the encoded transaction and the new records.

Protected Endpoint

Yes

Arguments

ParameterTypeRequiredDescription
private_keys[string]YesAn array of private key strings
transaction_kernelstringYesThe hex encoded transaction kernel

Response

ParameterTypeDescription
encoded_transactionstringThe hex encoding of the generated transaction
encoded_recordsarrayThe hex encodings of the generated records

Example

curl --user username:password --data-binary '{ 
"jsonrpc":"2.0",
"id": "1",
"method": "createtransaction",
"params": ["[private_key_0, private_key_1]", "transaction_kernel_hexstring"]
}' -H 'content-type: application/json' http://127.0.0.1:3030/