Uniswap Sniper Bot
1.0
|
Utilities to parse incoming BloXroute messages. More...
Functions | |
bool | validateTransaction (const char *message, const char *targetTokenAddress) |
Check if message is of "subscribe" method and regards specified token address. More... | |
std::size_t | extractGasPrice (const char *message, char *output) |
Extract gas price hex value from the message. More... | |
Variables | |
constexpr std::size_t | MethodPosition = 37 |
Position of the method name in the message string. More... | |
constexpr std::size_t | TokenPosition = 179 |
Position of the token address in the message string. More... | |
constexpr std::size_t | GasPricePosition = 555 |
Position of the gas price hex value in the message string. More... | |
Utilities to parse incoming BloXroute messages.
|
inline |
Check if message is of "subscribe" method and regards specified token address.
message | input message |
targetTokenAddress | target token address to check against |
|
inline |
Extract gas price hex value from the message.
message | input message |
output | output gas price |
|
inlineconstexpr |
Position of the method name in the message string.
|
inlineconstexpr |
Position of the token address in the message string.
|
inlineconstexpr |
Position of the gas price hex value in the message string.