@openweb3-io/wallet-pay
v0.2.0
Published
Wallet Pay API client and wallet pay verification library
Downloads
76
Readme
Typescript/Javascript library for interacting with the pay API and verifying pay signatures
Usage Documentation
You can find general usage documentation at https://docs.pay.openweb3.io. For complete API documentation with code examples for each endpoint in all of our official client libraries head over to our API documentation site at https://api.wallet-pay.openweb3.io.
Language Support
Installation
npm install @openweb3-io/wallet-pay
# or
yarn add @openweb3-io/wallet-pay
Usage
import { WalletPay } from "@openweb3-io/wallet-pay";
const walletPay = new WalletPay("API-KEY", "PRIVATE KEY");
const order = await walletPay.Order.create({ currency: "ton", amount: "1000000000" });
Development
First checkout the core README for details on how to generate our API bindings, then follow the steps below.
Requirements
- node
- yarn
Building the library
yarn
yarn build
Contributing
Before opening a PR be sure to format your code!
yarn lint:fix
Running Tests
Simply run:
yarn test