Send 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 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

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

Status Code
Description

200

Request is successful

400

Request might have some issues

Last updated