You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
945 B

  1. /*
  2. Package core defines the Tendermint RPC endpoints.
  3. Tendermint ships with its own JSONRPC library -
  4. https://github.com/tendermint/tendermint/tree/master/rpc/jsonrpc.
  5. ## Get the list
  6. An HTTP Get request to the root RPC endpoint shows a list of available endpoints.
  7. ```bash
  8. curl 'localhost:26657'
  9. ```
  10. > Response:
  11. ```plain
  12. Available endpoints:
  13. /abci_info
  14. /dump_consensus_state
  15. /genesis
  16. /net_info
  17. /num_unconfirmed_txs
  18. /status
  19. /health
  20. /unconfirmed_txs
  21. /unsafe_flush_mempool
  22. /unsafe_stop_cpu_profiler
  23. /validators
  24. Endpoints that require arguments:
  25. /abci_query?path=_&data=_&prove=_
  26. /block?height=_
  27. /blockchain?minHeight=_&maxHeight=_
  28. /broadcast_tx_async?tx=_
  29. /broadcast_tx_commit?tx=_
  30. /broadcast_tx_sync?tx=_
  31. /commit?height=_
  32. /dial_seeds?seeds=_
  33. /dial_persistent_peers?persistent_peers=_
  34. /subscribe?event=_
  35. /tx?hash=_&prove=_
  36. /unsafe_start_cpu_profiler?filename=_
  37. /unsafe_write_heap_profile?filename=_
  38. /unsubscribe?event=_
  39. ```
  40. */
  41. package core