Communities

Kaspa Q&A
Kaspa Q&A
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Kaspa Q&A

Post History

50%
+0 −0
Kaspa Q&A Is there a CLI tool to send RPC commands?

Yes, rusty-kaspa comes with the tool kaspa-cli that supports sending RPC command. For example, to send the RPC command get-block-dag-info you'll need to do the following: git clone https://github...

posted 1d ago by someone235‭  ·  edited 1d ago by someone235‭

Answer
#2: Post edited by user avatar someone235‭ · 2025-10-01T13:26:35Z (1 day ago)
  • Yes, `rusty-kaspa` comes with the tool `kaspa-cli` that supports sending RPC command.
  • For example, to send the RPC command `get-block-dag-info` you'll need to do the following:
  • ```
  • git clone https://github.com/kaspanet/rusty-kaspa.git
  • cd rusty-kaspa
  • cargo run --release --bin kaspa-cli
  • ```
  • And then in the interactive prompt enter:
  • ```
  • connect <NODE-ADDRESS>
  • rpc get-block-dag-info
  • ```
  • Yes, `rusty-kaspa` comes with the tool `kaspa-cli` that supports sending RPC command.
  • For example, to send the RPC command `get-block-dag-info` you'll need to do the following:
  • ```
  • git clone https://github.com/kaspanet/rusty-kaspa.git
  • cd rusty-kaspa
  • git checkout stable
  • cargo run --release --bin kaspa-cli
  • ```
  • And then in the interactive prompt enter:
  • ```
  • connect <NODE-ADDRESS>
  • rpc get-block-dag-info
  • ```
#1: Initial revision by user avatar someone235‭ · 2025-10-01T12:02:20Z (1 day ago)
Yes, `rusty-kaspa` comes with the tool `kaspa-cli` that supports sending RPC command.

For example, to send the RPC command `get-block-dag-info` you'll need to do the following:

```
git clone https://github.com/kaspanet/rusty-kaspa.git
cd rusty-kaspa
cargo run --release --bin kaspa-cli
```

And then in the interactive prompt enter:

```
connect <NODE-ADDRESS>
rpc get-block-dag-info
```