You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
Hi,
Tried using the JSONRPC mechanism to "add_gateway" but it didn't work.
JSONRPC command (sample)
Request:
curl -X POST
-H 'Content-Type: application/json'
-d '{"jsonrpc":"2.0","id":"id","method":"txn_add_gateway","params": { "owner" : "138LbePH4r7hWPuTnK6HXVJ8ATM2QU71iVHzLTup1UbnPDvbxmr", "payer" : "138LbePH4r7hWPuTnK6HXVJ8ATM2QU71iVHzLTup1UbnPDvbxmr"}}'
http://127.0.0.1:4467
esponse:
{"error":{"code":-150,"message":""function_clause""},"id":"id","jsonrpc":"2.0"}
docker exec miner miner txn add_gateway owner=138LbePH4r7hWPuTnK6HXVJ8ATM2QU71iVHzLTup1UbnPDvbxmr --payer 138LbePH4r7hWPuTnK6HXVJ8ATM2QU71iVHzLTup1UbnPDvbxmr
error: {error,function_clause,
[{blockchain,ledger,
[undefined],
[{file,"blockchain.erl"},{line,558}]},
{blockchain_txn_add_gateway_v1,calculate_staking_fee,2,
[{file,"blockchain_txn_add_gateway_v1.erl"},{line,200}]},
{blockchain,add_gateway_txn,4,
[{file,"blockchain.erl"},{line,2406}]},
{blockchain_cli_txn,txn_add_gateway,3,
[{file,"blockchain_cli_txn.erl"},{line,155}]},
{clique_command,run,1,[{file,"clique_command.erl"},{line,87}]},
{blockchain_console,command,1,
[{file,"blockchain_console.erl"},{line,14}]},
{erpc,execute_call,4,[{file,"erpc.erl"},{line,392}]}]}
The text was updated successfully, but these errors were encountered: