Skip to main content

hash_type

hash_type defines the interpretation of the code_hash when looking for matching dep Cells. Each hash_type value in this fields corresponds to a specific JSON representation, hash matching method, and the compatible VM version, specified as follows:

hash_typeJSON RepresentationMatched byVM Version
0"data"Data hash (blake2b)0
1"type"Type Script hash2
2"data1"Data hash (blake2b)1
4"data2"Data hash (blake2b)2

Learn more about VM versions and how to choose, visit RFC0032: CKB VM Version Selection