KRC20

constructor

Params

Return

Return an KRC20 instance .

Methods

setCustomABI

Set custom ABI for KRC20

Params

Only use this method when you're sure about your ABI

Return

None

getName

Get token's name

Params

Return

Token's name

getDecimals

Get token's decimals

Params

Return

Token's decimals

getSymbol

Get token's symbol

Params

Return

Token's symbol

getTotalSupply

Get token's total supply

Params

Return

Token's total supply

getFromAddress

Get token data from blockchain and save to local cache

Params

Return

None

balanceOf

Get token balance of an address

Params

Return

Token balance of address

Balance should be parse with token's decimals to get correct display value

transfer

Transfer token to another address

Params

transferRaw

Transfer token to another address

Params

estimateGas

Estimate gas for KRC20 transaction

Params

Return

Estimated gas for transaction

Last updated