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

grc20reg/v0 package

Function

Approve

func Approve(_ int, rlm realm, tokenKey string, spender address, amount int64)
Ask AI Claude ChatGPT

Approve sets an allowance owned by the CALLING REALM, letting `spender` draw on the calling realm's balance. It does not touch the signing user's allowances.

Params

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nt/grc20reg/v0.Approve(,,,,)"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/nt/grc20reg/v0, for example a function call with arguments.