Load the originating transaction into a slot

Behaviour

  • Emplace the originating transaction into the slot specified or into a new slot if no slot is specified

Definition

int64_t otxn_slot (
    uint32_t slot_no
);

Example

int64_t otxn_slot_no = 
        otxn_slot(0);

Parameters

Name

Type

Description

slot_no

uint32_t

The slot number to emplace into, or 0 if you wish to pick the next available.

Return Code

Type

Description

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.