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
}