Skip to content

Latest commit

 

History

History
26 lines (13 loc) · 930 Bytes

README.md

File metadata and controls

26 lines (13 loc) · 930 Bytes

AA with Paymaster

Checkout transaction logs: img 2024-03-27 at 6 17 34 AM

these lines of code are what enable a transaction to be sponsored

photo_2024-03-27 06 54 28

"arka_public_key" is a testnet public key

There are two modes to choose from while using paymaster (Check docs for more)

1.) sponsor - used in this example (This works by having Arka pay for the transaction fee, you can add more options to it like validUntil / validAfter). (Typically a project will get their own paymaster api key, deposit into the address)

2.) erc20 - This works by having the gas fee paid with whatever token is specified.

To check run:

npm i

And then

npm start