Skip to content

khanapat/hello-tenderly

Repository files navigation

Tenderly

Setup

You can install the Tenderly CLI via the Homebrew package manager:

brew tap tenderly/tenderly
brew install tenderly

You can check the current version of the CLI by running:

tenderly version

To upgrade it via Homebrew:

brew upgrade tenderly

To install hardhat-tenderly and others

npm install --save-dev @tenderly/hardhat-tenderly
npm install dotenv
npm install --save-dev @nomiclabs/hardhat-etherscan

Usage

The login command is used to authenticate the Tenderly CLI with your Tenderly Dashboard.

tenderly login

Deploy smartcontract to network. It will automatically upload contract to tenderly dashboard

npx hardhat run ./script/sample-script.js --network {network}

Send transaction to smartcontract

npx hardhat setGreeting --address {contract address} --network {network}

Manual

How to upload contract to tenderly dashboard

  • Publicly verifies the contracts for all tenderly users.
npx hardhat tenderly:verify {Contract}={Address} --network {network}
  • Privately adds the contracts to the project defined in hardhat.config.js.
npx hardhat tenderly:push {Contract}={Address} --network {network}

Optional

These are useful command.

Command Explanation
tenderly login - connect tenderly by email or api-key
tenderly whoami - get user information
tenderly export init - init tenderly.yaml
tenderly export {Txn Hash} - upload local transaction info to dashboard
tenderly logout - disconnect tenderly

Reference

About

basic smartcontract to monitoring with tenderly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published