lium topup
Add funds with a stablecoin or a card. The key needs the billing scope.
lium topup currencies
List the stablecoins and networks you can pay with.
Usage
lium topup currencies [OPTIONS]
Flags
| Flag | What it does |
|---|---|
--refresh | Fetch the list again instead of using the cache |
--json | Print as JSON |
Example
lium topup currencies
lium topup create
Create a stablecoin invoice. It prints the deposit address and the exact amount to send from your wallet.
Send the exact amount, on the network shown, before the invoice expires.
Usage
lium topup create --amount USD --currency CODE --network NAME [OPTIONS]
Flags
| Flag | What it does |
|---|---|
-a, --amount USD | Amount in USD |
-c, --currency CODE | Stablecoin, e.g. USDT |
-n, --network NAME | Network, e.g. tron |
--wait SECONDS | Wait for the funds to arrive |
--json | Print as JSON |
Example
lium topup create -a 20 -c USDT -n tron
lium topup link
Create a card payment page for a person to pay. Nothing is charged by this command.
Usage
lium topup link --amount USD [OPTIONS]
Flags
| Flag | What it does |
|---|---|
-a, --amount USD | Amount in USD, at least $10 |
--wait SECONDS | Wait for the funds to arrive |
--json | Print as JSON |
Example
lium topup link -a 10
lium topup card
Charge a card saved on the account.
Usage
lium topup card --amount USD [OPTIONS]
Flags
| Flag | What it does |
|---|---|
-a, --amount USD | Amount in USD, at least $10 |
--card PM_ID | Which saved card (default: the default card) |
--idempotency-key KEY | Repeat with the same key and amount to avoid a second charge |
--wait SECONDS | Wait for the funds to arrive |
-y, --yes | Charge without asking |
--json | Print as JSON (needs --yes) |
Example
lium topup card -a 50
A 402 with a next_action_url is still open: hand the URL to the cardholder and repeat only with the same --idempotency-key. A new key opens a second payment that can also be charged.
lium topup wait
Wait until a payment shows on your balance.
Usage
lium topup wait [OPTIONS]
Flags
| Flag | What it does |
|---|---|
--above USD | Wait for the balance to rise above this (default: the balance now) |
--timeout SECONDS | Give up after this long (default 600) |
--json | Print as JSON |
Example
lium topup wait --above 0 --timeout 900