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.

disperse package

Overview

Code generated by smelt (Solidity -> Gno) from example-sol/cryptobatch.disperse.sol and linked to the shared on-chain runtime gno.land/p/nym-smelt001/solrt.

Functions

DisperseCSV

func DisperseCSV(cur realm, recipientsCSV string, amountEach int64)
Ask AI Claude ChatGPT

DisperseCSV is a gnoweb / Adena-friendly entrypoint accepting comma-separated Bech32 recipient addresses and equal ugnot amount per recipient.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/nym-smelt001/disperse" -func "DisperseCSV" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/nym-smelt001/disperse" -func "DisperseCSV" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

DisperseNative

func DisperseNative(cur realm, recipients []address, amounts []solrt.U256)
Ask AI Claude ChatGPT

DisperseNative sends amounts[i] ugnot to recipients[i] in a single atomic transaction. Attached ugnot via banker OriginSend must exactly equal the sum of amounts.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/nym-smelt001/disperse" -func "DisperseNative" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/nym-smelt001/disperse" -func "DisperseNative" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

DisperseNativeSimple

func DisperseNativeSimple(cur realm, recipients []address, amount solrt.U256)
Ask AI Claude ChatGPT

DisperseNativeSimple sends the same ugnot amount to each recipient atomically.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/nym-smelt001/disperse" -func "DisperseNativeSimple" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "onyx-1" -remote "https://rpc.onyx.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.onyx.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/nym-smelt001/disperse" -func "DisperseNativeSimple" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "onyx-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.onyx.testnets.gno.land" call.tx
  

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render exposes a live Markdown dashboard in gnoweb with 1-click Adena txlinks.

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-smelt001/disperse.Render()"

Result

Stats

func Stats() (batches uint64, recipients uint64, ugnotTotal string)
Ask AI Claude ChatGPT

Stats returns lifetime batch transfer metrics.

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/nym-smelt001/disperse.Stats()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/nym-smelt001/disperse, for example a function call with arguments.