Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the RPC API documentation? #290

Open
visualbasic6 opened this issue Nov 11, 2022 · 0 comments
Open

Where is the RPC API documentation? #290

visualbasic6 opened this issue Nov 11, 2022 · 0 comments

Comments

@visualbasic6
Copy link

Hi,

Where are the docs for HTTP RPC API?

All requests, e.g.

POST /tx HTTP/1.1
Host: node-ip:9933
Accept: text/plain
Content-Type: application/json
Content-Length: 76

{"tx": "0x40eb21f2e4c29522b094223180e3822164ba7c2e0dea3dc92bc58827e54cbf85"}

produce this result:

HTTP/1.1 200 OK
content-type: application/json; charset=utf-8
content-length: 80
date: Fri, 11 Nov 2022 07:58:43 GMT

{"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid request"},"id":null}

Why is there an open RPC API port (9933) but no documentation for it?

Can you share some API endpoints as examples? How do we pull metrics and blocks, etc.?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant