OneBalance
OneBalance
  • Welcome to OneBalance
  • OneBalance Toolkit
    • Introduction
    • Get Started with OneBalance SCA
      • Setup OneBalance Toolkit with Privy
        • Step 1: Setting up Privy
        • Step 2: Setting configurations
        • Step 3: Initializing and Depositing onto the OneBalance Smart Account
        • Step 4: Displaying Chain-Aggregated Balances
        • Step 5: Fetch a quote for transaction execution
        • Step 6: Signing transactions with Privy
        • Step 7: Executing transactions
        • Step 8: Getting execution status
      • Contract calls guide
        • Usage code samples
  • OneBalance vision
    • Our vision
      • Mission of OneBalance
      • Use Cases
      • Credible Accounts and Credible Stack
      • Fellowship of OneBalance
      • Glossary
    • Why resource locks?
      • Technical Details
        • Resource lock
        • Permissions
        • Credible accounts
        • Credible Commitment Machine (CCM)
        • FAQ
          • How does this relate to account abstraction and 4337?
          • Where does the OneBalance account live?
          • Are OneBalance accounts non-custodial?
      • Credible Stack Deep Dive
        • Apps
        • SDK providers
        • Wallets / WaaS
        • Solver Networks
        • Oracle Providers
        • Data Providers
  • Other
    • OneBalance Demo App
      • Roadmap
      • Privacy Policy
      • Terms and Conditions
    • OneBalance Brand Assets
Powered by GitBook
On this page
  1. OneBalance Toolkit
  2. Get Started with OneBalance SCA
  3. Setup OneBalance Toolkit with Privy

Step 8: Getting execution status

PreviousStep 7: Executing transactionsNextContract calls guide

Last updated 5 months ago

Once client has the quote ID, it can track the status of the cross-chain transaction.

The status can take one of the following values:

'PENDING' | // not yet begun processing but has been submitted
'IN_PROGRESS' | // processing the execution steps of the operation
'COMPLETED' | // all steps completed with success
'REFUNDED' | // target chain tx fails, user funds are returned
'FAILED'; // all steps failed

Here is an example of getting transaction status:

fetch(`https://be.onebalance.io/api/status/get-execution-status?quoteId=${quoteId}`, {
  headers: {
    "x-api-key": '<YOUR ONEBALANCE API KEY HERE>',
  },
})

In the example above - the quoteId variable corresponds to the id field on the quote object that was executed via the /execute-quote endpoint in the previous section.

For more details, see the implementation for getting the status .

Conclusion

Congratulations, completing these steps you achieved the chain abstraction for the use case of your application.

Ready to set your dApp chain free? Contact us today using .

here
this link