Transaction

Classes

Type

Name

class

arisen::transaction_header
Contains details about the transaction.

class

arisen::transaction

struct

arisen::onerror

Functions

Detailed Description

An inline message allows one contract to send another contract a message which is processed immediately after the current message's processing ends such that the success or failure of the parent transaction is dependent on the success of the message. If an inline message fails in processing then the whole tree of transactions and actions rooted in the block will me marked as failing and none of effects on the database will persist. Inline actions and Deferred transactions must adhere to the permissions available to the parent transaction or, in the future, delegated to the contract account for future use.

function get_action

action arisen::get_action(
    uint32_t type,
    uint32_t index
)

function read_transaction

size_t arisen::read_transaction(
    char * ptr,
    size_t sz
)

function cancel_deferred

int arisen::cancel_deferred(
    const uint128_t & sender_id
)

Returns:

id = 0xffffffffffffffff
cancel_deferred( id );

function transaction_size

size_t arisen::transaction_size()

function tapos_block_num

int arisen::tapos_block_num()
int tbn = tapos_block_num();

function tapos_block_prefix

int arisen::tapos_block_prefix()

Gets the block prefix used for TAPOS on the currently executing transaction.

Returns:
block prefix used for TAPOS on the currently executing transaction Example:

int tbp = tapos_block_prefix();

function expiration

uint32_t arisen::expiration()

Gets the expiration of the currently executing transaction.

Gets the expiration of the currently executing transaction.

Returns:

expiration of the currently executing transaction in seconds since Unix epoch

function get_context_free_data

int arisen::get_context_free_data(
    uint32_t index,
    char * buff,
    size_t size
)

Retrieve the signed_transaction.context_free_data[index].

Parameters:

index - the index of the context_free_data entry to retrieve
buff - output buff of the context_free_data entry
size - amount of context_free_data[index] to retrieve into buff, 0 to report required size
Returns:

size copied, or context_free_data[index].size() if 0 passed for size, or -1 if index not valid