0

I know that it is possible to create an unsigned transaction using the wallet RPC (with the command transfer). Is it possible to sign this transaction with just javascript (without using the wallet RPC)? For example using the libsodium library?

1 Answer 1

1

Is it possible to sign this transaction with just javascript (without using the wallet RPC)? For example using the libsodium library?

Not with libsodium, but with monero-ecosystem/monero-javascript it's possible.

See: monero-ecosystem/monero-javascript/blob/master/docs/developer_guide/view_only_offline.md

// create offline wallet
let offlineWallet = await monerojs.createWalletFull({...});
...
// sign tx using offline wallet
let signedTxHex = await offlineWallet.signTxs(unsignedTx.getTxSet().getUnsignedTxHex());

monerojs.createWalletFull does not need RPC access.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.