This is the Sequencer implemented on the Highlayer network.
This sequencer implements the following features:
- HTTP routes for
- Transaction submission
- Fetching sequencer TX fees
- fetching transaction by ledger index
- UDP client
- Batch Transaction Requesting
- Live Transaction feed
- Creating transaction bundles that are hashed and uploaded onto Bitcoin periodically
All UDP requests must be encoded using msgpack and decoded using msgpack
In order to recieve many transaction at the same time you must send the UDP client this request
{
op: 30, // Request identifier
startingPoint: 0, // Starting point in the sequencerTxIndex
amount: 1000, // Max transactions is 1000
}
You will then recieve UDP messages
{
op: 31,
transaction: encodedData,
sequencerTxIndex: number,
}
You will be removed from the Sequencer's UDP client list if you dont send a heartbeat atleast every 3 minutes
{
"op": 10
}
The sequencer will then respond with OP 11 ACK
{
"op": 11
}
Aslong as you are connected to the Sequencer's UDP client list, it will send you every new transaction
{
"op": 21,
"transaction": encodedData
}
The Highlayer Sequencer main repo can be found here.
Small contributions were made by Angrymouse. Which can be found in the repo above.
This repo was uploaded here as I officially left the Highlayer team. Code was not licensed and I wasnt compensated for my work they in no way shape or form own it.
This repo is not maintained and is only for reference of my work.