Show / Hide
Table of Contents
Last modified: 2024-09-14
ContractManagement.GetContractById Method
Gets the hashes of all non-native deployed contracts.
Namespace: Neo.SmartContract.Framework.Native
Assembly: Neo.SmartContract.Framework
Syntax
Return:
Iterator with hashes of all deployed contracts.
Example
Contract:
Invoke from RPC:
Response body:
Invoke again from RPC to get the specific value of the iterator. For more information, refer to the command traverseiterator .
Response body:
Response description:
Each element of the returned array is a contract message containing the contract ID and Hash.
Base64 string AAAABA==
to hexadecimal string is 00000004
.
Base64 script hash huXqo6mYsgw2Ns85UsyIqhHxT8A=
to script hash (little-endian) is 86e5eaa3a998b20c3636cf3952cc88aa11f14fc0
.
Back