isAvailable
Check if the second-level domain is available. The expired domain names can be re-registered. If the root does not exist, an error message is thrown.
Parameters
Name
Type
Description
Required
name
String
The second-level domain, e.g. "test.neo"
Required
Example
Request body #1
curl --request POST \
--url http://seed1t4.neo.org:20332/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "invokefunction",
"params": [ "0x152fa9ceeb2c83f40e3d3d6da6c1f8898dd4891a", "isAvailable",
[{"type":"String","value":"t5.neo"}]
],
"id": 1
}
'Response body #1
Request body #2
Response body #2
Request body #3
Response body #3
Last updated