Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zoralabs/chains

Package Overview
Dependencies
Maintainers
14
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zoralabs/chains

Get chain information for forge/foundry when deploying

  • 1.3.0
  • npm
  • Socket score

Version published
Maintainers
14
Created
Source

chains cli

Get chain information for forge/foundry when deploying

installing

1. install cli utility

yarn global add @zoralabs/chains
# or
npm install -g @zoralabs/chains

2. setup dotfiles

(see configuration file below)

mkdir ~/.chains/
echo '{"alchemyApiKey": "API_KEY"}' >> ~/.chains/config.json

using

# alias to `forge zora --rpc` which returns `--rpc-url $RPC_URL`
chains zora --rpc 

# gets just rpc url eg: (`https://rpc.optimism.io/`)
chains rpc optimism

# opens optimism block explorer in new browser window
chains explorer optimism

Loads private/custom configuration information from ~/.chains/:

Configuration file format and naming:

  • $chain_name.json -> {"rpcUrl": "https://alchemyapi.io/y/$alchemyApiKey", "etherscanApiKey": "ETHERSCAN_API_KEY"}
  • eg: zora.json -> {"rpcUrl": "https://rpc.zora.energy/"}
  • config.json -> {"alchemyApiKey": ""} (infura and tenderly coming soon)

FAQs

Package last updated on 29 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc