Skip to content

RPC method getspaceowner works incorrectly #23

@randomlogin

Description

@randomlogin

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:

  1. Accept name, not its hash
  2. Add method to wallet cli, not just JSON-RPC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions