bloXroute adds internalTxsMempool stream to BSC BDN
By: Ben Pichel
bloXroute has launched a new internalTxsMempool data stream, offering internal transactions of executed mempool transactions as a feed of simulated results. The internalTxsMempool stream offers real-time visibility into smart contract executions and enables traders to uncover and trace hidden transactions, giving them a competitive edge in the market. This add-on service is available to all bloXroute users and positions bloXroute as a comprehensive one-stop DeFi trading solution.
With the new data stream, traders can save on infrastructure costs as they no longer need to operate their own nodes or run in-house simulations for individual transactions in order to gain a more granular view of transactions within and between smart contracts. Instead, they can subscribe to the internalTxsMempool stream, which is simulated using bloXroute’s low-latency mempool data and offers all TRACE level data that traders require.
DeFi traders can use the new data feed to expand their trading strategies by:
- Identifying additional trading signals and opportunities that are not visible in mempool data streams
- Discovering trading signals and opportunities faster than the confirmed internal transaction streams
- Detecting malicious bot attempts with trace-level logs, empowering traders to protect their trades/DeFi Protocols/smart contracts/wallets
In addition to the simple execution output of the transaction, the internalTxsMempool feed includes transaction logs, logIndex, calls, receipts, and all other entries available in the newTxs and pendingTxs streams. Traders can purchase DEX/project-specific feeds at a reduced price or a full feed of all the pending transactions.
Currently, the internalTxsMempool stream is available for the Binance Smart Chain (BSC), with support for Ethereum and Polygon on the horizon.
Subscribing to the internalTxsMempool stream can be accomplished using one simple request.
Examples:
Request
# Subscribe to `internalTxsMempool` feed on BSC Mainnet
wscat -c wss://54.157.119.190/ws --header "Authorization: <YOUR-AUTHORIZATION-HEADER>" --no-check
> {"jsonrpc": "2.0", "id": 1, "method": "subscribe", "params": ["internalTxsMempool", {"include": [], "blockchain_network": "BSC-Mainnet"}]}
< ......
Example Response:
internal tx output:
{
"id": 1,
"method": "subscribe",
"params": {
"subscription": "abebd8ed-a0f0-409e-8bbb-49715dbe9905",
"result": {
"type": "SUCCESSFUL",
"payload": {
"estimatedSuccessfully": true,
"estimationTx": {
"from": "0x3ec9a1dc93ae88db184bb98419345cbb790ee5cf",
"gas": "0x47f48",
"gasPrice": "0x12a05f200",
"hash": "0xff69c4def7db12f55d341adfef05e6c708f3a67288438ef380c103e9c5edc5ce",
"input": "0xd33b374a000000000000000000000000000000000000000000000000aa6b52f011cc0000000000000000000000000000c9ae6bfebf8957be55ce9680952c9506d762f0e300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000aa6b52f011cc00000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000009fef7016b54f6f7b",
"nonce": "0x13",
"v": "0x94",
"r": "0xb5d481b8edd6af51180ea2b9075535a7b918f2fbf1ba65ee02ff29637ed5242f",
"s": "0xd621df106574259a793c972811c6fcd6e05641ff0ddbe4f30be2904a9f900cf",
"to": "0x8559ad49f96f652ea7d14d52c491f3c94e914896",
"type": "0x0",
"value": "0x0"
},
"estimationResult": {
"trieHashAfter": "0x0000000000000000000000000000000000000000000000000000000000000000",
"trieHashBefore": "0x0000000000000000000000000000000000000000000000000000000000000000",
"totalGasUsed": "235939",
"traceDebugInfo": [
{
"type": "",
"from": "0x3ec9a1dc93ae88db184bb98419345cbb790ee5cf",
"to": "0x8559ad49f96f652ea7d14d52c491f3c94e914896",
"value": "0x0",
"gas": "0x4245c",
"gasUsed": "0x399a3",
"input": "0xd33b374a000000000000000000000000000000000000000000000000aa6b52f011cc0000000000000000000000000000c9ae6bfebf8957be55ce9680952c9506d762f0e300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000aa6b52f011cc00000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000009fef7016b54f6f7b",
"output": "",
"calls": [
{
"type": "",
"from": "0x8559ad49f96f652ea7d14d52c491f3c94e914896",
"to": "0xe9e7cea3dedca5984780bafc599bd69add087d56",
"value": "0x0",
"gas": "0x3ff52",
"gasUsed": "0x93ca",
"input": "0x23b872dd0000000000000000000000003ec9a1dc93ae88db184bb98419345cbb790ee5cf0000000000000000000000008559ad49f96f652ea7d14d52c491f3c94e914896000000000000000000000000000000000000000000000000aa6b52f011cc0000",
"output": "0x0000000000000000000000000000000000000000000000000000000000000001"
},
{
"type": "",
"from": "0x8559ad49f96f652ea7d14d52c491f3c94e914896",
"to": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
"value": "0x0",
"gas": "0x35f8b",
"gasUsed": "0x2ef7b",
"input": "0x38ed1739000000000000000000000000000000000000000000000000aa6b52f011cc00000000000000000000000000000000000000000000000000009fef7016b54f6f7b00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000c9ae6bfebf8957be55ce9680952c9506d762f0e3000000000000000000000000000000000000000000000000000000006452dfc50000000000000000000000000000000000000000000000000000000000000003000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d56000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000cc42724c6683b7e57334c4e856f4c9965ed682bd",
"output": "0x00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000aa6b52f011cc0000000000000000000000000000000000000000000000000000008537b13dea08e3000000000000000000000000000000000000000000000000a7ee7a693fdd62eb",
Questions?
Message us on Discord or email us at support@bloxroute.com for help.