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 7: Executing transactions

PreviousStep 6: Signing transactions with PrivyNextStep 8: Getting execution status

Last updated 6 months ago

Once the transaction is signed with the user signing key, it should be sent to the .

During this step, several checks are performed on the OneBalance side as well as the co-signing. Resource locking will occur if the transaction is eligible for fast execution.

Here’s an example of sending the transaction for execution:

fetch('https://be.onebalance.io/api/quotes/execute-quote', {
    method: "post",
    body: JSON.stringify(quote),
    headers: {
      "Content-Type": "application/json",
      "x-api-key": '<YOUR ONEBALANCE API KEY HERE>',
    },
  })

In the example above - the quote that is passed into the body of the request - is the signed quote returned by the signQuote function from the example in previous section.

For more details, see the implementation for sending the transaction for execution .

corresponding execution endpoint
here