xrpl.js 2.0: more updates

This commit is contained in:
mDuo13
2021-10-15 17:49:35 -07:00
parent c0d32f50ca
commit 73a3756ede
11 changed files with 26 additions and 24 deletions

View File

@@ -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)