A convenient way of interacting with the GLAM Protocol.
Install
glam-cli
.Configure
~/.config/glam/config.json
. The file should contain the following content:At minimum, you need to provide cluster, json_rpc_url, and keypair_path:
Run
Pull the Docker Image
Run the CLI inside Docker Container
/workspace
directory.Create a local directory (for example, $HOME/.glam-cli-docker
) and place both the configuration file and keypair into it. Assuming your keypair filename is keypair.json
, the directory and the config file should look like the following:~/.config/glam/config.json
%USERPROFILE%\.config\glam\config.json
cluster
: Value must be one of mainnet-beta
, devnet
, or localnet
.json_rpc_url
: The URL of your preferred Solana JSON RPC endpoint.tx_rpc_url
: Optional. If not set it defaults to json_rpc_url
. Use this to specify a separate RPC endpoint you want to use for landing transactions.keypair_path
: Path to your keypair JSON file.priority_fee
:
provided, level
and helius_api_key
will be ignored.
level
: Optional (defaults to Min
). Only applied if cluster is mainnet-beta
. Other options are Min
, Low
, Medium
, High
, VeryHigh
, UnsafeMax
, Default
(more info can be found here).helius_api_key
: Optional. Only applied if cluster is mainnet-beta
. If not provided level
will be ignored. The API key is needed to fetch the priority fee estimate from Helius.glam_state
: Optional. If you want to set a default active GLAM state, you can do so here. Alternatively, you can use the set
command to set the active GLAM state later on.micro_lamports
: Specifies a fixed transaction fee in micro-lamports