This topic summarizes all APIs that the contract platform supports. For more information about the APIs, see the related topics.
Environment API
API | Description |
Initializes the environment. |
Account APIs
API | Description |
This API is used to create an account. | |
This API is called asynchronously to create an account. | |
This API is called synchronously for transaction transfer. | |
This API is called asynchronously for transaction transfer. | |
This API is called synchronously to set a recovery public key. | |
This API is called asynchronously to set a recovery public key. | |
This API is called synchronously to preset a public key. | |
This API is called asynchronously to preset a public key. | |
This API is called synchronously to reset a public key. | |
This API is called asynchronously to reset a public key. | |
This API is called synchronously to update a weight. | |
This API is called asynchronously to update a weight. | |
This API is called synchronously to freeze an account. | |
This API is called asynchronously to freeze an account. | |
This API is called synchronously to unfreeze an account. | |
This API is called asynchronously to unfreeze an account. | |
This API is called synchronously to update an encryption key. | |
This API is called asynchronously to update an encryption key. |
Contract APIs
API | Description |
This API is called synchronously to deploy a contract. | |
This API is called asynchronously to deploy a contract. | |
This API is called synchronously to call a contract. | |
This API is called asynchronously to call a contract. | |
This API is called synchronously to update a contract. | |
This API is called asynchronously to update a contract. | |
This API is called synchronously to freeze a contract. | |
This API is called asynchronously to freeze a contract. | |
This API is called synchronously to unfreeze a contract. | |
This API is called asynchronously to unfreeze a contract. |
Query APIs
API | Description |
This API is used to query for block headers by block hash. | |
This API is used to query for block headers by block number. | |
This API is used to query for the last block header. | |
This API is used to query for blocks by block hash. | |
This API is used to query for blocks by block number. | |
This API is used to query for the last block. | |
This API is used to query for transactions by transaction hash. | |
This API is used to query for transaction receipts by transaction hash. | |
This API is used to query for accounts by account ID. | |
This API is used to query for contracts by contract account. | |
This API is used to query for transaction receipts in blocks. |
Local execution API
API | Description |
The local execution service API. |
Envelope transaction APIs
API | Description |
This API is called synchronously for envelope transactions. | |
This API is called asynchronously for envelope transactions. |
Event APIs
API | Description |
This API is used to subscribe to an account. | |
This API is used to subscribe to a contract. | |
This API is used to subscribe to a topic event. | |
This API is used to subscribe to a block event. | |
This API is used to unsubscribe from an account event. | |
This API is used to unsubscribe from a contract event. | |
This API is used to unsubscribe from a topic event. | |
This API is used to unsubscribe from a block event. |
Monitoring metrics APIs
API | Description |
This API is used for the statistics metrics for the transactions sent by accounts. | |
This API is used for the statistics metrics for the query requests sent. | |
This API is used for the statistics metrics for the number of transactions handled per second. |
Privacy protection APIs
API | Description |
This API is used to encrypt the transaction amount. | |
This API is used to create a commitment to the transaction amount and encrypt the transaction amount by using | |
This API is used to create the proof required for a transaction. |
Native evidence deposit APIs
API | Description |
This API is called synchronously for evidence deposit transactions. | |
This API is called asynchronously for evidence deposit transactions. |
Log API
API | Description |
The logger factory. |