You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blockchain settings will not update on Handshake immediately. Until they are mined, the settings will exist in two states: the current Namebase records and the current Handshake records. In the responses, the upToDate field will indicate if Handshake is fully synced with the Namebase records. Otherwise, records will just return the Namebase records.
Get Settings
GET /api/v0/dns/domains/:domain
Returns the current blockchain DNS settings for a domain.
Response:
{
"success": boolean,
"currentHeight": integer,
"upToDate": boolean,
"canUseSimpleUi": boolean, // false if the records were set using the advanced settings
"rawNameState": string,
"fee": string,
"records": Record[],
}
Updates the Handshake DNS settings using advanced types. Not all Handshake types are supported using json input, to include other types, create a hex of the records and use this endpoint.
Parameters:
Name
Type
Mandatory
Description
rawNameState
STRING
YES
Hex of DNS records
Response:
{
"success": boolean,
"txHash": string,
"rawNameState": string,
"canUseSimpleUi": boolean, // false if the records were set using the advanced settings
"records": Record[],
}
The records you want set. Keep in mind that when a new record is set, every record with the same host and type will be removed and replaced with the new record
deleteRecords
DeleteRecord[]
YES
The record sets that you want to delete. This will remove all records with the specified host and type