@rosen-chains/ergo-explorer-network
v9.0.6
Published
ergo explorer network package for rosen ergo chain
Downloads
540
Readme
@rosen-chains/ergo-explorer-network
Table of contents
Introduction
@rosen-chains/ergo-explorer-network
is a package to be used as network api
provider for @rosen-chains/ergo
package.
Installation
npm:
npm i @rosen-chains/ergo-explorer-network
yarn:
yarn add @rosen-chains/ergo-explorer-network
Usage
import { ErgoChain } from '@rosen-chains/ergo';
import ErgoExplorerNetwork from '@rosen-chains/ergo-explorer-network';
const ergoExplorerNetwork = new ErgoExplorerNetwork({
explorerBaseUrl: 'SOME_EXPLORER_URL',
extractorOptions: {
lockAddress: 'SOME_LOCK_ADDRESS',
tokens: {
// SOME_TOKENS_OBJECT
},
},
});
const ergoChainConfig = {
// SOME_ERGO_CHAIN_CONFIG
};
const ergoChain = new ErgoChain(ergoExplorerNetwork, ergoChainConfig);