---
title: "POST /get_code_hash"
method: POST
path: "/get_code_hash"
---

# POST /get_code_hash

`POST /get_code_hash`

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.

## Request body

- object
  - `account_name` string — 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 `200`

OK

- object
  - `account_name` string — The name of the account where the smart contract was deployed.
  - `code_hash` string — A string that represents the hash value of the specified account's smart contract code.

---

[API](https://skmtc.net/worldwide-asset-exchange/apis/chain-api.md) · [All operations](https://skmtc.net/worldwide-asset-exchange/apis/chain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/worldwide-asset-exchange/chain-api/versions/5bfa22186461/schema)
