Last modified: 2024-09-14
ContractManagement.GetContractById Method
Maps the specified ID to the deployed contract.
Namespace: Neo.SmartContract.Framework.Native
Assembly: Neo.SmartContract.Framework
Syntax
Parameters:
-
id: Contract ID. Negative numbers represent native contracts, while positive numbers represent normal contracts (non-native deployed contracts).
Example
Contract:
Invoke from neo-cli:
Invoke from RPC:
Response body:
Response description:
According to the contract code, the contract name associated with the requested ID is returned here.
The string Q29udHJhY3RNYW5hZ2VtZW50
, when decoded with base64, yields ContractManagement
.