eos
eos copied to clipboard
rpc abi_json_to_bin return 3050002
when use RPC api abi_json_to_bin:
{
"code": "xpa.ex",
"action": "limits",
"args": {
"owner": "w.3",
"base": "[email protected]",
"quote": "[email protected]",
"price": 1000000,
"amount": 10000000,
"isbid": true,
"memo": "xxx w.3"
}
}
return:
{
"code": 500,
"message": "Internal Service Error",
"error": {
"code": 3050002,
"name": "invalid_action_args_exception",
"what": "Invalid Action Arguments",
"details": [{
"message": "'{\"owner\":\"w.3\",\"base\":\"[email protected]\",\"quote\":\"[email protected]\",\"price\":1000000,\"amount\":10000000,\"isbid\":true,\"memo\":\"xxx w.3\"}' is invalid args for action 'limits' code 'xpa.ex'. expected '[{\"name\":\"accout\",\"type\":\"string\"},{\"name\":\"base\",\"type\":\"string\"},{\"name\":\"quote\",\"type\":\"string\"},{\"name\":\"price\",\"type\":\"int64\"},{\"name\":\"amount\",\"type\":\"int64\"},{\"name\":\"isbid\",\"type\":\"bool\"},{\"name\":\"memo\",\"type\":\"string\"}]'",
"file": "chain_plugin.cpp",
"line_number": 884,
"method": "abi_json_to_bin"
}, {
"message": "Missing 'accout' in variant object",
"file": "abi_serializer.cpp",
"line_number": 313,
"method": "variant_to_binary"
}, {
"message": "",
"file": "abi_serializer.cpp",
"line_number": 336,
"method": "variant_to_binary"
}, {
"message": "",
"file": "abi_serializer.cpp",
"line_number": 348,
"method": "variant_to_binary"
}, {
"message": "",
"file": "chain_plugin.cpp",
"line_number": 887,
"method": "abi_json_to_bin"
}]
}
}
How did you adjust the parameters?