wagr-cli
v0.1.1
Published
Command-line interface for the WAGR prediction market standard on Solana.
Maintainers
Readme
wagr-cli
Command-line interface for the WAGR prediction market standard on Solana.
npm i -g wagr-cliCommands
wagr create market author a new prediction market
wagr quote price an outcome via LMSR
wagr split CTF split -- lock collateral, mint one share per outcome
wagr merge CTF merge -- burn one share of every outcome, unlock collateral
wagr redeem collect payout after resolution
wagr propose post an oracle resolution with a bond
wagr dispute challenge a pending optimistic proposal
wagr markets list live markets via the metadata serviceConfiguration
| Flag | Env var | Default |
|---|---|---|
| --rpc <url> | WAGR_RPC | https://api.mainnet-beta.solana.com |
| --keypair <path> | WAGR_KEYPAIR | ~/.config/solana/id.json |
| --commitment <level> | -- | confirmed |
Example: LMSR quote
wagr quote --qs 0,0 --b 1000 --outcome 0 --shares 100Implementation follows the Hanson (2003) cost function with a numerically stable log-sum-exp. Prices always sum to 1 across all outcomes.
License
Apache 2.0.
