💻JavaScript (TS)

There is a section to separate JavaScript packages from all other packages. This is that the packages are designed to work on both the "Node" and "Browser" side. The reason for this is to manage crypto payment receiving and dapp processes with wallet connections on the browser side.

You can see how to use this in the examples below.

NPM

All packages: https://www.npmjs.com/search?q=%40multiplechain%2F

// If is require, will be node package
const evmChains1 = require('@multiplechain/evm-chains')

// If is import, will be browser package
import * as evmChains2 from '@multiplechain/evm-chains'

// Or if you wanna get browser package, you can use this
const browserPackage1 = require('@multiplechain/evm-chains/browser')
import * as browserPackage2 from '@multiplechain/evm-chains/browser'

// Or if you wanna get node package, you can use this
const nodePackage1 = require('@multiplechain/evm-chains/node')
import * as nodePackage2 from '@multiplechain/evm-chains/node'

CDN

All packages: https://www.jsdelivr.com/?query=author%3A%20MultipleChain

<script src="https://cdn.jsdelivr.net/npm/@multiplechain/evm-chains@0.4.5/dist/index.umd.min.js"></script>

Last updated