Skip to content

hook

Compiling Hooks
  • hook is a user defined function called by xahaud in order to fire your hook.
  • Your hook function calls either accept or reject to pass or reject the originating transaction.
  • If execution reaches the end of the function it is implicitly an accept.
int64_t hook (
uint32_t reserved
)
int64_t hook(uint32_t reserved)
{
return 0;
}
NameTypeDescription
reserveduint32_tReserved for future use.
TypeDescription
int64_tAn arbitrary return code you wish to return from your hook. This will be present in the metadata of the originating transaction.