otxn_slot
Behaviour
Section titled “Behaviour”- Emplace the originating transaction into the slot specified or into a new slot if no slot is specified
Definition
Section titled “Definition”int64_t otxn_slot ( uint32_t slot_no);function otxn_slot(slotno: number): ErrorCode | ByteArrayExample
Section titled “Example”int64_t otxn_slot_no = otxn_slot(0);const otxn_slot_no = otxn_slot(0)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| slot_no | uint32_t | The slot number to emplace into, or 0 if you wish to pick the next available. |
| Name | Type | Description |
|---|---|---|
| slotno | number | The slot number to look up. |
Return Code
Section titled “Return Code”| Type | Description |
|---|---|
| int64_t | The slot the otxn was placed in |
| Type | Description |
|---|---|
| ErrorCode | ByteArray | Returns the value associated with the specified slot number as an array of numbers, or an ErrorCode if the lookup fails. |