These docs are for v1.3.0. Click to read the latest docs for v1.6.

Transaction

group transactioncppapi

Type-safe C++ wrappers for transaction C API.

There are some methods from the Transaction C API that can be used directly from C++

Summary

MembersDescriptions
public inline action get_action(uint32_t type,uint32_t index)Retrieve the indicated action from the active transaction.
public inline void check_auth(const bytes & trx_packed,const vector< permission_level > & permissions)
public inline void check_auth(const char * serialized_transaction,size_t size,const vector< permission_level > & permissions)
public inline void check_auth(const transaction & trx,const vector< permission_level > & permissions)
class eosio::transaction_header
class eosio::transaction
class eosio::deferred_transaction

Members

public inline action get_action(uint32_t type,uint32_t index)

Retrieve the indicated action from the active transaction.

Parameters

  • type - 0 for context free action, 1 for action

  • index - the index of the requested action

Returns

the indicated action

public inline void check_auth(const bytes & trx_packed,const vector< permission_level > & permissions)

public inline void check_auth(const char * serialized_transaction,size_t size,const vector< permission_level > & permissions)

public inline void check_auth(const transaction & trx,const vector< permission_level > & permissions)

class eosio::transaction_header

Summary

MembersDescriptions
public time expiration
public region_id region
public uint16_t [ref_block_num](docs/ transactioncppapi#classeosio_1_1transaction__header_1a7bd1f446f3a9a212183787d223d89766)
public uint32_t [ref_block_prefix](docs/ transactioncppapi#classeosio_1_1transaction__header_1aed4b528cd8a73ac9fa9cb5b7c429f90c)
public unsigned_int net_usage_words
public unsigned_int kcpu_usagenumber of 8 byte words this transaction can serialize into after compressions
public unsigned_int delay_secnumber of CPU usage units to bill transaction for
public inline transaction_header(time exp,region_id r)

Members

public uint16_t [ref_block_num](docs/ transactioncppapi#classeosio_1_1transaction__header_1a7bd1f446f3a9a212183787d223d89766)

public uint32_t [ref_block_prefix](docs/ transactioncppapi#classeosio_1_1transaction__header_1aed4b528cd8a73ac9fa9cb5b7c429f90c)

number of 8 byte words this transaction can serialize into after compressions

number of CPU usage units to bill transaction for

public inline transaction_header(time exp,region_id r)

class eosio::transaction

class eosio::transaction
  : public eosio::transaction_header

Summary

MembersDescriptions
public vector< action>context_free_actions
public vector< action>actions
public inline transaction(time exp,region_id r)
public inline void send(uint64_t sender_id,account_name payer) const

Members

public vector< action>actions

public inline transaction(time exp,region_id r)

public inline void send(uint64_t sender_id,account_name payer) const

class eosio::deferred_transaction

class eosio::deferred_transaction
  : public eosio::transaction

Summary

MembersDescriptions
public uint128_t [sender_id](docs/ transactioncppapi#classeosio_1_1deferred__transaction_1af186b02b4546093ed88592aef085b0e4)
public account_name sender
public account_name payer
public time execute_after

Members

public uint128_t [sender_id](docs/ transactioncppapi#classeosio_1_1deferred__transaction_1af186b02b4546093ed88592aef085b0e4)