docs.stackup.sh Open in urlscan Pro
2606:4700::6810:f176  Public Scan

URL: https://docs.stackup.sh/docs/useropjs
Submission: On February 28 via api from US — Scanned from DE

Form analysis 1 forms found in the DOM

<form class="TutorialModal-Col2yWaY0Aeb_pI TutorialModal-Col_stepsnYpMGARR6goa" id="tutorialForm">
  <div class="TutorialStepNavjGNakQPv9ttT">
    <section class="TutorialStep17YXytyQSafK TutorialStep_openRNEPtJpzBvDt" role="button" tabindex="0">
      <header class="TutorialStep-HeaderzmiqW9HnBYGt"><span class="TutorialStep-Header-Title1Fzo_uxQf1Mc">1. </span></header>
      <div class="TutorialStep-Body2QETIZ44z6Wr">
        <div class="rm-Markdown markdown-body TutorialStep-Body-Description3DKcHDPCus03"></div>
      </div>
    </section>
  </div>
</form>

Text Content

Jump to Content

HomeGuidesSamplesAPI

--------------------------------------------------------------------------------

🎫 Get HelpGo to your Dashboard β†—Status β†—
Guides
🎫 Get HelpGo to your Dashboard β†—Status β†—
Moon (Dark Mode)Sun (Light Mode)
HomeGuidesSamplesAPI

Ctrl+K
Introduction to userop.js
All
Guides
Samples
API

START TYPING TO SEARCH…


πŸŽ“ INTRODUCTION

 * Intro to Account Abstraction
 * Architecture Overview
 * Tutorials
   * Get Started
   * ERC-20 Paymaster Tutorial
   * Branch RPG
   * Quickstart CLI Example
   * Paymaster CLI Example
   * Particle Network Demo
   * Web3Auth Demo
 * ERC-4337 Guides
   * UserOperation Sender
   * UserOperation InitCode
   * UserOperation Nonce
   * UserOperation Gas Fees
   * UserOperation Gas Values
   * UserOperation CallData
   * UserOperation PaymasterAndData
   * UserOperation Signature
   * Checking Signatures
   * Simulating ERC-4337 User Operations with Tenderly
   * Modular Accounts with ERC-6900
   * Modular accounts with ERC-7579
 * Integrations
   * πŸ”‘ Authentication
     * Privy
     * Dynamic
     * Web3Auth
     * Particle Network
   * πŸ“œ Smart Account Libraries
   * πŸ› οΈ Developer SDKs
   * Recommendations
   * Starting from Scratch?
 * FAQ


🌐 BUNDLERS

 * Bundler API
   * Public Bundler Endpoints
   * Dedicated Bundler Setup
 * Bundler RPC Methods
 * Bundler Errors
   * -32500 Transaction Rejected
   * -32501 Rejected by Paymaster
   * -32502 Opcode Violation
   * -32503 UserOperation out of time-range
   * -32504 Throttled or Banned
   * -32505 Stake or Delay Too Low
   * -32506 Unsupported Aggregator
   * -32507 Invalid Signature
   * -32521: Transaction Reverted
   * -32602 Invalid UserOperation
 * EntryPoint Errors
   * AA10 sender already constructed
   * AA13 initCode failed or OOG
   * AA14 initCode must return sender
   * AA15 initCode must create sender
   * AA20 Account Not Deployed
   * AA21 Didn’t pay prefund
   * AA22 Expired or not due
   * AA23 reverted (or OOG)
   * AA24 Signature Error
   * AA25 Invalid account nonce
   * AA30 Paymaster not deployed
   * AA31 Paymaster deposit too low
   * AA32 Paymaster expired or not due
   * AA33 reverted (or OOG)
   * AA34 Signature Error
   * AA40 over verificationGasLimit
   * AA41 too little verificationGas
   * AA50 PostOp reverted
   * AA51 prefund below actualGasCost
   * AA90 Invalid beneficiary
   * AA91 failed send to beneficiary
   * AA92 Internal call only
   * AA95 out of gas
 * ERC-7562 Validation
   * General Reputation Rules
   * Opcode Rules
   * Code Rules
   * Storage Rules
   * Staked Entities Reputation Rules
   * Entity Specific Rules
   * Unstaked Paymasters Reputation Rules


πŸ’³ PAYMASTER

 * Paymaster API
 * Paymaster RPC Methods
 * Paymaster Errors
 * Supported ERC-20 Tokens


🧰 USEROP.JS

 * Introduction to userop.js
 * Client
 * Builder
 * Presets
 * Constants
 * Provider


πŸ’½ DATA

 * Introduction to Data API
 * Authentication
 * Rate Limits
 * Errors
 * Pagination


πŸ–₯️ PLATFORM

 * Architecture
 * Pricing & Limits
 * Team and Accounts
   * Creating a Team
   * Team members and roles
 * Enterprises
 * Transition to Production


πŸŒ€ GO BUNDLER

 * Introduction to Bundlers
 * Installation
 * Configuration
 * Go Integration


ERC-4337 REFERENCES

 * πŸ—ΊοΈ Entity Addresses
 * πŸ“Š Data Dashboards
 * πŸ“š Learning Material


INTRODUCTION TO USEROP.JS

A simple JS library for building ERC-4337 UserOperations.

Suggest Edits

userop.js is an open-source library for building ERC-4337 User Operations for
any bundler or paymaster. Similar to how ethers.js allows developers to easily
create traditional EVM transactions, userop.js allows developers to create and
send User Operations to ERC-4337 Bundlers.

View userop.js on GitHub.

πŸ’ͺ Implementation agnostic: Can be used to create User Operations for any
ERC-4337 Smart Account, Bundler service, or Paymaster. Completely open source
and MIT licensed, so you can modify it however you like, and know you're never
locked in.

πŸ—οΈ Intuitive design: Based on the builder design pattern, which mirrors how
User Operations are built in production.

✨ Native TypeScript support: Builds on top of common ethers types like
BigNumberish and BytesLike.

--------------------------------------------------------------------------------


INSTALL

userop.js is available as an npm package here. To install, simply use your
package manager of choice.

NPMYarn
npm install userop


yarn add userop


Send a User Operation
Open Recipe

Updated 4 months ago

--------------------------------------------------------------------------------

Supported ERC-20 Tokens
Client
Did this page help you?
Yes
No
 * Table of Contents
 * * Install

πŸ¦‰


RECIPE TITLE

Recipe Description


1.

cURL

x

Β 






1{"success":true}