<- Back

bundles -> https://rpc.lokibuilder.xyz

wallets (e.g. metamask, rabby) -> https://rpc.lokibuilder.xyz/wallet

eth_sendBundle

POST / rpc.lokibuilder.xyz

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_sendBundle",
  "params": [
    {
      txs,               // * [String], list of signed transactions to execute in an atomic bundle, can be empty for bundle cancellations
      blockNumber,       // String, hex encoded block number for which this bundle is valid on. If nil or 0, blockNumber will default to the pending block
      minTimestamp,      // Number, minimum timestamp for which this bundle is valid, in seconds since the unix epoch
      maxTimestamp,      // Number, maximum timestamp for which this bundle is valid, in seconds since the unix epoch
      revertingTxHashes, // [String], list of tx hashes that are allowed to revert or be discarded
      replacementUuid,   // String, uuid v4 used to replace or cancel this bundle
      refundPercent,     // Number, the percentage (0-100) of refundTxHashes ETH rewards that should be refunded back to the ‘refundRecipient’
      refundRecipient,   // String, address that receives the ETH refund. If refundPercent is set and refundRecipient is not, the whole bundle will be discarded
      refundTxHashes,    // [String], list of tx hashes from which the refund is calculated (defaults to final transaction in the bundle if list is empty)
    }
  ]
}

* - required, the rest are optional

Response: {"jsonrpc": "2.0", "id": id, "result": nil}
  

eth_cancelBundle

POST / rpc.lokibuilder.xyz

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_cancelBundle",
  "params": [
    {
      replacementUuid, // String, uuid v4 of bundle to cancel
    }
  ]
}

Response: {"jsonrpc": "2.0", "id": id, "result": nil}
  

eth_sendPrivateRawTransaction

POST / rpc.lokibuilder.xyz

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_sendPrivateRawTransaction",
  "params": [
    tx, // String, raw signed transaction
  ]
}

Response: {"jsonrpc": "2.0", "id": id, "result": nil}