AntelopeIO / DUNES

Docker Utilities for Node Execution
Other
26 stars 20 forks source link

Is it possible to use API after node start using DUNE ? #83

Closed messman1 closed 1 year ago

messman1 commented 1 year ago

Hi, everyone I want to use API after node start. this is my node status. image

and I want to contact my node by API mothod (after making account: host) curl -X POST -H "Content-Type: application/json; charset=utf-8" -d '{"account_name":"host"}' http://127.0.0.1:8888/get_account

and I got message like this...

curl: (56) Recv failure

is this possible to use API ?

thanks

jolly-fellow commented 1 year ago

Hello @messman1 please try to do like this: dune -- curl -X POST -H "Content-Type: application/json; charset=utf-8" -d '{"account_name":"myaccount"}' http://127.0.0.1:8888/v1/chain/get_account

messman1 commented 1 year ago

It works!!! thank you jolly!!