I have some problems trying to transfer EOS in push_transaction
. I followed the instructions from https://steemit.com/eos/@noprom/using-eos-rpc-api-to-transfer-eos and other references because the documentation was outdated.
Here is the detail for my push_transaction
:
http://127.0.0.1:8888/v1/chain/push_transaction
{
"compression":"none",
"signatures":[
"SIG_K1_Ki1Q8SAiZnBWhjkMQM5gmaBhigGrFdVvgrKfpSue75NbR6Er2hinxWapbbE94YCnyPRcqUZizjjFao1oNyHGJUYFR4MeEF"
],
"transaction":{
"actions":{
"account":"idxtester121",
"name":"transfer",
"authorization":{
"actor":"idxtester121",
"permission":"active"
},
"data":"1044b82a63957b729015d266a9c8a67ef04902000000000004454f5300000000087465737473656e64"
},
"delay_sec":0,
"expiration":"2019-01-16T07:31:47",
"max_kcpu_usage":0,
"max_net_usage_words":0,
"ref_block_num":21690,
"ref_block_prefix":2522481250,
"region":0
}
}
Below is the response :
object(stdClass)#31 (3) {
["code"]=>
int(500)
["message"]=>
string(22) "Internal Service Error"
["error"]=>
object(stdClass)#32 (4) {
["code"]=>
int(3010010)
["name"]=>
string(33) "packed_transaction_type_exception"
["what"]=>
string(26) "Invalid packed transaction"
["details"]=>
array(3) {
[0]=>
object(stdClass)#33 (4) {
["message"]=>
string(26) "Invalid packed transaction"
["file"]=>
string(16) "chain_plugin.cpp"
["line_number"]=>
int(1560)
["method"]=>
string(16) "push_transaction"
}
[1]=>
object(stdClass)#34 (4) {
["message"]=>
string(38) "Invalid cast from object_type to Array"
["file"]=>
string(11) "variant.cpp"
["line_number"]=>
int(545)
["method"]=>
string(9) "get_array"
}
[2]=>
object(stdClass)#35 (4) {
["message"]=>
string(29) "Failed to deserialize variant"
["file"]=>
string(18) "abi_serializer.hpp"
["line_number"]=>
int(689)
["method"]=>
string(12) "from_variant"
}
}
}
}
From the error response, I think I missed some parameters. What are the updated parameters for push_transaction
?