getTezosTxAuthDataSignature

getTezosTxAuthDataSignature

This method allows you to obtain a signature for Tezos transaction authentication data. It requires details such as chainID, contractAddress, functionName, args, userAddress, blockExpiration, and nonce.

Parameters

  • chainID (string, required): Identifies the chain of the Tezos address. Example values: NetXdQprcVkpaWU, NetXnHfVqm9iesp.
  • contractAddress (string, required): The address of the Tezos contract.
  • functionName (string, required): The entrypoint name of the Tezos contract.
  • args (string, required): The arguments for the function.
  • userAddress (string, required): The Tezos address (implicit account).
  • blockExpiration (integer, optional): The block number at which the signature expires.
  • nonce (integer, optional): A nonce for the transaction.

Returns

A JSON object containing the signature, block expiration, and other related data.

Usage Example

const axios = require('axios');
let data = JSON.stringify({
  "chainID": "NetXdQprcVkpaWU",
  "contractAddress": "string",
  "functionName": "string",
  "args": "string",
  "userAddress": "string",
  "blockExpiration": 0,
  "nonce": 0
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.nexera.id/customer-tezos-tx-auth-signature',
  headers: { 
    'Content-Type': 'application/json', 
    'Accept': 'application/json', 
    'Authorization': 'Bearer <TOKEN>'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});