Skip to content

meta_slot

  • If the Hook is being Weakly Executed then emplace the metadata of the originating transaction into the slot specified or into a new slot if no slot is specified
int64_t meta_slot (
uint32_t slot_no
);
int64_t meta_slot_no =
meta_slot(0);
NameTypeDescription
slot_nouint32_tThe slot number to emplace into, or 0 if you wish to pick the next available.
TypeDescription
int64_t

The slot the otxn was placed in

INVALID_ARGUMENT
- specified slot number exceeds the largest possible slot number

NO_FREE_SLOTS
- the request could not granted because no free slot was avaialble to place the originating transaction into.

PREREQUISITE_NOT_MET
- The hook is being Strongly Executed and therefore no transactional metadata is available.