Skip to content

Commit

Permalink
Update low level tx example to near-api-js 3.x.x (#1848)
Browse files Browse the repository at this point in the history
  • Loading branch information
SurgeCode authored Mar 25, 2024
1 parent e95fd55 commit 8a0d620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/6.integrator/create-transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ Once you have access to the private key of the sender's account, create an envir

```js
const privateKey = process.env.SENDER_PRIVATE_KEY;
const keyPair = nearAPI.utils.key_pair.KeyPairEd25519.fromString(privateKey);
const keyPair = nearAPI.KeyPair.fromString(privateKey);
```

---
Expand Down Expand Up @@ -360,7 +360,7 @@ Now that the transaction is created, we sign it before sending it to the NEAR bl

```js
const serializedTx = nearAPI.utils.serialize.serialize(
nearAPI.transactions.SCHEMA,
nearAPI.transactions.SCHEMA.Transaction,
transaction
);
```
Expand Down

0 comments on commit 8a0d620

Please sign in to comment.