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

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

gnosplit/v1 package

Overview

Package gnosplit shares a group's expenses, like Tricount: who paid what, who owes whom, and the fewest transfers that settle everything.

A group has members, each a name with or without a wallet. Members with a wallet linked are the group's editors: they record expenses, incomes and transfers, and get a gnotif notification when one concerns them. Members without one are just names: a friend with no wallet still has a balance.

Amounts are cents of the group's currency, a label such as "€" or "CHF": no coin moves here, a transfer records a payment made elsewhere. Every balance is kept up to date on each write, so reading a group never adds up its history.

Function

Delete

func Delete(cur realm, group, entry string)
Ask AI Claude ChatGPT

Delete removes an entry and undoes its effect on every balance.

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-alexiscolin000/gnosplit/v1" -func "Delete" -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-alexiscolin000/gnosplit/v1" -func "Delete" -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