Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gagliardetto/diff-http-json
https://github.com/gagliardetto/diff-http-json
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gagliardetto/diff-http-json
- Owner: gagliardetto
- Created: 2023-08-23T15:30:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-07T15:53:09.000Z (over 1 year ago)
- Last Synced: 2024-10-12T01:30:54.286Z (3 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# diff-http-json
Sends the same HTTP request to two different URLs and compares the JSON responses.
## Usage
```
diff-http-json [options]
```# diff getTransaction
```
diff-http-json \
--rpc=http://localhost:8899 \
--rpc=https://api.mainnet-beta.solana.com \
'{
"jsonrpc": "2.0",
"id": "99",
"method": "getTransaction",
"params": [
"3ZoKehx5haKmM1r74Ni9Ezxc6Sa2vLqRQgKisETGUjLK3KX45yRTAbN4xZ4LXt9jXBBozvjQ4qTz5eJtq3PD6j2P",
{
"encoding": "json",
"maxSupportedTransactionVersion": 0
}
]
}'```
# diff getBlock
```
diff-http-json \
--rpc=http://localhost:8899 \
--rpc=https://api.mainnet-beta.solana.com \
'{
"jsonrpc": "2.0",
"id": "99",
"method": "getBlock",
"params": [
211247999,
{
"encoding": "base64",
"maxSupportedTransactionVersion": 0
}
]
}'```