Retreive the 20 byte Account ID the Hook is executing on
Behaviour
- Write the 20 byte Account ID to the write_ptr
Definition
int64_t hook_account (
uint32_t write_ptr,
uint32_t write_len
);
Example
uint8_t hook_acc_id[20];
int64_t bytes_written =
hook_account(hook_acc_id, 20);
Parameters
| Name | Type | Description |
|---|---|---|
| write_ptr | uint32_t | Pointer to a buffer of a suitable size to store the output. Should be at least 20 bytes. |
| write_len | uint32_t | Length of the output buffer. |
Return Code
| Type | Description |
|---|---|
| int64_t | The number of bytes written If negative, an error: OUT_OF_BOUNDS- pointers/lengths specified outside of hook memory. |