eos
eos copied to clipboard
When use command 'cleos sign', what's the struct of unsigned transaction?
I want to use command 'cleos sign', but I don't know the correct format of transaction.
I also do not find any example? Can anyone show me the struct of transaction?
ok, I just solve the problem, here is the example of transaction:
{
"actions": [
{
"account": "eosio.token",
"authorization": [{"actor": "user", "permission": "active"}],
"data": "00000000007015d640420f000000000004454f5300000000046d656d6f",
"name": "transfer"
}
],
"context_free_actions": [],
"expiration": "2018-05-09T07:35:24",
"max_kcpu_usage": 0,
"max_net_usage_words": 0,
"ref_block_num": 248618,
"ref_block_prefix": 2025487478,
"region": 0
}