Build Transactions

Building and submitting transactions on Yaci

Import Yaci Provider

First, We import YaciProvider

By default, the YaciProvider will use the default URL, https://yaci-node.meshjs.dev/api/v1/. If you want to use a custom URL, you can pass it as a parameter.

In this example, we initialize the YaciProvider and fetch the UTxOs of an address.

You can topup ADA in your wallet by running the following command from devne in order to fetch the UTxOs of an address.

Get UTxOs

Fetch UTxOs of an address. Note: your Yaci devnet must be running.

Basic Transaction

We import a wallet, for exampleMeshWallet with YaciProvider as the fetcher and submitter:

Next, we create a transaction and send 1 ADA to the recipient address.

Note: for this transaction to work, you must have a Yaci devnet running and the wallet is funded. You can topup ADA in your wallet by running the following command from devnet:

Get UTxOs

Fetch UTxOs of an address. Note: your Yaci devnet must be running.