-
Notifications
You must be signed in to change notification settings - Fork 56
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
Meta-Transactions support #141
Comments
@anthony-near I am happy to discuss how exactly we will integrate it into CLI. There are definitely a ton of opportunities here! |
Based on the discussion with @frol there are 2 potential ways to implement this solution:
As far as the CLI flow is concerned, after the details of the tx are filled at the last step there will be an option that allows the user to choose whether to sign the tx or to send it to a relayer. Personally do not have a preference whether we go with 1 or 2, but would like to get input from others. We could implement both eventually as well, but will start with choosing one of them. |
Just to give some context about both options: The first option (1): I expect the relayer to mimic the NEAR JSON RPC interface and just intercept The second option (2): Instead of requiring relayer node to be a transparent proxy we can define a completely independent API with just a couple of methods (blocking and non-blocking calls just like So in addition to The second option is more explicit and I would probably go this route. |
I also think that the second option would be a better option for now. User could be explicit about sending the transaction via the relayer. |
@anthony-near @firatNEAR Meta-transaction support is implemented in #189! After some brainstorming with @FroVolod we decided to go with a fully-transparent mode, so users won't be bothered to make a choice whether to send it on their own or through a delegation relay. Given that near-cli-rs has support for several network-connection configs, "free transactions"-providers can offer users to set up a new connection like this:
(Note that When the network-connection is configured and has Notice that once "meta-testnet" was selected, the hint messages were turned to refer to signing and sending "delegate action" instead of a "transaction". There are no relayer services I am aware of that support this relayer protocol (
|
CLI support for meta transactions as specified in NEP-366
Specific implementation TBD.
The text was updated successfully, but these errors were encountered: