Mint a Name

Mint a Name

Code samples

const inputBody = '{
  "name": "string",
  "signature": "string",
  "message": "string",
  "createdAt": 0,
  "id": "string"
}';
const headers = {
  'Content-Type':'application/json',
  'Accept':'application/json'
};

fetch('https://tna-btc.com/api/tapname',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

POST /api/tapname

Body parameter

{
  "name": "string",
  "signature": "string",
  "message": "string",
  "createdAt": 0,
  "id": "string"
}

Parameters

Example responses

200 Response

{
  "code": 0,
  "message": "string",
  "data": {}
}

Responses

Response Schema

Status Code 200

Last updated