UNPKG

westwallet-api

Version:
17 lines (15 loc) 474 B
const westwallet = require('../index'); const westwalletErrors = require('../lib/errors'); const config = require('./config'); let client = new westwallet.WestWalletAPI( config.config.apiKey, config.config.secretKey, config.config.baseUrl ); client.transactionInfo(1284).then((data) => { console.log(data); }).catch((error) => { if (error instanceof westwalletErrors.TransactionNotFoundError) { console.log("Transaction not found"); } });