Relay JSON-RPC API

pfl_addSearcherBundle

Submits a searcher bundle to Fastlane auction handler.

Parameters

  1. OPPORTUNITY_TX_DATA - the opportunity transaction data.

  2. SEARCHER_TX_DATA - the searcher transaction data.

Returns

  • On success:

{'jsonrpc': '2.0', 'id': 1, 'result': '2022-12-08T07:55:16.779024625Z'}

  • On error:

{
   "jsonrpc": "2.0",
   "id": 1,
   "error": {
      "code": -32000,
      "message": "err - R0016 - auction already completed"
   }
}

pfl_addSearcherFastBid

Submits a fast bid to Fastlane auction handler.

Parameters

  1. SEARCHER_TX_DATA - the searcher transaction data.

Returns

  • On success:

{'jsonrpc': '2.0', 'id': 1, 'result': '2022-12-08T07:55:16.779024625Z'}

  • On error:

{
   "jsonrpc": "2.0",
   "id": 1,
   "error": {
      "code": -32000,
      "message": "err - FBA0001 - auction ended, please try again at the next block"
   }
}

Example

// Request

curl -X POST --data '{"jsonrpc":"2.0","method":"pfl_AddSearcherBundle","params":[[OPPORTUNITY_TX_DATA, SEARCHER_TX_DATA]],"id":1}'

// Result

{'jsonrpc': '2.0', 'id': 1, 'result': '2022-12-08T07:55:16.779024625Z'}

See next

To understand what these _DATA parameters are, see Transaction Encoding

Last updated