Get send transaction status
Get the status of a send transaction request.
curl --request POST \
--url https://api.0xkey.io/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 { ZeroXKey } from "@0xkey-io/sdk-server";
const zeroXKey = new ZeroXKey({
apiBaseUrl: "https://api.0xkey.io",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await zeroXKey.apiClient().publicApiService_GetSendTransactionStatus({
organizationId: "<string> (Unique identifier for a given organization.)",
sendTransactionStatusId: "<string> (The unique identifier of a send transaction request.)"
});
{
"txStatus": "<string>",
"eth": {
"txHash": "<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>"
}
}
]
}
}
A successful response returns the following fields:
⌘I
curl --request POST \
--url https://api.0xkey.io/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 { ZeroXKey } from "@0xkey-io/sdk-server";
const zeroXKey = new ZeroXKey({
apiBaseUrl: "https://api.0xkey.io",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await zeroXKey.apiClient().publicApiService_GetSendTransactionStatus({
organizationId: "<string> (Unique identifier for a given organization.)",
sendTransactionStatusId: "<string> (The unique identifier of a send transaction request.)"
});
{
"txStatus": "<string>",
"eth": {
"txHash": "<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>"
}
}
]
}
}