fireSend Transaction V2

Key Improvements Include:

  • No CORS preflight checks

  • Plain text instead of a JSON payload

  • Reduced body size, which means reduced bandwidth and network overhead

Key points

  • Request should only have one header as Content-Type : text/plain

  • Txn should be in Base64 encoded

  • Compulsory to add api-key and method in URI params

  • Right now we only support sendTransaction and getHealth method

  • Send request on endpoint /iris2

URI Params

Param
Type
Description

api-key

String

Mandatory, to set api key for authentication

method

String

Mandatory, to set method

mev-protect

Boolean

Optional, To set mev protect, default is false

swqos-only

Boolean

Optional, if set true, txn will be only send via swqos, default is false

Methods

Method
REST Method
Description

sendTransaction

POST

To send base64 encoded transaction

getHealth

POST

To keep alive connection

Example Request

Rust :

NodeJS

Go Lang

Expected Response

Note:

For Txn V2, a successful request returns status 200 OK with an empty body. Please note that unlike JSON RPC, no signature is included in the response.

Status Code
Description

200

Request is successful

400

Request might have some issues

Last updated