3.0.1 • Published 3 years ago

@zapjs/zaptoken v3.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

@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

- Node 12.20 <=14.15
- 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

3.0.1

3 years ago

3.0.0

3 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.0.18

5 years ago

2.0.17

5 years ago

2.0.16

5 years ago

2.0.15

6 years ago

2.0.14

6 years ago

2.0.13

6 years ago

2.0.12

6 years ago

2.0.11

6 years ago

2.0.10

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago