-
Notifications
You must be signed in to change notification settings - Fork 90
docs: document Paymaster for gasless transactions #4499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Added Paymaster functionality for gasless transactions, including configuration details, use cases, and best practices. Signed-off-by: Keith Kowal <keith.kowal@hashgraph.com>
| | ---------- | ------------ | ---- | -------- | | ||
| | PAYMASTER_ENABLED | Enables Paymaster functionality. | Boolean | false | | ||
| | PAYMASTER_WHITELIST | Whitelisted addresses eligible for sponsorship. Use `*` for all. | String | "" | | ||
| | MAX_GAS_ALLOWANCE_HBAR | Max HBAR subsidy per transaction. | Decimal | 0 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding the codebase https://github.com/hiero-ledger/hiero-json-rpc-relay/blob/main/packages/relay/src/lib/clients/sdkClient.ts#L182, this is not a decimal. Here is the official doc https://docs.hedera.com/hedera/sdks-and-apis/sdks/smart-contracts/ethereum-transaction.
This value is denominated in tinybars, and yeah, the config name is a little bit misleading.
| # Demo / testnet | ||
| PAYMASTER_ENABLED=true | ||
| PAYMASTER_WHITELIST=* | ||
| MAX_GAS_ALLOWANCE_HBAR=0.15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
| ``` | ||
| --- | ||
|
|
||
| ## Paymaster (Gasless Transactions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since Paymaster is still in the experimental stage, could you please add a short disclaimer section to mention that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is meant by experimental? Isn't it deployed and anyone deploying their own JSON-RPC relay can use it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Keith sorry for the late response. So by experimental I meant that the Paymaster was implemented based on a POC and hasn’t gone through a full acceptance criteria review yet. It was built for a specific experimental use case requested previously, and only validated against successful (“happy path”) scenarios, not failure cases. So it might be unstable or prone to failure for now. That's why we should put a disclaimer for the section.
Added Paymaster functionality for gasless transactions, including configuration details, use cases, and best practices.
Fixes: #4477