Flashbots

expand.network API users looking for MEV protectoin can choose to route their transactions through Flashbots.

Supported Chains

Currently only available on Ethereum Mainnet.

Available Endpoints:

Click on the endpoint to jump to the section with full details


Endpoint Details

/getflashbotblocks

Returns details for a flashbot block.

GET https://api.expand.network/chain/getflashbotblocks

Query Parameters

NameTypeDescription

chainId

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

https://api.expand.network/chain/getflashbotblocks?chainId=1

back to top

/getflashbottransactions

Returns details for flashbot transactions.

GET https://api.expand.network/chain/getflashbottransactions

Query Parameters

NameTypeDescription

chainId

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

https://api.expand.network/chain/getflashbottransactions?chainId=1

back to top

/getflashbotbundle

Get details for a specified flashbot bundle.

GET https://api.expand.network/chain/getflashbottransactions

Query Parameters

NameTypeDescription

chainId

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

bundleHash*

String

The bundle hash.

https://api.expand.network/chain/getflashbotbundle?bundleHash=0x2228f5d8954ce31dc1601a8ba264dbd401bf1428388ce88238932815c5d6f23f

back to top

/sendtransaction

Send a transaction on a specified chain. If the mevProtection parameter is set to true, the transaction will be directed through flashbots.

POST https://api.expand.network/chain/sendtransaction

Request Body

NameTypeDescription

rpc

String

Remote procedural call URL.

chainId

String

Refer to the Chain ID page for details.

chainSymbol

String

Refer to the Chain ID page for details.

rawTransaction*

String

The encoded transaction, obtained from the signed transaction.

bdnTransaction

Boolean

If true, then txn goes through the bdn route, which speeds up the transaction process.

By default, false.

mevProtection

Boolean

If true, then txn goes through flashbots.

With mevProtection: true

{
    "chainId":"1",
    "rawTransaction": "0xf8a68205180f82753e94dc31ee1784292379fbb2964b3b9c4124d8f89c6080b844a9059cbb000000000000000000000000a67e9b68c41b0f26184d64c26e0b2b81466e5994000000000000000000000000000000000000000000000000000000174876e8002ea0952b0468aff066f3e00a1d476b8894d84bfc47a1a3cdab9d6809a3461cc713e5a018219ee382aa3c7edf73a87bd8a75e2c40a97efbdf56a6cfd353af06fb74101d",
    "mevProtection": true
}

back to top

Last updated