Skip to main content

API

This API provides methods to interact with Fastlane's MEV Protection auction system. All values in requests and responses must be hex strings (prefixed with '0x').

JSON RPC Methods

atlas_sendUnsignedTransaction

Submits a transaction to the Fastlane auction system for MEV protection.

Parameters

TypeDescription
objectThe transaction request details (see below)

Transaction Request

NameTypeDescription
transactionobjectThe transaction details (see below)
refundRecipientstringAddress to receive a portion of the MEV (optional), hex encoded
refundPercentstringPercentage of MEV to send to refundRecipient (0-90), hex encoded
bidTokenIsOutputTokenbooleanWhether to use the output token as the bid token

Transaction Object

NameTypeDescription
chainIdstringChain ID, hex encoded (e.g., "0x279f" for Monad Testnet)
fromstringUser's address, hex encoded (e.g., "0x1234...")
tostringdApp router address, hex encoded (e.g., "0x1234...")
valuestringTransaction value, hex encoded (e.g., "0x0")
datastringTransaction data, hex encoded (e.g., "0x...")
maxFeePerGasstringMaximum fee per gas, hex encoded (e.g., "0x...")

Returns

TypeDescription
AtlasResponseThe transaction details to be signed and submitted, all values hex encoded

AtlasResponse

NameTypeDescription
fromstringUser's address, hex encoded (e.g., "0x1234...")
tostringAtlas router address, hex encoded (e.g., "0x1234...")
valuestringTransaction value, hex encoded (e.g., "0x0")
datastringTransaction data, hex encoded (e.g., "0x...")
gasstringGas limit, hex encoded (e.g., "0x...")
maxFeePerGasstringMaximum fee per gas, hex encoded (e.g., "0x...")

Example Request

{
"jsonrpc": "2.0",
"method": "atlas_sendUnsignedTransaction",
"params": [{
"transaction": {
"chainId": "0x279f",
"from": "0x1234567890123456789012345678901234567890",
"to": "0x4a730A56344873FB28f7C3d65A67Fea56f5e0F46",
"value": "0x0",
"data": "0x...",
"maxFeePerGas": "0x..."
},
"refundRecipient": "0x1234567890123456789012345678901234567890",
"refundPercent": "0xa", // 10 in hex
"bidTokenIsOutputToken": true
}],
"id": 1
}

Example Response

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"from": "0x1234567890123456789012345678901234567890",
"to": "0x4a730A56344873FB28f7C3d65A67Fea56f5e0F46",
"value": "0x0",
"data": "0x...",
"gas": "0x...",
"maxFeePerGas": "0x..."
}
}

Environment Variables

  • ATLAS_ROUTER=0x4a730A56344873FB28f7C3d65A67Fea56f5e0F46
  • ATLAS_AUCTIONEER=https://auctioneer-fra.fastlane-labs.xyz
  • ATLAS_REFUND_RECIPIENT=<YOUR_PROTOCOL_REFUND_ADDRESS> (hex encoded)
  • ATLAS_REFUND_PERCENT=<0-90> (decimal number)