Skip to main content
POST
https://api.0xkey.io
/
public
/
v1
/
query
/
get_nonces
Get nonces for an address.
curl --request POST \
  --url https://api.0xkey.io/public/v1/query/get_nonces \
  --header 'Content-Type: application/json' \
  --header 'X-Stamp: <api-key>' \
  --data '
{
  "organizationId": "<string>",
  "address": "<string>",
  "caip2": "<string>"
}
'
{
  "nonce": "<string>",
  "gasStationNonce": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.0xkey.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Stamp
string
header
required

Body

application/json
organizationId
string
required

Unique identifier for a given Organization.

address
string
required

The Ethereum address to query nonces for.

caip2
string
required

The network identifier in CAIP-2 format (e.g., 'eip155:1' for Ethereum mainnet).

nonce
boolean

Whether to fetch the standard on-chain nonce.

gasStationNonce
boolean

Whether to fetch the gas station nonce used for sponsored transactions.

Response

A successful response.

nonce
string<uint64>

The standard on-chain nonce for the address, if requested.

gasStationNonce
string<uint64>

The gas station nonce for sponsored transactions, if requested.