Skip to content
Open
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
11 changes: 7 additions & 4 deletions api/sign.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,13 @@ let transaction = await arweave.createTransaction({
});

// sign using arweave-js
const signedFields = await window.arweaveWallet.sign(transaction);
const signedTransaction = await window.arweaveWallet.sign(transaction);

// TODO: post `signedTransaction` to the network or...

// ...update the original transaction's fields with the signed transaction's
// fields...

// update transaction fields with the
// signed transaction's fields
transaction.setSignature({
id: signedFields.id,
owner: signedFields.owner,
Expand All @@ -88,5 +91,5 @@ transaction.setSignature({
signature: signedFields.signature
});

// TODO: post the transaction to the network
// TODO: ...and post `transaction` to the network
```