1

Is there a way to query a running (local) node and list all available RPC and/or extrinsic endpoints?

I want to create an overview for new team members and for our company, and maybe even pipe the output to a diagram tool!

2 Answers 2

4
curl http://127.0.0.1:9933 -X POST -H "Content-Type:application/json" -d '{"jsonrpc":"2.0","method":"rpc_methods","params":[],"id":1}'

The result example, extrinsic relates:

author_pendingExtrinsics
author_removeExtrinsic
author_submitAndWatchExtrinsic
author_submitExtrinsic
author_unwatchExtrinsic
2
  • Is there one for extrinsics?
    – ohboy21
    Aug 8, 2022 at 13:53
  • 1
    Updated in the answer. Aug 8, 2022 at 14:12
1

You could also use substrate-api-sidecar to query a running local node. By default, it provides a series of endpoints to retrieve chain information (blocks, extrinsics and storage) from nodes. Highlighting here some extrinsics/transaction related endpoints :

/blocks/{blockId}/extrinsics/{extrinsicIndex}

/node/transaction-pool

/transaction

/transaction/dry-run

/transaction/fee-estimate

/transaction/material

but you can also check the full endpoints docs here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.