Optional flag to specify if the transaction status should be refreshed from the fiat on ramp provider. Default = false.
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_onramp_transaction_status \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"transactionId": "<string>",
"refresh": "<boolean>"
}'
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().getOnRampTransactionStatus({
organizationId: "<string> (Unique identifier for a given Organization.)",
transactionId: "<string> (The unique identifier for the fiat on ramp transaction.)",
refresh: true // Optional flag to specify if the transaction status should be refreshed from the fiat on ramp provider. Default = false.
});
{
"transactionStatus": "<string>"
}
Queries
Get On Ramp transaction status
Get the status of an on ramp transaction.
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_onramp_transaction_status \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"transactionId": "<string>",
"refresh": "<boolean>"
}'
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().getOnRampTransactionStatus({
organizationId: "<string> (Unique identifier for a given Organization.)",
transactionId: "<string> (The unique identifier for the fiat on ramp transaction.)",
refresh: true // Optional flag to specify if the transaction status should be refreshed from the fiat on ramp provider. Default = false.
});
{
"transactionStatus": "<string>"
}
A successful response returns the following fields:
Was this page helpful?