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

erc1155 package

Overview

Package erc1155 is an idiomatic gno.land port of the Solidity ERC-1155 multi-token standard. A single realm tracks many distinct token ids, each with its own fungible balances. Balances are keyed by (owner, id) in an avl.Tree so Render can iterate deterministically.

Function

TotalSupply

func TotalSupply(id int) uint64

TotalSupply returns the total amount minted of token `id`.

Param

Command

gnokey query vm/qeval -remote "https://rpc.topaz.testnets.gno.land" -data "gno.land/r/g12cs4cehujpffpjpywmkqj43m6u5ya53nj69sjz/erc1155.TotalSupply()"

Result