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

erc1155/v0 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

BalanceOf

func BalanceOf(owner address, id int) uint64
Ask AI Claude ChatGPT

BalanceOf returns the amount of token `id` held by `owner`.

Params

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/erc1155/v0.BalanceOf(,)"

Result