getRecord
Gets the record of a second-level domain or its subdomains with the specific type.
Parameters
Name
Type
Description
Required
name
String
The second-level domain name, e.g. "test.neo", or the subdomain "pay.test.neo"
Required
type
Byte
Available types are: 1 - IPV4 address record 5 - Canonical name record 16 - Text record 28 - IPV6 address record
Required
Example
Example #1 Get the IPV4 address record
Request body #1
curl --request POST \
--url http://seed1t4.neo.org:20332/ \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "invokefunction",
"params": [ "0x538355b776538a5da0b2a08c139b9900b9c0cbb6", "getRecord",
[
{
"type":"String","value":"sub1.flamincome.neo"
},{"type":"Integer","value":"1"}
],
[
{
"account": "NV1butKWMZSpWhBGU7PyP5Qe81Wq3zDkHP",
"scopes": "CalledByEntry"
}
]
],
"id": 1
}
'Response body #1
Example #2 Get the Canonical name record
Request body #2
Response body #2
Example #3 Get the Text record
Request body #3
Response body #3
Example #4 Get the IPV6 record
Request body #4
Response body #4
Example #5 Get the record of expired domains
Request body #5
Response body #5
Last updated