You are viewing a single comment's thread from:

RE: 使用EOS的RPC接口来转账

in #eos6 years ago

您好,按您的操作执行,一直到前面返回都正常,但是在最后一步push_transaction的时候返回:{
"code": 500,
"message": "Internal Service Error",
"error": {
"code": 3090003,
"name": "unsatisfied_authorization",
"what": "provided keys, permissions, and delays do not satisfy declared authorizations",
"details": []
}
},
测试网络:
get_info:
{
"server_version": "79651199",
"chain_id": "038f4b0fc8ff18a4f0842a8f0564611f6e96e8535901dd45e43ac8691a1c4dca",
"head_block_num": 2887711,
"last_irreversible_block_num": 2887388,
"last_irreversible_block_id": "002c0edcf6ed5551fa446a8b6ba73b361be840ee545b9e02de249da9f1a44e75",
"head_block_id": "002c101f878c792b3bea01da932b2893368b0061075bb6415463f71a3a5d2151",
"head_block_time": "2018-06-28T06:15:50.000",
"head_block_producer": "eosninecatmx",
"virtual_block_cpu_limit": 200000000,
"virtual_block_net_limit": 1048576000,
"block_cpu_limit": 198278,
"block_net_limit": 1048440
}
get_block:
请求参数:{
"block_num_or_id":2887711
}
返回结果:{
"timestamp": "2018-06-28T06:15:50.000",
"producer": "eosninecatmx",
"confirmed": 0,
"previous": "002c101ebd5d8d9af37076c93c2e89981aa6d6e05fd73e06d83beb83e555d7c3",
"transaction_mroot": "0000000000000000000000000000000000000000000000000000000000000000",
"action_mroot": "3ce4996db034365578dad512a6c3675d0075110dfdf5c6b23dfda34d54bd04c1",
"schedule_version": 93,
"new_producers": null,
"header_extensions": [],
"producer_signature": "SIG_K1_KeXxFDT2uNqss1VVhVDWcd3djiRfEUhFionFX8xXCyDFWJfMRWvsg7XjkQ8z8XjjQaU4u8Fghb41prbsPGy5Dj3MSAtxhd",
"transactions": [],
"block_extensions": [],
"id": "002c101f878c792b3bea01da932b2893368b0061075bb6415463f71a3a5d2151",
"block_num": 2887711,
"ref_block_prefix": 3657558587
}
sign_transaction:
请求:[
{
"ref_block_num": 2887711,
"ref_block_prefix": 3657558587,
"expiration": "2018-06-28T06:25:50.000",
"actions": [
{
"account": "eosio.token",
"name": "transfer",
"authorization": [
{
"actor": "eric",
"permission": "active"
}
],
"data": "000000000080dc55705510415c05b33b010000000000000000454f530000000003303031"
}
],
"signatures": []
},
[
"EOS6tgnE8NgDvBdvdumw83zVEs9oHJrvt3r79rp5SeS1ns7Sxy91e"
],
""
]
返回:
{
"expiration": "2018-06-28T06:25:50",
"ref_block_num": 4127,
"ref_block_prefix": 3657558587,
"max_net_usage_words": 0,
"max_cpu_usage_ms": 0,
"delay_sec": 0,
"context_free_actions": [],
"actions": [
{
"account": "eosio.token",
"name": "transfer",
"authorization": [
{
"actor": "eric",
"permission": "active"
}
],
"data": "000000000080dc55705510415c05b33b010000000000000000454f530000000003303031"
}
],
"transaction_extensions": [],
"signatures": [
"SIG_K1_Jv1pnEW99x8iMx1kQkg6BKv7ZanCGwhji1t69LWDpCAf5Ty8G8BdFko4k2aBr3u7pV5gxpJrC3yyHB2FSAgryw4htfYmCr"
],
"context_free_data": []
}
push_transaction:
请求:
{
"compression": "none",
"transaction": {
"ref_block_num": 2887711,
"ref_block_prefix": 3657558587,
"expiration": "2018-06-28T06:25:50.000",
"context_free_actions": [],
"actions": [
{
"account": "eosio.token",
"name": "transfer",
"authorization": [
{
"actor": "eric",
"permission": "active"
}
],
"data": "000000000080dc55705510415c05b33b010000000000000000454f530000000003303031"
}
],
"transaction_extensions": []
},
"signatures": [
"SIG_K1_Jv1pnEW99x8iMx1kQkg6BKv7ZanCGwhji1t69LWDpCAf5Ty8G8BdFko4k2aBr3u7pV5gxpJrC3yyHB2FSAgryw4htfYmCr"
]
}
返回:
{
"code": 500,
"message": "Internal Service Error",
"error": {
"code": 3090003,
"name": "unsatisfied_authorization",
"what": "provided keys, permissions, and delays do not satisfy declared authorizations",
"details": []
}
},
期待回复,感谢!