curl command to download and install the Tenderly CLI binary on your local machine.
Install on macOS:
example
example
example
example
--sources sets the name of the root Web3 Actions folder (default: actions), --language sets the language for writing Action functions (typescript, the default, or javascript), and --template initializes the project from a starter template in the Tenderly/tenderly-actions repository.
example
tenderly actions init, you have an NPM project at your disposal, so you can install any NPM library you need in a familiar way.
example
example
deploy, your Web3 Action is available in the Dashboard and listening to events per your configuration. A publish-ed action is visible in the Dashboard but stays inactive: it isn’t scheduled and doesn’t listen to events until you run deploy or start it from the Dashboard.
You can upgrade your Web3 Actions with zero downtime, by running the
deploy command after
you’ve edited the function and trigger configuration.tenderly.yaml locally. No login is required.
example
--json flag emits a structured result. When everything is valid:
schema_errors and/or trigger_errors are included (omitted when empty):
schema command outputs a JSON Schema describing the actions section of tenderly.yaml. Use it with the VS Code YAML extension (redhat.vscode-yaml) or JetBrains IDEs to get autocomplete and validation while editing the file.
example
example
example
It’s recommended to keep tests and run scripts for web3-actions outside of the actions directory,
to avoid increasing the size of your Web3 Actions project.