Marginfi account authority address
Update instance data from provided data struct.
Marginfi account data struct
Deposit collateral into the marginfi account.
Amount to deposit (mint native unit)
Transaction signature
Create ordered list of account metas required to observe all active UTPs.
AccountMeta[]
list of account metas
Handle a bankrupt account.
Transaction signature
Create transaction instruction to deposit collateral into the marginfi account.
Amount to deposit (mint native unit)
MarginDepositCollateral
transaction instruction
Create transaction instruction to handle a bankrupt account.
HandleBankruptcy
transaction instruction
Create transaction instruction to withdraw collateral from the marginfi account.
Amount to withdraw (mint native unit)
MarginWithdrawCollateral
transaction instruction
Refresh and retrieve the health cache for all active UTPs directly from the UTPs.
List of health caches for all active UTPs
Update instance data by fetching and storing the latest on-chain state.
Retrieve the UTP interface instance from its index
UTP index
UTP interface instance
Withdraw collateral from the marginfi account.
Amount to withdraw (mint native unit)
Transaction signature
Fetch marginfi account data. Check sanity against provided config.
marginfi config
marginfi Anchor program
Decoded marginfi account data struct
Pack data from the on-chain, vector format into a coherent unit.
Marginfi account data
Index of the target UTP
UTP data struct
Decode marginfi account data according to the Anchor IDL.
Raw data buffer
Decoded marginfi account data struct
Decode marginfi account data according to the Anchor IDL.
Marginfi account data struct
Raw data buffer
MarginfiAccount network factory
Fetch account data according to the config and instantiate the corresponding MarginfiAccount.
Address of the target account
marginfi client
MarginfiAccount instance
MarginfiAccount local factory (decoded)
Instantiate a MarginfiAccount according to the provided decoded data. Check sanity against provided config.
Address of the target account
marginfi client
Decoded marginfi marginfi account data
MarginfiGroup instance
MarginfiAccount instance
MarginfiAccount local factory (encoded)
Instantiate a MarginfiAccount according to the provided encoded data. Check sanity against provided config.
Address of the target account
Encoded marginfi marginfi account data
MarginfiGroup instance
MarginfiAccount instance
Generated using TypeDoc
Wrapper class around a specific marginfi marginfi account.