MPC-TSS
Operations
EVM
Nonce

Retrieve Wallet Next Nonce

API Documentation: Retrieve Wallet Next Nonce

Overview

This API endpoint allows you to retrieve next nonce for a wallet.

  • HTTP Method: POST
  • Endpoint: /api/v1/wallet/eth/nonce

Request Body Parameters

  • walletId (required): this will be used to determine which key used to sign. The type is string.

Example Request Body

{      
    "walletId": "..."    
}

Request

Request Headers

  • X-CLIENT-ID: (required): Client ID which was generated when register in Xellar TSS API Service Dashboard.
  • X-SIGNATURE: (required): Calculated signature, please refer to Authorization section.
  • X-TIMESTAMP: (required): Request timestamp in RFC3339 format.

Example Request Syntax

curl -X POST -H "Content-Type: application/json" -H "x-client-id: $YOUR_CLIENT_ID" -H "x-client-secret: $YOUR_CLIENT_SECRET" -d '{
    "walletId": "..."    
}' <BASE_URL>/api/v1/wallet/eth/nonce

Response

The response will include a JSON object with the following properties:

  • status (number): The HTTP status code of the response (e.g., 200 for success).
  • message (string): A message providing additional information about the operation.
  • data (object): An object containing the request information.
  • data.nonce (number): The next nonce for a wallet.

Example Response

{
    "status": 200,
    "message": "Get Nonce Successfully",
    "data": {
        "nonce": 0
    }
}