Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

coins source realm

Functions 9

func BalanceOf

Action
1func BalanceOf(coinId string, addr string) string
source

BalanceOf returns the token balance of addr for coinId.

func BalancesOf

Action
1func BalancesOf(addr string) string
source

BalancesOf returns all coin balances for a given address as a JSON object.

func Burn

crossing Action
1func Burn(cur realm, coinId string, fromAddr string, amountStr string)
source

Burn destroys tokens of coinId from fromAddr. Only the minter or admin can burn.

func Mint

crossing Action
1func Mint(cur realm, coinId string, toAddr string, amountStr string)
source

Mint creates new tokens of coinId and credits them to toAddr. Only the authorized minter or admin can call this.

func SetMinter

crossing Action
1func SetMinter(cur realm, newMinter string)
source

SetMinter sets the authorized minter address. Called once after the minter realm is deployed, by the admin.

func TotalSupply

Action
1func TotalSupply(coinId string) string
source

TotalSupply returns the total minted supply for coinId.

func Transfer

crossing Action
1func Transfer(cur realm, coinId string, toAddr string, amountStr string)
source

Transfer moves tokens from the caller to toAddr. Any holder can call this.

Dependencies

Source Files 2