BlockchainProviderTF
Trait for blockchain providers with generic effect type. (TF is for "tagless final" style, often term used in FP literature).
Extends BlockchainReaderTF with transaction submission capability.
Attributes
- Graph
-
- Supertypes
- Known subtypes
Members list
Value members
Abstract methods
Poll for transaction confirmation, checking periodically until confirmed or max attempts reached.
Poll for transaction confirmation, checking periodically until confirmed or max attempts reached.
Value parameters
- delayMs
-
delay between attempts in milliseconds (default 1000)
- maxAttempts
-
maximum number of polling attempts (default 60)
- txHash
-
the transaction hash to poll for
Attributes
- Returns
-
the last observed transaction status
Submits a transaction to the network.
Submits a transaction to the network.
Attributes
Submit a transaction and poll until confirmed.
Submit a transaction and poll until confirmed.
Composes submit and pollForConfirmation: submits the transaction, then polls until it is confirmed or the maximum number of attempts is reached.
Value parameters
- delayMs
-
delay between attempts in milliseconds (default 1000)
- maxAttempts
-
maximum number of polling attempts (default 60)
- transaction
-
the transaction to submit
Attributes
- Returns
-
Right(txHash) if confirmed, Left(error) if submission failed or not confirmed
Inherited and Abstract methods
Returns CardanoInfo for this provider.
Check the status of a transaction on the blockchain.
Check the status of a transaction on the blockchain.
Value parameters
- txHash
-
the transaction hash to check
Attributes
- Returns
-
the current status of the transaction
- Inherited from:
- BlockchainReaderTF
Returns the current slot number.
Fetches the latest protocol parameters from the network.
Fetches the latest protocol parameters from the network.
Attributes
- Inherited from:
- BlockchainReaderTF
Find UTxOs using a type-safe query.