mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
xrpl.js 2.0: more updates
This commit is contained in:
@@ -36,11 +36,11 @@ async function main() {
|
||||
console.log("Signed blob:", signed.tx_blob)
|
||||
|
||||
// Submit signed blob --------------------------------------------------------
|
||||
const tx = await api.submitSignedReliable(signed.tx_blob)
|
||||
const tx = await api.submitAndWait(signed.tx_blob)
|
||||
// This raises an exception if the transaction isn't confirmed.
|
||||
|
||||
// Wait for validation -------------------------------------------------------
|
||||
// submitSignedReliable() handles this automatically, but it can take 4-7s.
|
||||
// submitAndWait() handles this automatically, but it can take 4-7s.
|
||||
|
||||
// Check transaction results -------------------------------------------------
|
||||
console.log("Transaction result:", tx.result.meta.TransactionResult)
|
||||
|
||||
Reference in New Issue
Block a user