Skip to main content

Tachyon Relayer

Tachyon is a high-speed relayer that abstracts away blockchain complexities, ensuring seamless transaction submission and execution. It handles transaction retries, manages RPC intricacies, and guarantees reliable transaction processing.

Overview

Tachyon enables users to submit transactions effortlessly while benefiting from its robust infrastructure. It supports EIP-1559 gas pricing and multiple execution optimizations, making it the ideal solution for developers building scalable decentralized applications.

Tachyon API Reference

Submit Transaction

Endpoint

POST https://api.tachyon.rath.fi/api/submit-tx

Headers

HeaderTypeDescription
api-keystringYour API key for authentication.
Content-TypestringMust be application/json.

Request Body

{
"chainId": 8008,
"to": "0xc20497D87f8e7CB784acF306423c4cC36D580180",
"value": "1",
"callData": "0xdef1",
"label": "hello-world",
"gasLimit": "460000",
"maxGas": "500000"
}

Parameters

ParameterTypeRequiredDescription
tostringThe recipient address of the transaction.
callDatastringThe calldata for contract execution.
valuestringAmount of native tokens to send.
chainIdnumberThe target blockchain network ID.
shouldBatchInMulticallbooleanWhether to batch transactions in a multicall. Defaults to false.
gasPricestringCustom gas price for the transaction.
maxPriorityFeePerGasstringMaximum priority fee per gas unit (EIP-1559).
maxFeePerGasstringMaximum total fee per gas unit (EIP-1559).
gasLimitstringMaximum gas limit for execution.
maxUSDnumberMaximum USD equivalent for transaction gas.
labelstringCustom label for transaction identification.

Response

{
"success": true,
"data": {
"txId": "67a73a9380e996f4f201fc9e"
}
}

Track Transaction Status

To track the status of a transaction, use the following endpoint:

Endpoint

GET https://api.tachyon.rath.fi/api/tx?id={id}

Response Example

{
"success": true,
"data": {
"id": "67a73a9380e996f4f201fc9e",
"userId": "67a66be0e4285021d937d6fc",
"to": "0xc20497D87f8e7CB784acF306423c4cC36D580180",
"callData": "0xdef1",
"value": "1",
"chainId": 8008,
"gasPrice": "1000252",
"maxFeePerGas": null,
"maxPriorityFeePerGas": null,
"gasLimit": "460000",
"label": "hello-world",
"status": "EXECUTED",
"executionTxHash": "0xae38e15ce98ec2dc560169a563d5d2e0226deb24fe6ee2cad02551c5a50ccf5d",
"costUSD": 0.0004101392863643845
}
}

API Playground

You can test the API using the interactive demo below:

fetch('https://api.tachyon.rath.fi/api/submit-tx', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'api-key': 'YOUR_API_KEY',
},
body: JSON.stringify({
chainId: 8008,
to: '0xc20497D87f8e7CB784acF306423c4cC36D580180',
value: '1',
callData: '0xdef1',
label: 'hello-world',
gasLimit: '460000',
}),
})
.then((res) => res.json())
.then(console.log)

Supported Networks

Tachyon currently supports multiple EVM-compatible networks, ensuring flexibility across different blockchain ecosystems.

Authentication

To use Tachyon's API, include your API key in the api-key header of each request. You can obtain an API key from the Tachyon dashboard.

Error Handling

Tachyon provides detailed error messages in case of failures. Common errors include:

  • 400 Bad Request: Invalid request format.
  • 401 Unauthorized: Missing or incorrect API key.
  • 500 Internal Server Error: Server-side issues.

Conclusion

Tachyon abstracts the complexities of transaction submission, handling retries and optimizations automatically. Developers can integrate Tachyon seamlessly to ensure their dApps perform efficiently on the blockchain.