Skip to main content
GLAM provides a rich set of options to customize a vault. This page explains how to create and configure a vault using the GLAM SDK.

Vault

To create a vault, we use the state sub-client’s create method:
create-vault.ts
The code above is equivalent to creating the vault with glam-cli using the following template:
vault.json

Tokenized Vault

We need to use the mint sub-client’s initialize method to create a tokenized vault. The vault state will be automatically created by the underlying initialize_mint instruction through CPI.
create-tokenized-vault.ts
The code above is equivalent to creating the vault with glam-cli using the following template:
tokenized-vault.json