Skip to content

McOso/delegatable-4337

 
 

Repository files navigation

Pimlico Endpoint Demo

Configuring Environment Variables

First, make a copy of the example environment file:

cp .env.example .env

Then echo your mnemonic into a file:

echo <YOUR_MNEMONIC_HERE> >> mnemonic.txt

Finally, update the .env file with your Pimlico API key, Infura API key (not the whole URL).

Running Tests

For demonstration purposes, use the address 0xae72a48c1a36bd18af168541c53037965d26e4a8 as the owner. This address corresponds to the private key 0x7777....7777.

Test Bundler

Execute the following command to send a blank transaction to itself through the Pimlico RPC endpoint:

npx hardhat test-bundler --owner <OWNER ADDRESS> --network <NETWORK NAME>

For example: npx hardhat test-bundler --owner 0x0284EaFa1f47dff44112BDFeBB736B9e85B416c9 --network goerli

This command will create a sender if necessary.

Test Bundler with Pimlico Paymaster

To send a blank transaction to itself through the Pimlico RPC endpoint, sponsored by a paymaster, use the following command:

npx hardhat test-paymaster --owner <OWNER ADDRESS> --network <NETWORK NAME>

For example: npx hardhat test-paymaster --owner 0x0284EaFa1f47dff44112BDFeBB736B9e85B416c9 --network goerli

Similar to the previous test, this command will create a sender if needed.

Generating types and decoders:

npm run buildTypes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 54.2%
  • Solidity 42.5%
  • JavaScript 3.3%