Sign Transaction
Wander Injected API sign() function
Argument
Type
Description
Example usage
With arweave-js (recommended)
arweave-js (recommended)import Arweave from "arweave";
// create arweave client
const arweave = new Arweave({
host: "ar-io.net",
port: 443,
protocol: "https"
});
// connect to the extension
await window.arweaveWallet.connect(["SIGN_TRANSACTION"]);
// create a transaction
const transaction = await arweave.createTransaction({
data: '<html><head><meta charset="UTF-8"><title>Hello permanent world! This was signed via Wander!!!</title></head><body></body></html>'
});
// sign using arweave-js
await arweave.transactions.sign(transaction);
// TODO: post the transaction to the networkDirectly using Wander
Last updated
Was this helpful?