sign() (transaction)
Othent JS SDK sign() function
The sign() function signs an Arweave Transaction using the current user's private key. It's meant to replicate the behavior of the transactions.sign() function of arweave-js, but instead of mutating the transaction object, it returns a new and signed transaction instance.
This function assumes (and requires) a user is authenticated. See requireAuth().
API
sign(transaction: Transaction): Promise<Transaction>;transaction: Transaction
transaction: TransactionA valid Arweave Transaction instance, without a keyfile.
return Promise<Transaction>
return Promise<Transaction>A Promise containing a new signed Transaction instance.
Example usage
With arweave-js (recommended)
arweave-js (recommended)Directly using Othent
Last updated