InMemoryChainAccount
class InMemoryChainAccount(val chainId: String, val address: String, val keyRef: KmsKeyRef, anchorClient: BlockchainAnchorClient, kms: KeyManagementService) : ChainAccount
Phase 2 in-memory ChainAccount adapter.
Bridges to the registered BlockchainAnchorClient for fee estimation and to a KeyManagementService for signing. Phase 2 plugins keep their embedded credentials, so balance returns TokenAmount.unknown — real on-chain balance lookup is out of scope until plugins surface it.
Constructors
Link copied to clipboard
constructor(chainId: String, address: String, keyRef: KmsKeyRef, anchorClient: BlockchainAnchorClient, kms: KeyManagementService)
Functions
Link copied to clipboard
Current native-token balance, queried live from the chain.
Link copied to clipboard
Estimate the fee an op would incur if submitted now.
Link copied to clipboard
Sign an unsigned, plugin-built transaction. The transaction is opaque to the treasury — only the plugin understands its structure (Cardano UTXO, ETH RLP, Algorand MsgPack, …). The treasury merely brokers the KMS call.