getnativecontracts

Gets the list of native contracts.

Parameters

None

Result

The native contracts list, which includes the basic information of native contracts and the contract descriptive file manifest.json.

Example

Request

curl <your-endpoint> \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{"jsonrpc": "2.0", "method": "getnativecontracts", "params":[],"id": 1}'

Return

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [{
    "id": -1,
    "hash": "0xfffdc93764dbaddd97c48f252a53ea4643faa3fd",
    "nef": {
      "magic": 860243278,
      "compiler": "neo-core-v3.0",
      "source": "",
      "tokens": [],
      "script": "EEEa93tnQBBBGvd7Z0AQQRr3e2dAEEEa93tnQBBBGvd7Z0AQQRr3e2dAEEEa93tnQBBBGvd7Z0A=",
      "checksum": 1110259869
    },
    "manifest": {
      "name": "ContractManagement",
      "groups": [],
      "features": {},
      "supportedstandards": [],
      "abi": {
        "methods": [{
          "name": "deploy",
          "parameters": [{
            "name": "nefFile",
            "type": "ByteArray"
          }, {
            "name": "manifest",
            "type": "ByteArray"
          }],
          "returntype": "Array",
          "offset": 0,
          "safe": false
        }, {
          "name": "deploy",
          "parameters": [{
            "name": "nefFile",
            "type": "ByteArray"
          }, {
            "name": "manifest",
            "type": "ByteArray"
          }, {
            "name": "data",
            "type": "Any"
          }],
          "returntype": "Array",
          "offset": 7,
          "safe": false
        }, {
          "name": "destroy",
          "parameters": [],
          "returntype": "Void",
          "offset": 14,
          "safe": false
        }, {
          "name": "getContract",
          "parameters": [{
            "name": "hash",
            "type": "Hash160"
          }],
          "returntype": "Array",
          "offset": 21,
          "safe": true
        }, {
          "name": "getMinimumDeploymentFee",
          "parameters": [],
          "returntype": "Integer",
          "offset": 28,
          "safe": true
        }, {
          "name": "setMinimumDeploymentFee",
          "parameters": [{
            "name": "value",
            "type": "Integer"
          }],
          "returntype": "Void",
          "offset": 35,
          "safe": false
        }, {
          "name": "update",
          "parameters": [{
            "name": "nefFile",
            "type": "ByteArray"
          }, {
            "name": "manifest",
            "type": "ByteArray"
          }],
          "returntype": "Void",
          "offset": 42,
          "safe": false
        }, {
          "name": "update",
          "parameters": [{
            "name": "nefFile",
            "type": "ByteArray"
          }, {
            "name": "manifest",
            "type": "ByteArray"
          }, {
            "name": "data",
            "type": "Any"
          }],
          "returntype": "Void",
          "offset": 49,
          "safe": false
        }],
        "events": [{
          "name": "Deploy",
          "parameters": [{
            "name": "Hash",
            "type": "Hash160"
          }]
        }, {
          "name": "Update",
          "parameters": [{
            "name": "Hash",
            "type": "Hash160"
          }]
        }, {
          "name": "Destroy",
          "parameters": [{
            "name": "Hash",
            "type": "Hash160"
          }]
        }]
      },
      "permissions": [{
        "contract": "*",
        "methods": "*"
      }],
      "trusts": [],
      "extra": null
    },
    "updatehistory": [0]
  }, 
  ...
  {
    "id": -9,
    "hash": "0xfe924b7cfe89ddd271abaf7210a80a7e11178758",
    "nef": {
      "magic": 860243278,
      "compiler": "neo-core-v3.0",
      "source": "",
      "tokens": [],
      "script": "EEEa93tnQBBBGvd7Z0AQQRr3e2dAEEEa93tnQBBBGvd7Z0A=",
      "checksum": 2663858513
    },
    "manifest": {
      "name": "OracleContract",
      "groups": [],
      "features": {},
      "supportedstandards": [],
      "abi": {
        "methods": [{
          "name": "finish",
          "parameters": [],
          "returntype": "Void",
          "offset": 0,
          "safe": false
        }, {
          "name": "getPrice",
          "parameters": [],
          "returntype": "Integer",
          "offset": 7,
          "safe": true
        }, {
          "name": "request",
          "parameters": [{
            "name": "url",
            "type": "String"
          }, {
            "name": "filter",
            "type": "String"
          }, {
            "name": "callback",
            "type": "String"
          }, {
            "name": "userData",
            "type": "Any"
          }, {
            "name": "gasForResponse",
            "type": "Integer"
          }],
          "returntype": "Void",
          "offset": 14,
          "safe": false
        }, {
          "name": "setPrice",
          "parameters": [{
            "name": "price",
            "type": "Integer"
          }],
          "returntype": "Void",
          "offset": 21,
          "safe": false
        }, {
          "name": "verify",
          "parameters": [],
          "returntype": "Boolean",
          "offset": 28,
          "safe": true
        }],
        "events": [{
          "name": "OracleRequest",
          "parameters": [{
            "name": "Id",
            "type": "Integer"
          }, {
            "name": "RequestContract",
            "type": "Hash160"
          }, {
            "name": "Url",
            "type": "String"
          }, {
            "name": "Filter",
            "type": "String"
          }]
        }, {
          "name": "OracleResponse",
          "parameters": [{
            "name": "Id",
            "type": "Integer"
          }, {
            "name": "OriginalTx",
            "type": "Hash256"
          }]
        }]
      },
      "permissions": [{
        "contract": "*",
        "methods": "*"
      }],
      "trusts": [],
      "extra": null
    },
    "updatehistory": [0]
  }]
}
Language
Click Try It! to start a request and see the response here!