Intents SDK is a CLI tool designed for signing and sending user operations.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To build the application, run:
make build
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.
To run the application with a JSON input string, use:
intents-sdk --u 'USER_OP_JSON'
Alternatively, you can use a JSON file as input:
intents-sdk [command] --u ./sample.json
sign
: Sign a userOp.send
: Send a userOp.sign-send
: Sign and send a userOp.
--u
: User operation JSON as string or path to a JSON file.--z
: Use zero gas mode, default isfalse
.
To clean up the binaries:
make clean
Run unit and race tests using:
make test-unit
make test-race