| Name | Type | Description |
|---|---|---|
| write_ptr | uint32_t | Pointer to a buffer to write the transaction hash to |
| write_len | uint32_t | The size of the buffer to write the transaction hash to (should be 32.) |
| read_ptr | uint32_t | Pointer to the transaction to emit |
| read_len | uint32_t | The length of the transaction |
| Name | Type | Description |
|---|---|---|
| txJson | Record<string, any> | Transaction | The TX JSON to emit. |
| Type | Description |
|---|---|
| int64_t | On success, the number of bytes of transaction hash written (32), or: If negative, an error: OUT_OF_BOUNDS- pointers/lengths specified outside of hook memory. PREREQUISITE_NOT_MET- emit_reserve must be called firstTOO_MANY_EMITTED_TXN- the number of emitted transactions is now greater than the promise made when emit_reserve was called earlierEMISSION_FAILURE- the transaction was malformed according to the emission rules. |
| Type | Description |
|---|---|
| ErrorCode | ByteArray | Returns an ErrorCode if there is an error, or an array of emitted transaction hashes on success. |
| Name | Type | Description |
|---|---|---|
| write_ptr | uint32_t | Pointer to a buffer to write the transaction hash to |
| write_len | uint32_t | The size of the buffer to write the transaction hash to (should be 32.) |
| read_ptr | uint32_t | Pointer to the transaction to emit |
| read_len | uint32_t | The length of the transaction |
| Name | Type | Description |
|---|---|---|
| txJson | Record<string, any> | Transaction | The transaction JSON, must be a complete transaction except for Account (always the Hook account). |
| Name | Type | Description |
|---|---|---|
| txJson | Record<string, any> | Transaction | The TX JSON to emit. |
| Type | Description |
|---|---|
| int64_t | On success, the number of bytes of transaction hash written (32), or: If negative, an error: OUT_OF_BOUNDS- pointers/lengths specified outside of hook memory. PREREQUISITE_NOT_MET- emit_reserve must be called firstTOO_MANY_EMITTED_TXN- the number of emitted transactions is now greater than the promise made when emit_reserve was called earlierEMISSION_FAILURE- the transaction was malformed according to the emission rules. |
| Type | Description |
|---|---|
| ErrorCode | Record<string, any> | Transaction | Returns an ErrorCode if there is an error, or the prepared transaction JSON or Transaction object. |
| Type | Description |
|---|---|
| ErrorCode | ByteArray | Returns an ErrorCode if there is an error, or an array of emitted transaction hashes on success. |
| Name | Type | Description |
|---|---|---|
| txJson | Record<string, any> | Transaction | The transaction JSON, must be a complete transaction except for Account (always the Hook account). |
| Type | Description |
|---|---|
| ErrorCode | Record<string, any> | Transaction | Returns an ErrorCode if there is an error, or the prepared transaction JSON or Transaction object. |