Neo: auto-claim gas on tx submission

Created on 30 Aug 2019  路  3Comments  路  Source: neo-project/neo

@lock9 has raised some questions related to points, which we have previously debated by community, on several threads (although I cannot find them all here now...)

The challenge is: how to prevent people from requiring Gas, in order to operate Neo.

Since every tx is paid, even claiming would cost a little bit of gas, and Neo would be stuck for a while...

In my opinion, solution is simple: now that we have Native NEP-5 for GAS, it's possible to pre-calculate how much gas user would have unclaimed for that Neo, and allow that as network fee in that transaction.

Other point was discussed on other thread, I guess by @MorganDream too, where a GAS gateway could help in other operations... this same GAS gateway could operate Neo to GAS on runtime (as long as we define a NEP for it), and the same would apply for any other NEP-5 that wants to subsidize user operations.

Please comment here if I forgot threads or names... it's an important issue.

consensus discussion enhancement

Most helpful comment

@igormcoelho I think Rick login here is @lock9

So, you are suggesting that the blockchain calculates the unclaimed GAS and sand it to the wallet every time it makes a transaction, aren't you?
This way the wallet'd spend the GAS for the transaction that it was already going to create and save fees for one Claim transaction.
For the users that are just holding tokens, maybe as an investment, they wouldn't receive it for the holding time, but if they are just holding they wouldn't need it.

What if a wallet receives 10 NEO and no gas? If every transaction needs gas, including the claim it wouldn't be able to claim it.
When this wallet gets enough unclaimed gas to make a transaction would it be able to make it even if all its gas is still unclaimed? Is it what you are thinking?

All 3 comments

One practical example for Gas gateways: https://github.com/neo-project/proposals/issues/101

@igormcoelho I think Rick login here is @lock9

So, you are suggesting that the blockchain calculates the unclaimed GAS and sand it to the wallet every time it makes a transaction, aren't you?
This way the wallet'd spend the GAS for the transaction that it was already going to create and save fees for one Claim transaction.
For the users that are just holding tokens, maybe as an investment, they wouldn't receive it for the holding time, but if they are just holding they wouldn't need it.

What if a wallet receives 10 NEO and no gas? If every transaction needs gas, including the claim it wouldn't be able to claim it.
When this wallet gets enough unclaimed gas to make a transaction would it be able to make it even if all its gas is still unclaimed? Is it what you are thinking?

What if a wallet receives 10 NEO and no gas

He must wait or buy some gas

Was this page helpful?
0 / 5 - 0 ratings