-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Milestone
Description
If you run
curl -d '{"method": "getspaceowner", "jsonrpc": "2.0", "params": ["@bitcoin"], "id": 1}' -H 'Content-Type: application/json'
http://127.0.0.1:7224
It returns an error:
{"jsonrpc":"2.0","error":{"code":-1,"message":"expected a 32-byte hex encoded space hash"},"id":1}
The method in fact expects a space hash:
{"method": "getspaceowner", "jsonrpc": "2.0", "params": ["313c12391a309b7bcf617a2a5a17d18eb45fa7dd8c683a12c49a97af5937fad8"], "id": 1}
Suggestions:
- Accept name, not its hash
- Add method to wallet cli, not just JSON-RPC.
Metadata
Metadata
Assignees
Labels
No labels