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
Copy file name to clipboardExpand all lines: apps/docs/content/docs/apis/txbuilder/smart-contracts.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@ icon: NewspaperIcon
5
5
---
6
6
importLinkfrom"fumadocs-core/link";
7
7
8
-
In this guide, you will understand all logics you need to know for interacting with smart contracts with`MeshTxBuilder`.
8
+
In this guide, you will understand how to interact with smart contracts through`MeshTxBuilder`.
9
9
10
-
In the code snippet, you will find `txBuilder`, which is an instance of `MeshTxBuilder`, a powerful low-level APIs that allows you to build transactions. Learn how to initialize MeshTxBuilder.
10
+
In the code snippet, you will find `txBuilder`, which is an instance of `MeshTxBuilder`, with powerful low-level APIs that allow you to build transactions. Here's how to initialize **MeshTxBuilder**.
11
11
12
12
```tsx
13
13
const txBuilder =newMeshTxBuilder({
@@ -16,7 +16,7 @@ const txBuilder = new MeshTxBuilder({
16
16
});
17
17
```
18
18
19
-
In Cardano, whenever you need the nodes' computing power to execute a smart contract, you need to provide collateral to prevent spamming. You will see this is everywhere when script execution is needed in below's examples, and here's how you can do so:
19
+
In Cardano, whenever you need the nodes' computing power to execute a smart contract, you need to provide collateral to prevent spamming. You will see this is everywhere when script execution is needed in examples below, and here's how you can do so:
20
20
21
21
```tsx
22
22
txBuilder
@@ -28,7 +28,7 @@ txBuilder
28
28
29
29
Locking assets meaning sending value to a script address with datum.
30
30
31
-
Same as `Transaction` demo, we will lock selected assets from your wallet in an `alwayssucceed` smart contract. We use one API to represent sending value, another API to represent attaching datum to complete the locking assets process:
31
+
Same as the `Transaction` demo, we will lock selected assets from your wallet in an always-succeed smart contract. We use one API to represent sending value, another API to represent attaching datum to complete the locking assets process:
32
32
33
33
```tsx
34
34
// For inline datumtxBuilder
@@ -90,7 +90,7 @@ The lower level APIs support providing your datum in all Mesh `Data` (default),
90
90
91
91
## Unlock Assets
92
92
93
-
Unlocking with `MeshTxBuilder` starts with anyone of the below script version indicators:
93
+
Unlocking assets from a Plutus script, with `MeshTxBuilder`, starts with any of the following script version indicators:
94
94
95
95
```tsx
96
96
.spendingPlutusScriptV1()
@@ -220,7 +220,7 @@ txBuilder
220
220
221
221
## Minting Assets with Plutus Script
222
222
223
-
Minting Plutus tokens with `MeshTxBuilder` starts with anyone of the below script version indicators:
223
+
Minting Plutus tokens with `MeshTxBuilder` starts with any of the following script version indicators:
224
224
225
225
```tsx
226
226
.mintPlutusScriptV1()
@@ -334,4 +334,4 @@ For all smart contract executions, you have option to provide script as referenc
0 commit comments