Skip to content

Commit 3b615a6

Browse files
committed
Add get_tx.sh
1 parent b167308 commit 3b615a6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/get_tx.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#! /bin/bash
2+
3+
curl http://127.0.0.1:8547 \
4+
-X POST \
5+
-H "Content-Type: application/json" \
6+
--data "{\"method\":\"eth_getTransactionByHash\",\"params\":[\"$1\"],\"id\":1,\"jsonrpc\":\"2.0\"}" |
7+
jq .

0 commit comments

Comments
 (0)