Gathering detailed insights and metrics for @darkgl/waxpeer
Gathering detailed insights and metrics for @darkgl/waxpeer
Gathering detailed insights and metrics for @darkgl/waxpeer
Gathering detailed insights and metrics for @darkgl/waxpeer
Waxpeer module that makes it easy to sell your items via p2p system
npm install @darkgl/waxpeer
Typescript
Module System
Min. Node Version
Node Version
NPM Version
75
Supply Chain
99.4
Quality
87.5
Maintenance
100
Vulnerability
100
License
TypeScript (99.88%)
Shell (0.12%)
Total
897
Last Day
1
Last Week
22
Last Month
126
Last Year
897
124 Commits
1 Forks
2 Branches
1 Contributors
Latest Version
1.8.9
Package Id
@darkgl/waxpeer@1.8.9
Unpacked Size
172.78 kB
Size
36.48 kB
File Count
24
NPM Version
10.8.2
Node Version
22.5.1
Publised On
28 Nov 2024
Cumulative downloads
Total Downloads
Last day
-66.7%
1
Compared to previous day
Last week
-63.9%
22
Compared to previous week
Last month
-37.9%
126
Compared to previous month
Last year
0%
897
Compared to previous year
9
1
WaxPeer API wrapper for Node.js
Full API documentation here
Trade websocket documentation here
1$ npm i @darkgl/waxpeer
1import { Waxpeer, TradeWebsocket } from 'waxpeer'; 2 3//API wrapper 4const WP = new Waxpeer(WAXPEER_API); 5//Trade websocket 6const TS = new TradeWebsocket(WAXPEER_API, STEAM_ID, TRADELINK); //auto connect after init 7TS.connectWss(); //connect
1const user = await WP.getProfile(); 2console.log(user);
1//MM-DD-YY 2const history = WP.myHistory(0, '11-11-2022', '12-12-2022', 'DESC'); 3console.log(history);
1let data = await WP.changeTradeLink('https://steamcommunity.com/tradeoffer/new/?partner=900267897&token=P2YkRJOk'); 2console.log(data);
1let data = await WP.setMyKeys('11EDA9771EB4A200B579A530009CC000'); 2console.log(data);
1const purchase = await WP.buyItemWithId(17441538677, 798500, 'oFvyi0Ma', '378049039'); 2console.log(purchase);
1const purchase = await WP.buyItemWithName( 2 'AK-47 | Redline (Field-Tested)', 3 15000, 4 'oFvyi0Ma', 5 '378049039', 6 null, 7 'csgo', 8); 9console.log(purchase);
1const items = await WP.getPrices('csgo'); 2console.log(items);
1const items = await WP.getPricesDopplers('any'); 2console.log(items);
1const items = await WP.massInfo(['AK-47 | Redline (Field-Tested)', 'csgo']); 2console.log(items);
1const items = await WP.searchItems(['AK-47 | Redline (Field-Tested)', 'csgo']); 2console.log(items);
1const items = await WP.customTradeRequest(['my_id_1', 'my_id_2']); 2console.log(items);
1const items = await WP.tradeRequestStatus(['12345', '23456']); 2console.log(items);
1const items = await WP.checkItemAvailability(['17441538677', '17441538678']); 2console.log(items);
1const data = await WP.validateTradeLink('https://steamcommunity.com/tradeoffer/new/?partner=900267897&token=P2YkRJOk'); 2console.log(data);
1const data = await WP.getHistory('153912146', 'ssR242yo'); 2console.log(data);
1const data = await WP.readyToTransferP2P('11EDA9771EB4A200B579A530009CC000'); 2console.log(data);
1const data = await WP.checkWssUser('765611983383140000'); 2console.log(data);
1const data = await WP.editItems([{ item_id: 1, price: 1 }], 'csgo'); 2console.log(data);
1const data = await WP.fetchInventory('csgo'); 2console.log(data);
1const data = await WP.getMyInventory(0, 'csgo'); 2console.log(data);
1const data = await WP.myListedItems('csgo'); 2console.log(data);
1const data = await WP.listItemsSteam([{ item_id: 1, price: 1 }], 'csgo'); 2console.log(data);
1const data = await WP.removeItems([1, 2, 3, 4]); 2console.log(data);
1const data = await WP.removeAll('csgo'); 2console.log(data);
1const data = await WP.buyOrderHistory(0, 'csgo'); 2console.log(data);
1const data = await WP.buyOrders(0, 'AK-47 | Redline (Field-Tested)', '1', 'csgo'); 2console.log(data);
1const data = await WP.createBuyOrder('AK-47 | Redline (Field-Tested)', 5, 15000, 'csgo'); 2console.log(data);
1const data = await WP.editBuyOrder(123, 5, 1000); 2console.log(data);
1const data = await WP.removeBuyOrder([1, 2, 3]); 2console.log(data);
1const data = await WP.removeAllOrders('csgo'); 2console.log(data);
1const data = await WP.getItemsList(0, null, 'knife', 'DESC'); 2console.log(data);
1const data = await WP.getSteamItems(730); 2console.log(data);
1const data = await WP.getMerchantUser('76561198000000000', 'my_merchant'); 2console.log(data);
1const data = await WP.postMerchantUser( 2 'my_merchant', 3 'https://steamcommunity.com/tradeoffer/new/?partner=900267897&token=P2YkRJOk', 4 '76561198000000000', 5); 6console.log(data);
1const data = await WP.MerchantInventoryUpdate('76561198000000000', 'my_merchant'); 2console.log(data);
1const data = await WP.MerchantInventory('76561198000000000', 'my_merchant', 730); 2console.log(data);
1const data = await WP.MerchantListItemsSteam('my_merchant', '76561198000000000', [{ item_id: 1, price: 1 }]); 2console.log(data);
1const data = await WP.MerchantDepositsHistory( 2 'my_merchant', 3 '76561198000000000', 4 'aaabe17b-dddd-4444-affd-dcad3fa6fbbe', 5); 6console.log(data);
1TS.on('send-trade', (message: TradeWebsocketCreateTradeData) => { 2 console.log(message); 3}); 4TS.on('cancelTrade', (message: TradeWebsocketCancelTradeData) => { 5 console.log(message); 6}); 7TS.on('accept_withdraw', (message: TradeWebsocketAcceptWithdrawData) => { 8 console.log(message); 9});
1//manual sub events 2WS.on('add_item', (message: ItemChangeEvent) => { 3 console.log(message); //waxpeer new item event 4}); 5WS.on('remove', (message: ItemChangeEvent) => { 6 console.log(message); //waxpeer item removed event 7}); 8WS.on('update_item', (message: UpdateItemEvent) => { 9 console.log(message); //waxpeer item price change event 10}); 11//auto sub after auth 12WS.on('change_user', (message: ChangeUserEvent) => { 13 if (message.name === 'wallet') console.log(message); //balance change event 14}); 15WS.on('updated_item', (message: UpdatedItemEvent) => { 16 console.log(message); //trade status change event 17});
1try { 2 let user = await WP.getProfile(); 3 console.log(user); 4} catch (e) { 5 console.log(e); 6}
No vulnerabilities found.
No security vulnerabilities found.