Create a Project
Example
curl --location --request POST 'https://dev.underdogprotocol.com/v2/projects' \
--header 'Authorization: Bearer {token}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Project #420",
"image": "https://hatrabbits.com/wp-content/uploads/2017/01/random-word-1.jpg",
"transferable": false
}'
const axios = require('axios');
let data = JSON.stringify({
"name": "Project #420",
"image": "https://hatrabbits.com/wp-content/uploads/2017/01/random-word-1.jpg",
"transferable": false
});
let config = {
method: 'post',
url: 'https://dev.underdogprotocol.com/v2/projects',
headers: {
'Authorization': 'Bearer {token}',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Response
{
"projectId": 4,
"transferable": false,
"transactionId": "f6818014-838c-45db-bf9e-70a55ffb14d6",
"mintAddress": "7eq4L3mxaaZxLw5JGP2dDtoYA71vPoRvszSUYSbqxGgF"
}
Last updated