MPC-TSS
Operations
EVM
Signing
Transfer NFT/ERC721

Sign Transfer NFT/ERC721

API Documentation: Sign Transfer NFT/ERC721

Overview

This API endpoint allows you to Sign an Ethereum transaction to transfer NFT.

  • HTTP Method: POST
  • Endpoint: /api/v1/wallet/eth/sign/erc721

Request Body Parameters

  • subId (required): this will be used to determine which key used to sign. The type is string.
  • chainId (required): the network's chain ID.
  • to (required): the destination EVM address that will receive the NFT.
  • tokenId (required): the NFT ID.
  • tokenAddress (required): the NFT contract address.

Example Request Body

{      
    "subId" : "...",    
    "chainId" : 17000,
    "to" : "0xeF236f1b35B2105836540c23d055d1BFb6c5db52",
    "tokenId": 0,
    "tokenAddress": "0x280c2D3182574d65139EE65383BD6285380d393d"
}

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 '{
    "subId" : "...",    
    "chainId" : 17000,
    "to" : "0xeF236f1b35B2105836540c23d055d1BFb6c5db52",
    "tokenId": 0,
    "tokenAddress": "0x280c2D3182574d65139EE65383BD6285380d393d"
}' <BASE_URL>/api/v1/wallet/eth/sign/erc721

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.requestId (string): The unique identifier for the request.

Example Response

{
    "status": 200,
    "message": "Sign transfer NFT/erc721 is in progress",
    "data": {
        "requestId": "9c276eb2-e0e1-4789-bd54-42d5e920379f"        
    }
}