Skip to content

Commit

Permalink
remove duplicate create tx example (#55)
Browse files Browse the repository at this point in the history
* remove duplicate create tx example

* chore: changeset
  • Loading branch information
metasal1 authored Feb 27, 2025
1 parent 8139481 commit 7e1ce79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 36 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-ghosts-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gill": patch
---

remove duplicate entry from changelog
18 changes: 0 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,24 +227,6 @@ const transaction = createTransaction({
});
```

To create a transaction while setting the latest blockhash:

```typescript
import { createTransaction } from "gill";

const { value: latestBlockhash } = await rpc.getLatestBlockhash().send();

const transaction = createTransaction({
version,
feePayer,
instructions,
latestBlockhash,
// the compute budget values are HIGHLY recommend to be set in order to maximize your transaction landing rate
// computeUnitLimit: number,
// computeUnitPrice: number,
});
```

### Signing transactions

If your transaction already has the latest blockhash lifetime set via `createTransaction`:
Expand Down
18 changes: 0 additions & 18 deletions packages/gill/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,24 +227,6 @@ const transaction = createTransaction({
});
```

To create a transaction while setting the latest blockhash:

```typescript
import { createTransaction } from "gill";

const { value: latestBlockhash } = await rpc.getLatestBlockhash().send();

const transaction = createTransaction({
version,
feePayer,
instructions,
latestBlockhash,
// the compute budget values are HIGHLY recommend to be set in order to maximize your transaction landing rate
// computeUnitLimit: number,
// computeUnitPrice: number,
});
```

### Signing transactions

If your transaction already has the latest blockhash lifetime set via `createTransaction`:
Expand Down

0 comments on commit 7e1ce79

Please sign in to comment.