| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Plutus.PAB.Core.ContractInstance.BlockchainEnv
Description
Synopsis
- startNodeClient :: Config -> InstancesState -> IO BlockchainEnv
 - processMockBlock :: InstancesState -> BlockchainEnv -> Block -> Slot -> IO (STM (Either SyncActionFailure (Slot, BlockNumber)))
 
Documentation
Arguments
| :: Config | PAB's config  | 
| -> InstancesState | In-memory state of running contract instances  | 
| -> IO BlockchainEnv | 
Connect to the node and write node updates to the blockchain env.
processMockBlock :: InstancesState -> BlockchainEnv -> Block -> Slot -> IO (STM (Either SyncActionFailure (Slot, BlockNumber))) Source #
Go through the transactions in a block, updating the BlockchainEnv
   when any interesting addresses or transactions have changed.