intents-sdk

command module
v0.0.0-...-fb28cc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 5 Imported by: 0

README

intents-sdk

Intents SDK is a CLI tool designed for signing and sending user operations.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Building the Application

To build the application, run:

make build
Configuration

Before running intents-sdk, ensure that your .env file is set up correctly with the necessary configurations like ETH_NODE_URL, SIGNER_PRIVATE_KEY, etc. Checkout .env.example for the reference.

Running the Application
Using JSON Input String

To run the application with a JSON input string, use:

intents-sdk --u 'USER_OP_JSON'
Using JSON File

Alternatively, you can use a JSON file as input:

intents-sdk [command] --u ./sample.json
Available Commands
  • sign: Sign a userOp.
  • send: Send a userOp.
  • sign-send : Sign and send a userOp.
Available Flags
  • --u: User operation JSON as string or path to a JSON file.
Cleaning Up

To clean up the binaries:

make clean
Running Tests

Run unit and race tests using:

make test-unit
make test-race

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL