Authorizations
API Key
WebAuthn (Passkey)
Cryptographically signed (stamped) request to be passed in as a header. For more info, see
here.
Cryptographically signed (stamped) request to be passed in as a header. For more info, see
here.
Body
Unique identifier for a given Organization.
The Ethereum address to query nonces for.
The network identifier in CAIP-2 format (e.g., ‘eip155:1’ for Ethereum mainnet).
Whether to fetch the standard on-chain nonce.
Whether to fetch the gas station nonce used for sponsored transactions.
Response
A successful response returns the following fields:
The standard on-chain nonce for the address, if requested.
The gas station nonce for sponsored transactions, if requested.
curl --request POST \
--url https://api.turnkey.com/public/v1/query/get_nonces \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"address": "<string>",
"caip2": "<string>",
"nonce": "<boolean>",
"gasStationNonce": "<boolean>"
}'
{
"nonce": "<string>",
"gasStationNonce": "<string>"
}