xpop_slot

Serialize and output the xpop transaction blob and metadata

Behaviour

  • Locate the xpop blob on the Import transaction

  • Emplace the located tx and meta objects into the slots specified

Definition

C

int64_t xpop_slot (
  	uint32_t slot_no_tx,
  	uint32_t slot_no_meta
);

Example

C

int64_t bytes_written = 
    xpop_slot(1, 2); // assumes a txn is slotted into slot=1 meta is slotted into slot=2

Parameters

Name
Type
Description

slot_no_tx

uint32_t

The slot number to emplace the tx blob into.

slot_no_meta

uin32_t

The slot number to emplace the meta blob into.

Return Code

Type
Description

int64_t

PREREQUISITE_NOT_MET - The originating tx type was not Import. NO_FREE_SLOTS - The API would require a new slot to be allocated but the Hook is already at the maximum number of slots.

Last updated