etxn_details
Concepts
Section titled “Concepts”Behaviour
Section titled “Behaviour”- Generate and write a 105 byte sfEmitDetails object into the
write_ptrif cbak is not defined - Generate and write a 127 byte sfEmitDetails object into the
write_ptrif cbak is defined.
- This function provides detailed information about the transaction.
- Returns an ErrorCode if there is an error, or an array of transaction details on success.
Definition
Section titled “Definition”int64_t etxn_details ( uint32_t write_ptr, uint32_t write_len);function etxn_details(): ErrorCode | ByteArrayExample
Section titled “Example”uint8_t emitdet[105];int64_t result = etxn_details(emitdet, 105);if (result != 105) rollback("Etxndetails failed.", 19, 1);const emitdet = etxn_details()if (typeof emitdet === 'string || emitdet.length != 105) rollback("Etxndetails failed.", 1)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| write_ptr | uint32_t | Pointer to the buffer receiving the sfEmitDetails record |
| write_len | uint32_t | Length of the buffer |
No parameters for JavaScript
Return Code
Section titled “Return Code”| Type | Description |
|---|---|
| int64_t | The number of bytes written. |
| Type | Description |
|---|---|
| ErrorCode | ByteArray |