This paper list all API:
Environment operations
Account operations
Contract operations
Query operations
Local execution operations
Event operations
Monitoring operations
Privacy protection operations
Native deposit operations
Log operations
Environment operations
Operation | Description |
---|---|
init | You can call this operation to initialize the environment. |
Account operations
Operation | Description |
---|---|
createAccount | You can call this operation to create an account. |
asyncCreateAccount | You can call this asynchronous operation to create an account. |
transferBalance | You can call this synchronous operation to perform a transfer. |
asyncTransferBalance | You can call this asynchronous operation to perform a transfer. |
setRecoverKey | You can call this synchronous operation to set the recovery key. |
asyncSetRecoverKey | You can call this asynchronous operation to set the recovery key. |
preResetPubKey | You can call this synchronous operation to pre-reset the public key. |
asyncPreResetPubKey | You can call this asynchronous operation to pre-reset the public key. |
resetPubKey | You can call this synchronous operation to reset the public key. |
asyncResetPubKey | You can call this asynchronous operation to reset the public key. |
updateAuthMap | You can call this synchronous operation to update the weights. |
asyncUpdateAuthMap | You can call this asynchronous operation to update the weights. |
freezeAccount | You can call this synchronous operation to freeze an account. |
asyncFreezeAccount | You can call this asynchronous operation to freeze an account. |
unFreezeAccount | You can call this synchronous operation to unfreeze an account. |
asyncUnFreezeAccount | You can call this asynchronous operation to unfreeze an account. |
Contract operations
Operation | Description |
---|---|
deployContract | You can call this synchronous operation to deploy a contract. |
asyncDeployContract | You can call this asynchronous operation to deploy a contract. |
callContract | You can call this synchronous operation to call a contract. |
asyncCallContract | You can call this asynchronous operation to call a contract. |
updateContract | You can call this synchronous operation to update a contract. |
asyncUpdateContract | You can call this asynchronous operation to update a contract. |
Query operations
Operation | Description |
---|---|
queryBlockHeaderByHash | You can call this operation to query a block header through the block header hash. |
queryBlockHeaderByNumber | You can call this operation to query the header of a block using the block number. |
queryLastBlockHeader | You can call this operation to query the last block header. |
queryBlockByHash | You can call this operation to query a block using the block hash. |
queryBlockByNumber | You can call this operation to query a block using the block number. |
queryLastBlock | You can call this operation to query the last block. |
Local execution operations
Operation | Description |
---|---|
getLocalService | You can call this operation to execute a transaction locally. |
Event operations
Operation | Description |
---|---|
listenAccount | You can call this operation to subscribe to the transactions of an account. |
listenContract | You can call this operation to subscribe to a contract. |
listenTopics | You can call this operation to subscribe to topic events. |
listenBlock | You can call this operation to subscribe to block events. |
unListenAccount | You can call this operation to cancel the subscription to account events. |
unListenContract | You can call this operation to cancel the subscription to contract events. |
unListenTopics | You can call this operation to cancel the subscription to topic events. |
unListenBlock | You can call this operation to cancel the subscription to topic events. |
Monitoring operations
Operation | Description |
---|---|
queryNodeMetricsStatus | You can call this operation to query the transactions sent by a specific account. |
queryMetricsMessage | You can call this operation to query the query request metrics. |
queryTpsLatency | You can call this operation to query the transactions per second (TPS). |
Privacy protection operations
Operation | Description |
---|---|
ValueHiding | You can call this operation to encrypt the transaction amount. |
PedersenCommitment | You can call this operation to create commitments on the transaction amounts, and use ValueHiding to encrypt the transaction amounts. |
Proofs | You can call this operation to create the proof of work required to confirm transactions and produce new blocks. |
Native Deposit Operations
Operation | Description |
---|---|
depositData | You can call this synchronous operation to deposit data. |
asyncDepositData | You can call this asynchronous operation to deposit data. |
Log operations
Operation | Description |
---|---|
LoggerFactory | LoggerFactory |