Send in Plain Text
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/plainTxn should be in Base64 encoded
Compulsory to add
api-keyandmethodin URI paramsSend request on endpoint
/iris2
URI Params
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
sendTransaction
POST
To send base64 encoded transaction
sendBatch
POST
To send batch of up to 25 txns in Plain text
getHealth
POST
To keep alive connection
Send Transaction
Example Request
Expected Response
200
Request is successful
400
Request might have some issues
Send Batch
Example Request
Expected Response
200
Request is successful
400
Request might have some issues
Last updated