STRUCT

priority_state_v1

Return value of priority_check_v1 query. It is used to represent how to prioritize a transaction: if multiple transactions are in queue, the one with the highest priority value will be executed first.

struct priority_state_v1 {

ID of account which wants to push the transaction forward. A transaction can be multi-party, it's up to the dapp to decide who's the "main actor" of the transaction.

account_id: byte_array?;

Number of points currently associated with the account. If this is lower than tx_cost_point, the transaction will be rejected.

account_points: integer;

Number of points which this transaction costs. If this is higher than account_points, the transaction will be rejected.

If many transactions from this account are in queue, the costs are summed up to see if the account would be able to complete them all.

tx_cost_points: integer;

priority, higher is better

priority: decimal;
}
© 2024 Chromia