0.2.6 • Published 7 months ago

unspent v0.2.6

Weekly downloads
-
License
Unlicense
Repository
github
Last release
7 months ago

A utility for calling unspent contracts via the command line.

Usage

In a node ^18 environment:

npm i unspent
unspent -h

━━━ @unspent/cli ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

$ unspent

━━━ Beneficiary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

unspent annuity --testnet --fee #0 <--address #0> --period #0 <--installment #0> --exAddress #0 Regular payments over time

unspent divide --testnet --fee #0 <--addresses #0> --exAddress #0 Divide money into equal payments, up to four addresses

unspent perpetuity --testnet --fee #0 <--address #0> --period #0 --decay #0 Pay a fixed fraction of total value at intervals.

━━━ Distributive ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

unspent faucet --testnet --fee #0 --period #0 --index #0 Distributes some free bitcoin per period

unspent mine --testnet --fee #0 --period #0 --difficulty #0 <--exAddress #0> Distributes some bitcoin per period, for proof of work

━━━ Informational ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

unspent query --testnet <--chaingraph #0> --prefix #0 Query a list of contracts.

unspent record --testnet --fee #0 --index #0 Broadcast a contract to the blockchain

You can also print more details about any of these commands by calling them with