https://github.com/0chain/tenderly_cli
Minimalistic CLI used to simplify interaction with Tenderly API.
https://github.com/0chain/tenderly_cli
golang tenderly
Last synced: 5 months ago
JSON representation
Minimalistic CLI used to simplify interaction with Tenderly API.
- Host: GitHub
- URL: https://github.com/0chain/tenderly_cli
- Owner: 0chain
- License: other
- Created: 2024-03-11T12:08:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-16T10:57:43.000Z (over 2 years ago)
- Last Synced: 2025-03-20T08:51:47.415Z (about 1 year ago)
- Topics: golang, tenderly
- Language: Go
- Homepage:
- Size: 5.19 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# TenderlyCLI
This repository contains the implementation of Tenderly CLI, used to simplify interaction with Tenderly API, intended to expose basic comamnds.
## Setup
It's required to execute the following command to build the node:
```bash
make build
```
The built file is located at **./build** directory.
## Examples
The following command represents request to Tenderly API, which provokes balance to be set to be equal to the given value:
```shell
tenderly_cli set-balance --host="https://rpc.tenderly.co/fork/34689cb9-e797-4786-8a1e-9512e3183222" --wallet="0xfda881a5f23c62b75f76390Ee8aBFA441F681A0e" --amount=10
```
The following command represents request to Tenderly API, which provokes balance to be increased by the given value:
```shell
tenderly_cli add-balance --host="https://rpc.tenderly.co/fork/34689cb9-e797-4786-8a1e-9512e3183222" --wallet="0xfda881a5f23c62b75f76390Ee8aBFA441F681A0e" --amount=10
```
The following command represents request to Tenderly API, which provokes balance of the selected ERC20 smart contract to be set to be equal to the given value:
```shell
tenderly_cli set-erc20-balance --host="https://rpc.tenderly.co/fork/34689cb9-e797-4786-8a1e-9512e3183222" --wallet="0xfda881a5f23c62b75f76390Ee8aBFA441F681A0e" --token="0xb9EF770B6A5e12E45983C5D80545258aA38F3B78" --amount=10
```
The following command represents request to Tenderly API, which provokes balance of the selected ERC20 smart contract to be increased by the given value:
```shell
tenderly_cli add-erc20-balance --host="https://rpc.tenderly.co/fork/34689cb9-e797-4786-8a1e-9512e3183222" --wallet="0xfda881a5f23c62b75f76390Ee8aBFA441F681A0e" --token="0xb9EF770B6A5e12E45983C5D80545258aA38F3B78" --amount=10
```
> Remember that the value expected to be in **ETH**