Submit a transaction
Submits a transaction for asynchronous execution through the Tachyon relayer.
Authorization
apiKey Tachyon API key.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://tachyon.rath.fi/api/submit-tx" \ -H "Content-Type: application/json" \ -d '{ "to": "", "callData": "", "chainId": 0 }'{
"success": true,
"data": {
"txId": "string",
"estimatedCostUSD": 0,
"x402Payment": {
"type": "x402-gateway",
"amount": "string",
"amountUsd": 0,
"network": "string",
"transaction": "string",
"settledAt": "2019-08-24T14:15:22Z",
"payer": "string"
}
},
"timestamp": "2019-08-24T14:15:22Z"
}{
"success": false,
"error": {
"code": "string",
"message": "string",
"category": "string",
"details": null,
"traceId": "string"
},
"timestamp": "2019-08-24T14:15:22Z"
}{
"success": false,
"error": {
"code": "string",
"message": "string",
"category": "string",
"details": null,
"traceId": "string"
},
"timestamp": "2019-08-24T14:15:22Z"
}{
"success": false,
"error": {
"code": "PAYMENT_REQUIRED",
"message": "string",
"category": "PAYMENT",
"details": {
"estimatedExecutionCostUsd": 0,
"paymentAmountUsd": 0,
"paymentAmount": "string",
"asset": "USDC",
"gasLimit": "string",
"networks": [
"string"
]
}
},
"timestamp": "2019-08-24T14:15:22Z"
}{
"success": false,
"error": {
"code": "string",
"message": "string",
"category": "string",
"details": null,
"traceId": "string"
},
"timestamp": "2019-08-24T14:15:22Z"
}