Links

Request Nonce

Request a one-time unique nonce to create or hide lore
Request Nonce lets you get a one-time nonce to create a signature message which the NFT owner signs natively inside your dapp and performs a create / hide operation. You will need a nonce to:
  • Create a lore
  • Hide a previously posted lore
  • Change NFT name
Nonce expires after 15 mins of inactivity or after it gets used. Always request a fresh nonce so that your signature matches when you try to run a post request.
post
https://api.hyy.pe/api/v1
/user/public/request-nonce
Request Nonce
Take a look at how you might want to pass on the payload via curl:

Requesting Nonce for creating a lore

cURL
curl -X 'POST' \
'https://api.hyy.pe/api/v1/user/public/request-nonce' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'client-id: <YOUR_CLIENT_ID_HERE>' \
-d '{
"address": "<signature_owner_address_goes_here>", //wallet address
"action": "CREATE_LORE"
}'

Requesting Nonce for hiding a lore

cURL
curl -X 'POST' \
'https://api.hyy.pe/api/v1/user/public/request-nonce' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'client-id: <YOUR_CLIENT_ID_HERE>' \
-d '{
"address": "<signature_owner_address_goes_here>", //wallet address
"action": "HIDE_LORE"
}'

Requesting Nonce for renaming an NFT

cURL
curl -X 'POST' \
'https://api.hyy.pe/api/v1/user/public/request-nonce' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'client-id: <YOUR_CLIENT_ID_HERE>' \
-d '{
"address": "<signature_owner_address_goes_here>", //wallet address
"action": "RENAME_NFT"
}'