Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.

vault/v2 package

Overview

Package vault is the demo vault, version 2. Users deposit ugnot and withdraw it later. Version 2 fixes the bug Bouncer proved in version 1: Balances returns a copy of the ledger, not a pointer to it (security guide §5.1).

Function

Balances

func Balances() []Entry
Ask AI Claude ChatGPT

Balances returns a copy of the ledger, for frontends that list depositors.

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g19wmd95cwm3s0w0c5592tgu3zh4zgrtlggvugnj/vault/v2.Balances()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/g19wmd95cwm3s0w0c5592tgu3zh4zgrtlggvugnj/vault/v2, for example a function call with arguments.