CLICommands

treasury

snug treasury <COMMAND>

Treasury virtual economy: wallets, transfers, holds, and analytics.

Subcommands

CommandWhat it does
currenciesCurrency management
walletsWallet management
transferSubmit a multi-leg transfer
holdsHold (reservation) management
settleAtomically capture holds and apply extra balanced legs as one transfer
analyticsEconomy analytics

Run snug treasury <command> --help for that command's own options. The global options apply everywhere.

Examples

snug treasury currencies create --domain kingdoms --id cur_gold --name Gold --symbol G --decimals 0 --overdraft deny
snug treasury currencies list --domain kingdoms
snug treasury wallets create --domain kingdoms --currency cur_gold --principal auth_user:usr_01J9ABCD
snug treasury wallets get --domain kingdoms --wallet-id wal_01J9KLMN
snug treasury wallets list --domain kingdoms --principal auth_user:usr_01J9ABCD
snug treasury wallets history --domain kingdoms --wallet-id wal_01J9KLMN --limit 50
snug treasury wallets freeze --domain kingdoms --wallet-id wal_01J9KLMN --frozen true
snug treasury transfer --domain kingdoms --idempotency-key sale-8821 --debit wal_buyer:1000 --credit wal_seller:950 --credit wal_fees:50 --tag marketplace_sale --ref handshake:deal_01J9TUVW
snug treasury holds place --domain kingdoms --wallet wal_buyer --amount 1000 --expires-in 1800 --ref handshake:deal_01J9TUVW
snug treasury holds capture --domain kingdoms --hold-id hold_01J9XYZA
snug treasury holds release --domain kingdoms --hold-id hold_01J9XYZA
snug treasury settle --domain kingdoms --idempotency-key settle-8821 --hold hold_01J9XYZA --hold hold_01J9XYZB --credit wal_fees:50 --debit wal_buyer:50 --tag escrow_settle
snug treasury analytics supply --domain kingdoms --currency cur_gold
snug treasury analytics flows --domain kingdoms --currency cur_gold --window 604800
snug treasury analytics top-holders --domain kingdoms --currency cur_gold --limit 20

Next

On this page