@zapjs/zaptoken
Zap Token
Last updated 3 months ago by propulsor .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @zapjs/zaptoken 
SYNC missed versions from official npm registry.

@zapjs/zaptoken

This repository provides an interface tothe Zap ERC20 token contract. This package enables a Zap holder to check their balance, transfer Zap to other accounts, and delegate transfers (approvals) to other accounts and smart contracts.

Prerequisites

- Nodejs and npm>=6.1.11
- Typescript

Usage

Using ZapToken package for ERC20 methods with Zap Token
npm install --save `@zapjs/zaptoken`
import {ZaopToken} from '@zapjs/zaptoken';

let myZapToken = new ZapToken();

Custom configuration

let myZapToken = new ZapToken({networkId,networkProvider,coordinator})

get Zap balance of an addrss

const balance = await myZapToken.balanceOf(address);

Approve Zap Token to an address

await myZapToken.approve({from,to,amount,gas})
//note : from address has to be in web3.eth.accounts

Send Zap Token to an address

await myZapToken.send({from,to,amount,gas})
//note : from address has to be in web3.eth.accounts

See more Usages of each packages :

Built With

Current Tags

  • 2.2.2                                ...           latest (3 months ago)

25 Versions

  • 2.2.2                                ...           3 months ago
  • 2.2.1                                ...           5 months ago
  • 2.2.0                                ...           5 months ago
  • 2.0.18                                ...           8 months ago
  • 2.0.17                                ...           8 months ago
  • 2.0.16                                ...           9 months ago
  • 2.0.15                                ...           10 months ago
  • 2.0.14                                ...           a year ago
  • 2.0.13                                ...           a year ago
  • 2.0.12                                ...           a year ago
  • 2.0.11                                ...           a year ago
  • 2.0.10                                ...           a year ago
  • 2.0.9                                ...           a year ago
  • 2.0.8                                ...           a year ago
  • 2.0.7                                ...           a year ago
  • 2.0.6                                ...           a year ago
  • 2.0.5                                ...           a year ago
  • 2.0.4                                ...           a year ago
  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (15)

Copyright 2014 - 2016 © taobao.org |