Global install via npm
$ npm i -g pegd-cliRequires Node.js 18 or newer. The binary lands on your PATH as pegd.
Terminal-first metrology for stablecoin issuers.
$ npm i -g pegd-cliRequires Node.js 18 or newer. The binary lands on your PATH as pegd.
Offline install or air-gapped mirrors. Verify the release hash against the on-chain attestor commitment before use.
$ pegd issue --name "My USD" --symbol MYUSD --peg USD --collateral cryptoRegister a new stablecoin issuer with a crypto over-collateralization policy.
$ pegd mint <mint> --amount 10000Mint tokens against the vault once deposits clear the ratio floor.
$ pegd burn <mint> --amount 5000Redeem collateral by burning tokens back to the vault.
$ pegd reserves <mint>Print the live collateral ratio, supply, and reserve breakdown.
$ pegd por <mint> --history 30Fetch signed proof-of-reserve attestations from the last 30 cycles.
$ pegd stress <mint> --shock 30 --duration 24Simulate a market shock against the reserve and inspect breaker behavior.
$ pegd watch <mint> --threshold 120Continuously monitor a mint and emit alerts when the ratio breaches a threshold.
$ pegd verify <mint>Independently re-verify the latest attestation signature against the on-chain commitment.
Every CLI verb is available as a typed method on @pegd/sdk. Compose issuers into your own service.
import { pegd } from '@pegd/sdk';
const issuer = pegd.issuer('MyPeggedUsd');
await issuer.mint({ amount: 10_000, to: wallet });Available on npm as @pegd/sdk.
Wire proof-of-reserve into CI. Fail the build if the ratio drops below a floor.
- uses: pegd/reserves-check@v1
with:
mint: ${{ secrets.PEGD_MINT }}
min-ratio: 130Drop the step into .github/workflows/reserves.yml and schedule it hourly.