Relay JSON-RPC API

pfl_addSearcherBundle

Submits a searcher bundle to Fastlane auction handler.

Parameters

  1. OPPORTUNITY_TX_DATA - the opportunity transaction data.

  2. SOLVER_OPERATION - the solver operation.

Returns

  • On success (solver operation hash):

{'jsonrpc': '2.0', 'id': 1, 'result': '0x1111...'}

  • On error:

{
   "jsonrpc": "2.0",
   "id": 1,
   "error": {
      "code": -32000,
      "message": "error code: BR008, msg: invalid solver operation"
   }
}

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