For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sandwich Detector

Introduction

Sandwich Detector provides projects(e.g. wallet, DEX, and trading bot) with a sandwich attack monitoring service for BSC transactions. Projects can subscribe to the sandwich attack transaction information on BSC in real time based on gRPC. The subscription endpoint is: bsc.sandwich-detector.blockrazor.me:443

Plan

Tier 4
Tier 3
Tier 2
Tier 1
Tier 0

Sandwich Detector

-

-

-

-

The Sandwich Detector service will open a whitelist to projects(e.g. wallet, DEX, and trading bot) subscribing to Tier 0 plan, who can monitor the sandwich attack information on BSC in real time. Please contact us after subscribing to the Tier 0 plan.

Request Parameter

Parameters
Mandatory
Format
Example
Remarks

from

optional

String

""0x3879……42d82a"

Filtering sandwich transactions by the "from" of the attacked transaction

to

optional

String

"0xda77……7098a2"

Filter sandwich transactions by the contract address that the attacked transaction has interacted with

method

optional

String

"0xac9650d8"

Filter sandwich transaction by the method called by the attacked transaction

Request Example

# without filter
grpcurl -plaintext=false -import-path /path/to/proto -proto bscstream.proto -d ''  bsc.sandwich-detector.blockrazor.me:443 bscstream.TxStreamService/SubscribeTxStream
# with filter
grpcurl -plaintext=false -import-path /path/to/proto -proto bscstream.proto -d '{"to":"0xaa..bb"}'  bsc.sandwich-detector.blockrazor.me:443 bscstream.TxStreamService/SubscribeTxStream

Proto

Response Example

Last updated

Was this helpful?