curl POST 没有给我结果

curl POST not giving me result

我正在尝试对 json-rpc 执行 curl POST 请求,但是当我使用它时它没有给我任何错误,我不确定我做错了什么。花了一个小时想弄明白怎么做

我要执行的请求:

http post https://rpc.nearprotocol.com jsonrpc=2.0 
method=query params:='["account/near.test", ""]' id=dontcare

我试过:

curl -X POST https://rpc.nearprotocol.com -d 
'{"jsonrpc":"2.0","id":"0","method":"query", 
"account/near.test”:”snailbail45"}' -H 'Content-Type: application/json'```

但是它只是返回下一行。

虽然这对我有用:

curl -X POST https://rpc.nearprotocol.com -d    
'{"jsonrpc":"2.0","id":"0","method":"status"}' -H 'Content-Type:     
application/json'

第一个我做错了什么?

您在 testsnailbail45 之间使用了引号( 而不是 "):

"account/near.test”:”snailbail45"