-
Notifications
You must be signed in to change notification settings - Fork 343
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
Add how to use timeboost #1772
base: master
Are you sure you want to change the base?
Add how to use timeboost #1772
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…nLabs/arbitrum-docs into add-how-to-use-timeboost
content_type: how-to | ||
--- | ||
|
||
Timeboost is a new transaction ordering policy for Arbitrum chains where any participant can bid for the right to access an express lane on the sequencer for faster transaction inclusion. |
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.
Timeboost is a new transaction ordering policy for Arbitrum chains where any participant can bid for the right to access an express lane on the sequencer for faster transaction inclusion. | |
Timeboost is a new transaction ordering policy for Arbitrum chains. With Timeboost, anyone can bid for the right to access an express lane on the sequencer for faster transaction inclusion. |
|
||
Timeboost is a new transaction ordering policy for Arbitrum chains where any participant can bid for the right to access an express lane on the sequencer for faster transaction inclusion. | ||
|
||
In this how-to, you'll learn how to bid for the right to use the express lane, how to submit transactions to it, and how to transfer that right to someone else. To learn more about Timeboost, refer to the gentle introduction. |
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.
In this how-to, you'll learn how to bid for the right to use the express lane, how to submit transactions to it, and how to transfer that right to someone else. To learn more about Timeboost, refer to the gentle introduction. | |
In this how-to, you'll learn how to bid for the right to use the express lane, how to submit transactions through the express lane, and how to transfer that express lane rights to someone else. To learn more about Timeboost, refer to the [Gentle Introduction](TODO). |
|
||
This how-to assumes that you're familiar with: | ||
|
||
- [How Timeboost works](#) |
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.
This should link to the Gentle Introduction right?
|
||
## How to submit bids for the right to be the express lane controller | ||
|
||
To use the express lane for faster transaction inclusion, we must win an auction for the right to be the express lane controller for a specific round. |
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.
To use the express lane for faster transaction inclusion, we must win an auction for the right to be the express lane controller for a specific round. | |
To use the express lane for faster transaction inclusion, you must win an auction for the right to be the express lane controller for a specific round. |
|
||
::::info | ||
|
||
Remember that, by default, each round lasts 60 seconds, and the auction for a specific round closes 15 seconds before the round starts. These default values can be configured in a chain with the `roundDurationSeconds` and `auctionClosingSeconds` parameters respectively. |
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.
Remember that, by default, each round lasts 60 seconds, and the auction for a specific round closes 15 seconds before the round starts. These default values can be configured in a chain with the `roundDurationSeconds` and `auctionClosingSeconds` parameters respectively. | |
Remember that, by default, each round lasts 60 seconds, and the auction for a specific round closes 15 seconds before the round starts. These default values can be configured on a chain using the `roundDurationSeconds` and `auctionClosingSeconds` parameters, respectively. |
|
||
:::: | ||
|
||
## How to transfer the right to use the express lane to someone else |
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.
Should this be Step #5 ?
|
||
From that moment, the previous express lane controller will not be able to send new transactions to the express lane. | ||
|
||
### Setting a transferor account |
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.
Let's add a sentence or two here to describe that we decided to add this function (setTransferor) for the express lane controller to nominate an address that can transfer rights to anyone they see fit. This is mostly to make reselling UX a bit better
|
||
From that moment on (until the transferor is changed or disabled), the transferor will be able to call `transferExpressLaneController` while the express lane controller is `currentELCAccount` to transfer the rights to use the express lane to a different account. | ||
|
||
## How to withdraw funds deposited in the auction contract |
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.
Should this be Step # 6?
console.log(`Finalize withdrawal transaction sent: ${finalizeWithdrawalTransaction}`); | ||
``` | ||
|
||
## How to identify timeboosted 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.
Should this be step # 7?
|
||
Transactions that have been sent to the express lane by the express lane controller, and that have been executed (regardless of them being successful or having reverted), can be identified by looking at their receipts, or the message broadcasted by the sequencer feed. | ||
|
||
Transaction receipts include now a new field `timeboosted`, which will be `true` for timeboosted transactions, and `false` for regular non-timeboosted 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.
Can you add an example of the Timeboosted metadata/field that gets returned when you make an eth_getTransactionReceipt call?
This PR adds a guide on "How to use timeboost".
TODO:
Preview