sendTxBatch
You need to sign the transaction body before sending it to the server. More details can be found here: https://docs.lighter.xyz/developers
post/api/v1/sendTxBatch
Body
tx_typesstringRequiredExample:
JSON-encoded array of numeric transaction types, in the same order as tx_infos.
[14,15]tx_infosstringRequiredExample:
JSON-encoded array of signed transaction JSON strings. Use the signer output for each item; the array length and order must match tx_types.
["{"AccountIndex":123,"Sig":"<signature>"}","{"AccountIndex":123,"Sig":"<signature>"}"]Responses
200
A successful response.
application/json
Fields with zero or empty values may be omitted; handle optional properties when decoding responses.
codeinteger · int32RequiredExample:
200messagestringOptional
tx_hashstring[]Required
predicted_execution_time_msinteger · int64RequiredExample:
1751465474volume_quota_remaininginteger · int64Optional
remaining_send_txinteger · int64Optional
Remaining sendTx requests in the current per-minute bucket. Only returned for Premium accounts; omitted otherwise.
400
Bad request
application/json
post/api/v1/sendTxBatch
POST /api/v1/sendTxBatch HTTP/1.1
Host: mainnet.zklighter.elliot.ai
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 139
"tx_types='[14,15]'&tx_infos='[\'{\'AccountIndex\':123,\'Sig\':\'<signature>\'}\',\'{\'AccountIndex\':123,\'Sig\':\'<signature>\'}\']'"{
"code": 200,
"message": "text",
"tx_hash": [
"text"
],
"predicted_execution_time_ms": 1751465474,
"volume_quota_remaining": 1,
"remaining_send_tx": 1
}Last updated
Was this helpful?