curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_send_transaction_status \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"sendTransactionStatusId": "<string>"
}'
import { Turnkey } from "@turnkey/sdk-server";
const turnkeyClient = new Turnkey({
apiBaseUrl: "https://api.turnkey.com",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await turnkeyClient.apiClient().getSendTransactionStatus({
organizationId: "<string> (Unique identifier for a given Organization.)",
sendTransactionStatusId: "<string> (The unique identifier of a send transaction request.)"
});
{
"txStatus": "<string>",
"eth": {
"txHash": "<string>",
"fee": {
"gasUsed": "<string>",
"effectiveGasPrice": "<string>",
"totalCostUsd": "<string>"
}
},
"solana": {
"signature": "<string>",
"fee": {
"feeLamports": "<string>",
"sponsoredRentLamports": "<string>",
"totalCostUsd": "<string>",
"feeCostUsd": "<string>",
"rentCostUsd": "<string>"
}
},
"txError": "<string>",
"error": {
"message": "<string>",
"revertChain": [
{
"address": "<string>",
"errorType": "<string>",
"displayMessage": "<string>",
"unknown": {
"selector": "<string>",
"data": "<string>"
},
"native": {
"nativeType": "<string>",
"message": "<string>",
"panicCode": "<string>"
},
"custom": {
"errorName": "<string>",
"paramsJson": "<string>"
}
}
],
"solana": {
"source": "<string>",
"rpcCode": "<number>",
"rpcMessage": "<string>",
"transactionErrorJson": "<string>",
"logs": [
"<string>"
],
"unitsConsumed": "<string>",
"innerInstructionsJson": "<string>"
},
"eth": {
"revertChain": [
{
"address": "<string>",
"errorType": "<string>",
"displayMessage": "<string>",
"unknown": {
"selector": "<string>",
"data": "<string>"
},
"native": {
"nativeType": "<string>",
"message": "<string>",
"panicCode": "<string>"
},
"custom": {
"errorName": "<string>",
"paramsJson": "<string>"
}
}
]
}
}
}