본문으로 건너뛰기

eosio::transaction_header

Module: Contracts API / Transaction

Contains details about the transaction. More...

#include <transaction.hpp>

Inherited by eosio::transaction

Public Functions

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

Name
time_point_secexpiration
uint16_tref_block_num
uint32_tref_block_prefix
unsigned_intmax_net_usage_words
uint8_tmax_cpu_usage_ms
number of 8 byte words this transaction can serialize into after compressions
unsigned_intdelay_sec
number of CPU usage units to bill transaction for

Detailed Description

class eosio::transaction_header;

Contains details about the transaction.

Class transaction_header contains details about the transaction

Public Functions Documentation

function transaction_header

inline 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.

Construct a new transaction_header with an expiration of now + 60 seconds.

Public Attributes Documentation

variable expiration

time_point_sec expiration;

variable ref_block_num

uint16_t ref_block_num;

variable ref_block_prefix

uint32_t ref_block_prefix;

variable max_net_usage_words

unsigned_int max_net_usage_words = 0UL;

variable max_cpu_usage_ms

uint8_t max_cpu_usage_ms = 0UL;

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

variable delay_sec

unsigned_int delay_sec = 0UL;

number of CPU usage units to bill transaction for


Updated on 2022-12-05 at 15:38:07 +0000