eosio::transaction
Module: Contracts API / Transaction
#include <transaction.hpp>
Inherits from eosio::transaction_header
Public Functions
Name | |
---|---|
transaction(time_point_sec exp =time_point_sec(current_time_point())+60) | |
void | send(const uint128_t & sender_id, name payer, bool replace_existing =false) const |
Public Attributes
Name | |
---|---|
std::vector< action > | context_free_actions |
std::vector< action > | actions |
extensions_type | transaction_extensions |
Additional inherited members
Public Functions inherited from eosio::transaction_header
Name | |
---|---|
transaction_header(time_point_sec exp =time_point_sec(current_time_point())+60) Construct a new transaction_header object initialising the transaction header expiration to now + 60 seconds. |
Public Attributes inherited from eosio::transaction_header
Name | |
---|---|
time_point_sec | expiration |
uint16_t | ref_block_num |
uint32_t | ref_block_prefix |
unsigned_int | max_net_usage_words |
uint8_t | max_cpu_usage_ms number of 8 byte words this transaction can serialize into after compressions |
unsigned_int | delay_sec number of CPU usage units to bill transaction for |
Detailed Description
class eosio::transaction;
Class transaction contains the actions, context_free_actions and extensions type for a transaction
Public Functions Documentation
function transaction
inline transaction(
time_point_sec exp =time_point_sec(current_time_point())+60
)
Construct a new transaction with an expiration of now + 60 seconds.
function send
inline void send(
const uint128_t & sender_id,
name payer,
bool replace_existing =false
) const
Parameters:
- sender_id - ID of sender
- payer - Account paying for RAM
- replace_existing - Defaults to false, if this is
0
/false then if the provided sender_id is already in use by an in-flight transaction from this contract, which will be a failing assert. If1
then transaction will atomically cancel/replace the inflight transaction
Sends this transaction, packs the transaction then sends it as a deferred transaction
Writes the symbol_code as a string to the provided char buffer
Public Attributes Documentation
variable context_free_actions
std::vector< action > context_free_actions;
variable actions
std::vector< action > actions;
variable transaction_extensions
extensions_type transaction_extensions;
Updated on 2022-12-05 at 15:38:07 +0000