@getsafle/blockchain-controller
v1.1.2
Published
Safle Blockchain Controller is used to manage and set the environments of different chains and their networks.
Downloads
10
Readme
Safle Blockchain Controller
Safle Blockchain Controller is used to manage and set the environments of different chains and their networks. This SDK supports both EVM and non-EVM chains.
Installation
Install the package by running the command,
npm install --save @getsafle/blockchain-controller
Import
Import the package into your project using,
const safleBlockchainController = require('@getsafle/blockchain-controller');
Get Networks
Get the list & details of all the chains supported by the Safle controllers.
const networks = await safleBlockchainController.getNetworks();
Get Chain Details
Get all the network details of a specific chain
const networkDetails = await safleBlockchainController.getChainDetails(chain);
chain
- Chain name