Skip to main content

Install & Configure CLI

The GLAM CLI is built using the GLAM SDK. The source code is available on Github. For reference, here’s a sample configuration:
If you don’t have a dedicated RPC for landing transactions, it’s highly recommended to set priority fee level to High.

Create a Vault

Prepare a vault.json file with basic vault configurations:
Create the vault:
Output:

Enable Integrations

Integrations are disabled by default. Enable them before use:
Verify enabled integrations:
Output:

Deposit

SOL and tokens can be transferred to the vault directly.

Get Vault Address

In the output, the pubkey after Active vault: is the vault address that can receive tokens.
Double check you have the right address before transferring. Sending tokens to the wrong address might lead to unrecoverable loss of your funds!

Check Vault Holdings

Output:

Kamino Lending

Initialize Kamino User

Deposit to Main Market

The pubkey of Kamino main market is 7u3HeHxYDLhnCoErrtycNokbQYbWGzLs6JSDqGAv5PfF. Deposit 0.1 SOL:
To verify the deposit, visit the vault’s Kamino account at:

Borrow

Borrow cbBTC using deposited SOL as collateral:

Withdraw

Repay


Jupiter Swap

Swap 0.01 SOL to USDC:

Access Control & Delegation

Grant Permissions

List Delegates

Revoke Permissions

Revoke All Access


Debugging Tips

Simulation

If a transaction fails during simulation, copy the base64 encoded transaction data and simulate it on https://explorer.solana.com/tx/inspector for better error messages.

Inspecting Onchain Data

Due to active development, new IDLs are shipped frequently. If a transaction isn’t parsed on solscan.io, try https://explorer.solana.com/ instead.