Deploy on hVM

๐Ÿ“œ TL;DR:

  • To use hVM directly, you will have to call the appropriate precompile address with the appropriate serialized bytes to pass parameters to the function.

  • Most dApp developers will use the Hemi Bitcoin Kit (hBK) rather than hVM directly.


๐ŸŒ Overview

  • To use hVM directly, you will have to call the appropriate precompile address with the appropriate serialized bytes to pass parameters to the function.

  • Each successful precompile call will return serialized bytes according to the precompileโ€™s return data specification.


๐ŸŸจ Developer Tip

Most dApp developers will use the Hemi Bitcoin Kit (hBK) rather than hVM directly.

  • If youโ€™re looking for an easy way to get started developing Bitcoin-aware dApps on Hemi, check out the โ€œHemi Bitcoin Kit (hBK)โ€ section. Understanding how Bitcoin Kit uses hVM under-the-hood may be helpful, and dApp developers looking to maximize gas efficiency may benefit from using hVM directly to avoid paying overhead for unmarshalling data they donโ€™t need for a specific use case.

Last updated