Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Update page.mdx #316

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion src/app/typescript/v5/transactions/send/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,19 @@ console.log("cost in ether", gasCost.ether);
Simulate a transaction to see if it would be successful.

```ts
import { prepareContractCall, simulateTransaction } from "thirdweb";
import { simulateTransaction } from "thirdweb";

const result = await simulateTransaction({ transaction });
console.log("simulation result", result);
```

## encode

Encode a transaction data to be used later

```ts
import { encode } from "thirdweb";

const data = await encode(transaction);
console.log("encoded data", data);
```
Loading