1.0.4 • Published 5 years ago

swtc-tool-fast-payment v1.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

快速转账

Description

快速转帐适用于大批量转移支付

源文件演示swtc-toolset提供的便利性辅助

充分利用javascript的async/await, 不依赖于帐本的关闭

node.js/web通用

Getting

  $ npm install swtc-tool-fast-payment 

Using

const fastPayment = require('swtc-tool-fast-payment')
const from_wallet = {secret: 's...........................'}
var to_wallets = [
	{address: 'ja............', quantity: nnn},
	{address: 'jb............', quantity: mmm},
	{address: 'jc............'} // if no quantity specified, use the default quantity in function parameter
]
var default_quantity = 1
const token_to_send = 'swt'
const server_to_use = 'ws://ts5.jigntum.com:5020'
default_memo = 'memo: '
fastPayment(from_wallet, to_wallets, default_quantity, token_to_send, server_to_use, default_memo)
	.then( (result) => console.log(result) )
	.catch ( (error) => console.log(error) )

Involving

  $ git clone https://github.com/swtcca/swtc-tool-fast-payment.git
  $ cd swtc-tool-fast-payment; npm install
  $ npm run test

Limits

  • 目前仅支持swtc的快速转帐
  • 代币支持后续添加

About Jingtum lib

Abount Swtc Lib

About Swtc Toolset

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago