In order to mint your SubHandle you will need to perform the following steps:
- Save Your SubHandle settings.
- Create a transaction for the cost of your NFT or Virtual SubHandle.
- Make a POST request to our API to create the SubHandle for minting.
Follow the instructions here to create your SubHandle Settings
The transaction will need to contain the correct amount for Virtual or NFT SubHandle set in the first step.
Mainnet: addr1x8urz6ct2p52gnfgnt424q995nq6wx9qu9q7c94q9u0n9e8cx94sk5rg53xj3xh242q2tfxp5uv2pc2past2qtclxtjqsw5p75
Preprod: addr_test1xqrwfk7h95z45fjgru4r6z8wemuv7yvgefd9njtt9uqm0psxundawtg9tgnys8e285ywanhceugc3jj6t8ykktcpk7rq0yym5n
Preview: addr_test1xr5ew4vnma7ave64uh0v8a539dt00rfcpgp5k98kul0t46lfja2e8hma6en4tew7c0mfz26k77xnszsrfv20de77ht4s0gcr6m
Once submitted, take note of the transaction ID, you will need this in the next step.
Perform the following API request:
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"sub_handle": "sub@handle",
"tx_hash": "your_transaction_hash",
"auth_client": "your_clientId",
"access_token": "your_access_token",
"type": "nft|virtual",
"send_address": "addr_test1xr5ew4vnma7ave64uh0v8a539dt00rfcpgp5k98kul0t46lfja2e8hma6en4tew7c0mfz26k77xnszsrfv20de77ht4s0gcr6m"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.handle.me/mint", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
curl --location 'https://api.handle.me/mint' \
--header 'Content-Type: application/json' \
--data-raw '{
"sub_handle": "sub@handle",
"tx_hash": "your_transaction_hash",
"auth_client": "your clientId",
"access_token": "your access token",
"type": "nft",
"send_address": "addr_test1xr5ew4vnma7ave64uh0v8a539dt00rfcpgp5k98kul0t46lfja2e8hma6en4tew7c0mfz26k77xnszsrfv20de77ht4s0gcr6m"
}'
Once submitted, you will need to wait until we verify the transaction and mint your new SubHandle.