// NPM
npm i @0xpay/sdk
// Yarn
yarn add @0xpay/sdk
import { XPay } from '@0xpay/sdk'
const MERCHANT_ID = 'your-merchant-id'
const MERCHANT_PRIVATE_KEY = 'your-merchant-private-key'
// Create XPay instance
const xpay = new XPay(MERCHANT_ID, MERCHANT_PRIVATE_KEY)
import { XPay } from '@0xpay/sdk'
// Create XPay instance
const xpay = new XPay(...)
// Use 0xPay API
xpay.getAvailableCryptoAssets().then((assets) => console.log(assets))
import { XPay } from '@0xpay/sdk'
// Create XPay instance
const xpay = new XPay(...)
// Use 0xPay API
xpay.createReceiveAddress({ blockchain: 'BITCOIN', meta: 'user 1' })
.then((address) => console.log(address))