Skip to content
Waxpeer module that makes it easy to sell your items via p2p system
TypeScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore init push Sep 16, 2019
.npmignore
README.md readme update Jan 7, 2020
package-lock.json
package.json
tsconfig.json init push Sep 16, 2019

README.md

WaxPeer

WaxPeer API wrapper for Node.js

Full API documentation here

Installation

$ npm install waxpeer

Initialization

import { Waxpeer } from 'waxpeer'

const WP = new Waxpeer(WAXPEER_API)

Fetching items

const items = await WP.getItemsList()

console.log(items)

Buying items with ID

const purchase = await WP.buyItemWithId(17441538677,798500,'oFvyi0Ma','378049039')

console.log(purchase)

Buying items with Name

const purchase = await WP.buyItemWithName('AK-47 | Redline (Field-Tested)',15000,'oFvyi0Ma','378049039')

console.log(purchase)

Fetching status of the purchase

const status = await WP.tradeRequestStatus(35124)

console.log(status)

Fetching your account info

const user = await WP.getProfile()

console.log(user)
You can’t perform that action at this time.