- Read a 34 byte Keylet from the
- Read a 32 byte Keylet from the
- Search the ledger for the first (lowest) Keylet of this type in this range.
- If any matching Keylet is found, write it to
int64_t ledger_keylet ( uint32_t write_ptr, uint32_t write_len, uint32_t lread_ptr, uint32_t lread_len, uint32_t hread_ptr, uint32_t hread_len );
|write_ptr||uint32_t||Pointer to a buffer to store the output serialised Keylet. .|
|write_len||uint32_t||Length of the output buffer. Must be 34 bytes|
|lread_ptr||uint32_t||Pointer to the 34 byte serialised Keylet that represents the lower boundary of the Keylet range to search.|
|lread_len||uint32_t||Always 34 bytes|
|hread_ptr||uint32_t||Pointer to the 34 byte serialised Keylet that represents the upper boundary of the Keylet range to search.|
|hread_len||uint32_t||Always 34 bytes|
|int64_t||The number of bytes written (34 bytes) on success.|
If negative, an error:
- pointers/lengths specified outside of hook memory.
- One or more of the provided Keylets was not a valid serialised Keylet
- The two provided Keylets were not of the same Keylet Type.
- No matching Keylet was found in the specified range.