Repository navigation
How to use Paymaster with a Contract method call? #1145
Team or ProjectNo response Select the SDKRust ZK chainEra Sepolia EnvironmentTestnet Issue DescriptionThere is an example on how to use a paymaster with the Rust client when calling this method "send_transaction_eip712" How would I use a Paymaster for the "Perform a signed transaction calling the setGreeting method" in this example: Thanks for any help. Expected BehaviorI think the issue description is sufficient. Let me know if more information is required. Code ExampleI reference the code examples in the Issue Description. Repo Link (Optional)No response |
Replies: 3 comments 2 replies
|
@richardcatlin the library in reference (e.g. zksync-web3-rs) is very much unmaintained. I suggest making use of alloy-zksync instead: https://github.com/matter-labs/alloy-zksync/tree/main |
|
Thanks for the help.
I am trying this, but don't know how to add the custom_data. |
|
Anyone have a suggestion on how to get this done? Thanks, Richard |
You will want to do something along the lines of:
Where
paymasteris your deployed funded paymaster andpaymaster_inputfor general flow: