Skip to content

Latest commit

 

History

History
95 lines (62 loc) · 3.49 KB

README.md

File metadata and controls

95 lines (62 loc) · 3.49 KB

RIP-7560 Scripts for Simple Interactions

This is a simple scripts for basic interactions with Pioneer Alpha, which is OP Stack based devnet for Native Account Abstraction. Pioneer Alpha implements RIP-7560, RIP-7711, and RIP-7712, offering full support for Native Account Abstraction on the OP Stack.

The implementation is fully open-sourced on the following repositories:

For more information, please visit the following pages:

Required Tools

Setup

  1. Install dependencies.

Ensure you have Node.js installed, then run the following command to install the necessary dependencies:

pnpm install

This will also install viem-rip7560 submodule, which is revised version of viem for RIP-7560 transactions.

  1. Obtain test ETH from the faucet.

To interact with the Pioneer Alpha network, you'll need test ETH. Visit the Pioneer Alpha Faucet, input your wallet address, and receive test ETH to your account.

  1. Configure the .env file

You'll need to set up a .env file with your wallet information. Follow these steps:

Copy the provided example file to create your own .env configuration:

cp .env.example .env

Open the .env file in your preferred text editor and add your wallet's private key:

WALLET=<your-private-key-here>
RPC_URL=https://api.pioneer.kroma.network
BUNDLER_URL=https://bundler.pioneer.kroma.network

Replace with the private key of your wallet. Ensure this key is kept secure and never shared publicly.

RIP-7560 Gas Estimation

To execute gas estimations for RIP-7560:

pnpm run estimate

After running the estimations, you can generate a graph to visualize the gas usage:

pnpm run draw-graph

RIP-7560 Send Transaction

To send a RIP-7560 transaction to Pioneer Alpha, run the following command.

pnpm run send-tx

If you wanna send a quantum-resistant transaction to Pioneer Alpha, run the following command.

pnpm run send-tx-quantum

Additional Resources