You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remember to select a wallet before attempting to build and submit
50
-
transactions. The wallet selection methods we discussed in previous section
51
-
**[Core Concept 2: Choose Wallet](./core-concepts/choose-wallet)** should be implemented before building the
52
-
transaction.
51
+
transactions. Wallet selection discussed in [**Core Concept 2: Choose Wallet**](./wallet-management) should be implemented before attempting to build and submit transactions.
Lucid Evolution is a library for transaction building and designing the way you want to frame your off-chain. It can be used with or without a provider or a certain network for different purposes. The library supports the `Mainnet`, `Preprod`, `Preview` and `Custom` networks
5
+
Lucid Evolution is a transaction building framework for Cardano which provides flexible off-chain development patterns. The library is designed with modularity in mind, allowing you to:
6
6
7
-
To be able to query UTxOs, datums, and protocol parameters, you need to choose a provider and a provider is a service that allows Lucid Evolution to interact with the Cardano blockchain.
7
+
- Build and simulate transactions
8
+
- Work with different Cardano networks (Mainnet, Preprod, Preview, or Custom networks)
9
+
- Choose from multiple provider options for blockchain interaction
8
10
9
-
## Provider selection
11
+
## Provider
12
+
13
+
To interact with the Cardano blockchain (querying UTxOs, datums, or protocol parameters), you'll need to configure a provider. Providers are chain indexing services that offer API access to blockchain data. Lucid Evolution supports several providers:
14
+
15
+
<Callouttype="info">
16
+
While a provider is required for blockchain queries, you can still use Lucid Evolution's transaction building features without one.
17
+
</Callout>
18
+
19
+
### Provider selection
10
20
11
21
You can choose one of the following providers to use with Lucid Evolution
YACI DevKit provides a local development environment with configurable block times and network parameters. For detailed setup instructions, visit the [YACI DevKit documentation](https://devkit.yaci.xyz/tutorials/lucid-evolution/overview).
118
+
107
119
```typescript
108
120
// Configure custom network slot settings for YACI DevKit
109
-
SLOT_CONFIG_NETWORK['Custom'] = {
121
+
SLOT_CONFIG_NETWORK["Custom"] = {
110
122
zeroTime: 1664060800000, // Unix timestamp in milliseconds
By querying the provider you are essentially asking "what's on the blockchain?", this way you can query any on-chain data.
134
-
135
-
The `provider` in `lucid.provider` is the provider instance you passed to `Lucid()` when selecting your provider (Blockfrost, Kupmios, Maestro, Koios, etc.).
136
-
137
-
### UTxOs
138
-
139
-
UTxOs (Unspent Transaction Outputs) are the fundamental building blocks in Cardano's eUTxO model. One of its differentiator from account-based models is that your wallet's balance is the sum of all UTxOs at your address.
`lucid.datumOf(utxo)` is a convenience method that handles both inline datums and datum hashes:
187
-
188
-
1. For UTxOs with inline datums → returns the datum directly
189
-
2. For UTxOs with datum hashes → fetches the full datum using `provider.getDatum()`
190
-
191
-
Once fetched, the datum is cached in the UTxO object for subsequent queries, avoiding additional network requests.
192
-
</Callout>
193
-
194
-
### Protocol Parameters
195
-
196
-
Protocol parameters define the rules and constraints of the Cardano network like tx fees, max block size, max tx size, plutus execution costs, minimum UTxO ada value
UTxOs (Unspent Transaction Outputs) are building blocks of Cardano's eUTxO model. A nuance from account-based models is that your wallet's balance is the sum of all UTxOs at your address.
Protocol parameters define the rules and constraints of the Cardano network like tx fees, max block size, max tx size, plutus execution costs, minimum UTxO ada value
0 commit comments