Run it with:

node createOrder.js If you see the order object logged, your and installation are successful. 0x Version 8.9.1 Changelog (What’s New?) Understanding what changed in 8.9.1 helps you decide if this is the right version for you.

const OrderBuilder = require('@0x/order-utils'); const assetDataUtils = require('@0x/order-utils'); const BigNumber = require('@0x/utils'); async function main() // Example: Create a sell order for WETH to DAI const makerAssetData = assetDataUtils.encodeERC20AssetData('0xTokenA'); const takerAssetData = assetDataUtils.encodeERC20AssetData('0xTokenB');

# Install the core 0x libraries at version 8.9.1 npm install @0x/contract-addresses@8.9.1 npm install @0x/contract-wrappers@8.9.1 npm install @0x/utils@8.9.1 npm install @0x/order-utils@8.9.1 To verify the download was successful:

npm list @0x/contract-wrappers # Output should show: @0x/contract-wrappers@8.9.1 If you need the raw Solidity smart contracts (for local compilation or auditing):