StateModel
Enriched state model built from multiple onchain accounts. Represents the complete state of a GLAM vault.State account public key
Vault PDA associated with this state
Type of state account (vault, tokenizedVault, mint, or singleAssetVault)
Raw vault name as character codes
Vault name as string (getter)
Metadata URI
Whether the vault is enabled
Allowed asset mints for the vault
Creation metadata
Vault owner public key
Portfolio manager name as character codes
Borrowable asset mints
Whether the vault is in reduce-only mode
Whether any LST is allowed
Timelock duration in seconds
Integration access control lists
Delegate access control lists
Fee configuration
Associated share mint (for tokenized vaults)
Associated mint model (for tokenized vaults)
Base asset mint (e.g., USDC or SOL)
Token program ID for base asset (0 = Token Program, 1 = Token-2022)
Token program PublicKey for base asset (getter)
Decimals for base asset
Pending state updates (during timelock)
Pending mint updates (during timelock)
Timestamp when timelock expires
External position accounts
Priced protocol positions
Human-readable product type (getter)
ISO date string of vault creation (getter)
Unique key for vault identification (getter)
Union set of assets and borrowable assets (getter)
Static methods
StateAccountType
Enum representing the type of state account.Standard vault type
Tokenized vault with share tokens
Mint-only account
Single asset vault type
Static methods
CreatedModel
Metadata about vault creation.Initialization key as byte array
Public key of vault creator
Unix timestamp of creation