v1

latestOpenAPI 3.0.0raw.githubusercontent.com2025-08-29295183.8 KB

Retrieves the code hash for a smart contract deployed on the blockchain. Once you have the code hash of a contract, you can compare it with a known or expected value to ensure that the contract code has not been modified or tampered with.

post/get_code_hash

Request body

account_namestring

The name of the account for which you want to retrieve the code hash. It represents the account that owns the smart contract code.

Response

OK

account_namestring

The name of the account where the smart contract was deployed.

code_hashstring

A string that represents the hash value of the specified account's smart contract code.