Typescript/Javascript library for interacting with the walletpay API and verifying walletpay signatures
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.pay.openweb3.io.
⚡️ Features ⚡️ | |
---|---|
Officially Supported | ✅ |
API Support | ✅ |
Signature Verification | ✅ |
Caveats | None! 🚀 |
npm install @openweb3-io/pay
# or
yarn add @openweb3-io/pay
import { Walletpay } from "@openweb3-io/pay";
const walletpay = new Walletpay("API-KEY", "RSA PRIVATE KEY");
const order = await walletpay.Order.create({ channel: "ton-connect", chain:"ton", amount: "0.11", currency: "USDT"});
First checkout the core README for details on how to generate our API bindings, then follow the steps below.
- node
- yarn
yarn
yarn build
Before opening a PR be sure to format your code!
yarn lint:fix
Simply run:
yarn test