mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
Update content/_code-samples/secure-signing/js/signPayment.js
like it a bit long, but maybe verbose explanation is better. Co-authored-by: Elliot Lee <github.public@intelliot.com>
This commit is contained in:
@@ -4,8 +4,10 @@ const xrpl = require('xrpl')
|
|||||||
// Load seed value from an environment variable:
|
// Load seed value from an environment variable:
|
||||||
const my_wallet = xrpl.Wallet.fromSeed(process.env['MY_SEED'])
|
const my_wallet = xrpl.Wallet.fromSeed(process.env['MY_SEED'])
|
||||||
|
|
||||||
// For offline signing, you need to know your address's next Sequence number alternatively one could use a ticket
|
// For offline signing, you need to know your address's next Sequence number.
|
||||||
// in place of the sequence number, this is useful when you need multiple signatures.
|
// Alternatively, you could use a Ticket in place of the Sequence number.
|
||||||
|
// This is useful when you need multiple signatures and may want to process transactions out-of-order.
|
||||||
|
// For details, see: https://xrpl.org/tickets.html
|
||||||
let my_seq = 21404872
|
let my_seq = 21404872
|
||||||
|
|
||||||
// Provide *all* required fields before signing a transaction
|
// Provide *all* required fields before signing a transaction
|
||||||
|
|||||||
Reference in New Issue
Block a user