Class BlockReward
- Namespace
- Concordium.Sdk.Types
- Assembly
- Concordium.Sdk.dll
Reward for including transactions in a block.
public sealed record BlockReward : ISpecialEvent, IEquatable<BlockReward>
- Inheritance
-
BlockReward
- Implements
- Inherited Members
Constructors
BlockReward(CcdAmount, CcdAmount, CcdAmount, CcdAmount, CcdAmount, AccountAddress, AccountAddress)
Reward for including transactions in a block.
public BlockReward(CcdAmount TransactionFees, CcdAmount OldGasAccount, CcdAmount NewGasAccount, CcdAmount BakerReward, CcdAmount FoundationCharge, AccountAddress Baker, AccountAddress FoundationAccount)
Parameters
TransactionFeesCcdAmountTotal amount of transaction fees in the block.
OldGasAccountCcdAmountPrevious balance of the GAS account.
NewGasAccountCcdAmountNew balance of the GAS account.
BakerRewardCcdAmountThe amount of CCD that goes to the baker.
FoundationChargeCcdAmountThe amount of CCD that goes to the foundation.
BakerAccountAddressThe account address where the baker receives the reward.
FoundationAccountAccountAddressThe account address where the foundation receives the tax.
Properties
Baker
The account address where the baker receives the reward.
public AccountAddress Baker { get; init; }
Property Value
BakerReward
The amount of CCD that goes to the baker.
public CcdAmount BakerReward { get; init; }
Property Value
FoundationAccount
The account address where the foundation receives the tax.
public AccountAddress FoundationAccount { get; init; }
Property Value
FoundationCharge
The amount of CCD that goes to the foundation.
public CcdAmount FoundationCharge { get; init; }
Property Value
NewGasAccount
New balance of the GAS account.
public CcdAmount NewGasAccount { get; init; }
Property Value
OldGasAccount
Previous balance of the GAS account.
public CcdAmount OldGasAccount { get; init; }
Property Value
TransactionFees
Total amount of transaction fees in the block.
public CcdAmount TransactionFees { get; init; }