Skip to content

highlayer-team/sequencer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sequencer UDP

All UDP requests must be encoded using msgpack and decoded using msgpack

Batch Transaction Requesting

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,
}

Heartbeat

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
}

Transaction

Aslong as you are connected to the Sequencer's UDP client list, it will send you every new transaction

{
    "op": 21,
    "transaction": encodedData
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published