vcashorg / vcash-wallet

Apache License 2.0
15 stars 28 forks source link

In the new version v3, how do I use RPC to query? who can give a curl case? #3

Closed debuggor closed 4 years ago

debuggor commented 4 years ago

vcash-wallet all configuration I have not changed.

curl -0 -XPOST -u grin:a93yefIm4IT7HVVqrqd9 --data '{"jsonrpc":"2.0","method":"retrieve_summary_info","params":[true, 10],"id":1}' http://127.0.0.1:3513/v3/owner

I call this curl and nothing returns

jdwldnqi837 commented 4 years ago

May be you should check if your api secret and listening port is correct. Here is my sample:curl -0 -XPOST -u grin:your_api_secret --data '{"jsonrpc":"2.0","method":"retrieve_summary_info","params":[true, 10],"id":1}' http://127.0.0.1:your_port/v2/owner

debuggor commented 4 years ago

thanks, i got it