GithubHelp home page GithubHelp logo

biconomy-aa-4337-api-example's Introduction

Account Abstraction 4337 Example

Mnimal bundler node that is capable of accepting ERC-4337 UserOperations, execute them on supported chain and return the transaction hash in response.

before run the project you will need create a .env file and add the fallowing variables

  • PRIVATE_KEY_1 (your wallet private key)
  • PRIVATE_KEY_2 (your wallet private key)
  • PRIVATE_KEY_3 (your wallet private key)
  • ALCHEMY_API_KEY (alchemy node api key)

How run the API

npm i npx tsc node src/index.js

API endpoint

localhost:3000/api/sendUserOp

  "jsonrpc": "2.0",
  "method": "eth_sendUserOperation",
  "params": [{
    "ops": [{
      "sender": "0xD0aFb575CB9f44529A65679Fd3F480F265e5A289",
      "nonce": 1,
      "callData": "0x72b3b6200000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000056464646464000000000000000000000000000000000000000000000000000000",
      "verificationGasAndData": "0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f",
      "maxFeePerGas": 10000000000,
      "maxPriorityFeePerGas": 1000000000,
      "paymasterAndData": "0x",
      "signature": "0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f"
    }],
    "beneficiary": "0xe12392E42bd36ce2955a91c87AdF03413B73b67c"
  }],
  "id": 1
}

biconomy-aa-4337-api-example's People

Contributors

danielgeek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.