The RPC module provides methods to get basic information of blockchain data and status, such as block height, block content, transaction details, and contracts.
For some specific information of contracts, such as the block maximum transaction number, system fee per byte, NEP-17 contract details, you need to invoke specific contract methods, which will be introduced in this document.
Getting blockchain data from RPC interfaces
Gets the latest block height or hash:
Gets the specific data inside a block, including transaction list, etc.
Gets the contract script, hash, and manifest through RpcClient :
Invokes the method policyAPI in the native contract PolicyContract to get the Policy related information:
Getting NEP-17 contract information
NEP17 is an asset standard for Neo N3, such as NEO and GAS, both of which are assets based on NEP17 native contract. You can invoke Nep17API to get the name, mark, decimal place, and amount of the NEP17 contract.