@dataxfi/datax.js
TypeScript icon, indicating that this package has built-in type declarations

1.4.22 • Public • Published

banner

datax.js

JavaScript library to swap datasets using any ERC20 token.

🏗 Installation

npm install @dataxfi/datax

🏄 Quickstart

import Web3 from 'web3'
import { Ocean, TokenList, Config } from '@dataxfi/datax'


const networkId = '1' // "1" = mainnet,  "137" = polygon, "56" = bsc, "4" = rinkeby
const web3 = new Web3('your-web3-provider')

const ocean = new Ocean(web3, networkId)

//now you can use functions in Ocean.ts file

🏛 License

Copyright ((C)) 2021 Datax Finance

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Readme

Keywords

Package Sidebar

Install

npm i @dataxfi/datax.js

Weekly Downloads

1

Version

1.4.22

License

Apache-2.0

Unpacked Size

1.28 MB

Total Files

162

Last publish

Collaborators

  • 0xdatax