deleteRecord

Deletes the record of a second-level domain or its subdomains with specific type.


Parameters

Name
Type
Description
Required

name

String

The second-level domain name, "test.neo"

Required

type

Integer

Available types are: 1 - IPV4 address record 5 - Canonical name record 16 - Text record 28 - IPV6 address record

Example

Request body #1

curl --request POST \
  --url http://localhost:20332/ \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "invokefunction",
  "params": [ "0x538355b776538a5da0b2a08c139b9900b9c0cbb6", "deleteRecord",
                         [
                             {
                                 "type":"String","value":"sub1.flamincome.neo"
                             },{"type":"Integer","value":"1"}
                         ],
    [
      {
        "account": "NV1butKWMZSpWhBGU7PyP5Qe81Wq3zDkHP",
        "scopes": "CalledByEntry"
      }
    ]
],
  "id": 1
}
'

Response body #1

Request body #2

Deletes all records of the expired domain:

Response body #2

Last updated