Execute a raw transaction on a network. The API returns a jobId
which can be used to track the status of the transaction.
Headers
Authorization
: string
Authorization token received from Okto.
Parameters
network_name
: string
Name of network to execute transaction on.
transaction
: object
The revelant transaction object of the network. Example: Solana (opens in a new tab), Ethereum (opens in a new tab), Polygon (opens in a new tab)
Code
curl -X POST '${baseUrl}/api/v1/rawtransaction/execute'
-H 'x-api-key: YOUR_CLIENT_API_KEY'
-H 'accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer AUTH_TOKEN' -d '
{
"network_name": "POLYGON_TESTNET",
"transaction": {
"from": "0x0342A54DD44E8744FD185579Af57845Cb0ac6cB0",
"to": "0x80322ea18633A1f713e987d65Ae78AcCDAB6e55e",
"data": "0x",
"value": "0x10000"
}
}
'
Response
{
"status": "success",
"data": {
"jobId": "d6ce7f0c-1a7d-441d-bb3e-4e431fae84c9"
}
}