From 7dfd5273178819fd466fab0ed93b5bf018a5704c Mon Sep 17 00:00:00 2001 From: gh-runner Date: Wed, 22 Jan 2025 10:33:45 +0000 Subject: [PATCH] Updates --- .nojekyll | 1 - index.html | 17 +++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) delete mode 100644 .nojekyll diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index e2ac6616a..000000000 --- a/.nojekyll +++ /dev/null @@ -1 +0,0 @@ -TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/index.html b/index.html index 16916a907..a96c6db3d 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,10 @@ -@biconomy/sdk

@biconomy/sdk

Biconomy License MIT codecov

-

abstractJS 🚀

Open in GitHub Codespaces

+@biconomy/sdk

@biconomy/sdk

⚠️ DEPRECATED

+

Warning +This SDK has been deprecated in favor of the new Biconomy SDK. Please use the new SDK for all new projects and consider migrating existing ones.

+

Visit docs.biconomy.io for updated documentation and migration guides.

+
+

Biconomy License MIT codecov

+

abstractjs 🚀

Open in GitHub Codespaces

The Biconomy SDK is your all-in-one toolkit for building decentralized applications (dApps) with ERC4337 Account Abstraction and Smart Accounts. It is designed for seamless user experiences and offers non-custodial solutions for user onboarding, sending transactions (userOps), gas sponsorship and much more.

📚 Table of Contents

  • SDK 🚀

    @@ -26,12 +31,12 @@

    🛠️ Quickstart

    Installation

    1. Add the package:
    -
    bun add @biconomy/sdk viem @rhinestone/module-sdk
    +
    bun add abstractjs viem @rhinestone/module-sdk
     
    1. Basic Usage:
    -
    import { toMultichainNexusAccount, mcUSDC } from "@biconomy/sdk";
    import { base, optimism } from "viem/chains";
    import { privateKeyToAccount } from "viem/accounts";

    const eoaAccount = privateKeyToAccount(`0x${process.env.PRIVATE_KEY}`)
    const mcNexus = await toMultichainNexusAccount({
    chains: [base, optimism],
    signer: eoaAccount
    })
    const meeClient = createMeeClient({ account: mcNexus })

    const quote = await meeClient.getQuote({
    instructions: [{
    calls: [{ to: "0x...", value: 1n }],
    chainId: base.id
    }],
    feeToken: {
    address: mcUSDC.addressOn(base.id), // Token used to pay for the transaction
    chainId: base.id // Chain where the payment will be processed
    }
    })

    // Execute the quote and get back a transaction hash
    // This sends the transaction to the network
    const { hash } = await meeClient.executeQuote({ quote }) +
    import { toMultichainNexusAccount, mcUSDC } from "abstractjs";
    import { base, optimism } from "viem/chains";
    import { privateKeyToAccount } from "viem/accounts";

    const eoaAccount = privateKeyToAccount(`0x${process.env.PRIVATE_KEY}`)
    const mcNexus = await toMultichainNexusAccount({
    chains: [base, optimism],
    signer: eoaAccount
    })
    const meeClient = createMeeClient({ account: mcNexus })

    const quote = await meeClient.getQuote({
    instructions: [{
    calls: [{ to: "0x...", value: 1n }],
    chainId: base.id
    }],
    feeToken: {
    address: mcUSDC.addressOn(base.id), // Token used to pay for the transaction
    chainId: base.id // Chain where the payment will be processed
    }
    })

    // Execute the quote and get back a transaction hash
    // This sends the transaction to the network
    const { hash } = await meeClient.executeQuote({ quote })

    Testing

    Prerequisites:

\ No newline at end of file +
\ No newline at end of file