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

int64_t xpop_slot (
  	uint32_t slot_no_tx,
  	uint32_t slot_no_meta
);

Example

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

Parameters

NameTypeDescription
slot_no_txuint32_tThe slot number to emplace the tx blob into.
slot_no_metauin32_tThe slot number to emplace the meta blob into.

Return Code

TypeDescription
int64_tPREREQUISITE_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.