0.0.2 • Published 5 years ago

bitaps-forwarding v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

node-bitaps-forwarding

A RESTful API package for bitaps payment forwarding

Installation

$ npm i bitaps-forwarding

API

Create forwarding address

address(forwarding_address?: string, callback_link?: string, confirmations?: number);

forwarding_address: Address for payout. (Optional)

callback_link: Sets the number of decimal points. (Optional)

confirmations: Number of confirmations required for the payment. (Optional)

Request status and statistics of the payment address.

state(address: string, token?: string)

address: Payment address.

token: Payment code Or Domain access token. (Optional)

Request status and statistics of the payment address.

transactions(address: string, params?: TransactionParams, token?: string)

address: Payment address.

params: From & To & Limit & Page. (Optional)

token: Payment code Or Domain access token. (Optional)

Example

let Bitaps = require("bitaps-forwarding");

let eth = "0x65a502a96b7da631b68101b3f7b193448dac36a4"; // Address for payout.
let bitaps = new Bitaps("eth"); // Init Bitaps instance
bitaps.address(eth).then(e => console.log(e)); // Create forwarding address

To-Do

  • Payment forwarding
  • Callback log
  • Domain authorization
  • Domain statistics

Test

$ npm test
0.0.2

5 years ago

0.0.1

5 years ago