2018-12-14 14:46:05 -08:00

751 B

0x.js ships as both a UMD module and a CommonJS package.

Install

npm install 0x.js --save

Import

import {
    assetDataUtils,
    BigNumber,
    ContractWrappers,
    generatePseudoRandomSalt,
    orderHashUtils,
    signatureUtils,
} from '0x.js';

UMD:

Install

Download the UMD module from our releases page and add it to your project.

Import

<script type="text/javascript" src="0x.js"></script>

Wiki

Check out our wiki for articles on how to get 0x.js setup with TestRPC, Infura and more!