Skip to content

Conversation

@BellringerQuinn
Copy link
Contributor

@BellringerQuinn BellringerQuinn commented May 13, 2024

Added FeeOptions support for transactions. This is useful in some cases where you choose not to sponsor user's transactions. For convenience, the SDK's implementation of FeeOptions will automatically use the Indexer to determine which of the returned FeeOptions the user has in their wallet and will decorate the response with a bool flags for each FeeOption indicating which, if any, FeeOptions the user can afford.

Documentation update: 0xsequence/docs#114

With this PR, I've included a basic demo page (imported via Samples as "Demo Scene") that allows you to send a basic transfer (just like the the "Send Transfer" page in the same scene) except it will first fetch the FeeOptions from the WaaS API then will send the transfer using the first FeeOption the user can afford (if possible, else it logs an error). See video:

FeeOptions.mov

…s request. Some refactoring to demo pages. Fixed a few namespaces
…ool specifying if the user has enough of a particular token to pay the fee
…at it sends the transaction with the first FeeOption in the user's wallet. This involved also updating the IWallet interface and implementation
taylanpince
taylanpince previously approved these changes May 23, 2024
@taylanpince taylanpince merged commit c87a478 into master May 23, 2024
@andygruening andygruening deleted the Feature/feeOptions branch June 24, 2025 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants