glosso provision.
Functions
glosso_balance(index?, includeTokens?)
Check the SOL balance of any sub-wallet.
Script: tsx scripts/balance.ts [--index 0] [--tokens]
| Parameter | Type | Default | Description |
|---|---|---|---|
index | number | 0 | Sub-wallet derivation index |
includeTokens | boolean | false | Also fetch SPL token balances |
glosso_send(to, amountSol, index?)
Send SOL from the wallet to any Solana address.
Script: tsx scripts/send.ts <recipient> <amountSol> [--index 0]
| Parameter | Type | Default | Description |
|---|---|---|---|
to | string | — | Recipient Solana address (base58) |
amountSol | number | — | Amount in SOL (e.g. 0.01) |
index | number | 0 | Sub-wallet index to send from |
explorer link to the user after a successful send.
glosso_history(index?, limit?)
Fetch recent transaction history.
Script: tsx scripts/history.ts [--index 0] [--limit 10]
| Parameter | Type | Default | Description |
|---|---|---|---|
index | number | 0 | Sub-wallet index |
limit | number | 10 | Max transactions to return |
Sub-Wallet Index Reference
| Index | Conventional Purpose |
|---|---|
0 | Primary — main identity, receives funds |
1 | Trading — DeFi operations, swaps |
2 | Vault — long-term storage |
3 | Burner — disposable, higher-risk operations |
Error Types
| Error | Meaning |
|---|---|
"Invalid recipient address" | Address format error |
"Amount must be greater than 0" | Non-positive amount |
"Insufficient balance" | Not enough SOL (including fees) |
"Failed to send transaction" | Network error — safe to retry once |