sailbound
v0.1.1
Published
Sailbound command line: borrow USDG against stock tokens on Robinhood Chain, fund the pool, and pay x402 endpoints. Previews first; nothing is sent without --yes.
Maintainers
Readme
sailbound
Command line for Sailbound: borrow USDG against stock tokens on Robinhood Chain, fund the pool, follow
loans, and pay x402 endpoints in USDG. Built on @sailbound/sdk.
Unaudited software. Use only amounts you can afford to lose. A liquidation takes all of a loan's collateral. Stock tokens are not offered to U.S. persons.
Run
npx sailbound --helpWith no configuration it reads Robinhood Chain mainnet through the public RPC. Reading needs nothing else:
npx sailbound pool
npx sailbound assets
npx sailbound quote --asset NVDA --collateral 2 --amount 50 --days 7
npx sailbound record --address 0xYourAddressSending transactions
Every command that moves money previews first and sends nothing without --yes. To send on mainnet, set both:
PRIVATE_KEY: the wallet's key, from the environment or a.envfile in the current folder (never printed);ALLOW_MAINNET=true: a deliberate switch; without it, sending on chain 4663 is refused.
npx sailbound borrow --asset NVDA --collateral 2 --amount 50 --days 7 # preview
npx sailbound borrow --asset NVDA --collateral 2 --amount 50 --days 7 --yes # send
npx sailbound repay --loan 12 --yes
npx sailbound deposit --amount 100 --lock 1m --yesx402
npx sailbound x402-catalog --url https://sailbound.xyz
npx sailbound pay --url https://sailbound.xyz/api/x402/pool --max-price 0.05
npx sailbound pay --url https://sailbound.xyz/api/x402/pool --max-price 0.05 --max-borrow 5 --asset NVDA --days 7 --yes--max-price and --max-borrow are hard limits. A loan taken to pay is a normal loan: fixed fee, due date, and liquidation of
all its collateral if not repaid.
Other settings: RPC_URLS (comma-separated; default the public Robinhood Chain RPC), POOL_ADDRESS / USDG_ADDRESS, --json
for machine-readable output. More: sailbound.xyz/developers. License: MIT.
