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
TransactionFees
CcdAmountTotal amount of transaction fees in the block.
OldGasAccount
CcdAmountPrevious balance of the GAS account.
NewGasAccount
CcdAmountNew balance of the GAS account.
BakerReward
CcdAmountThe amount of CCD that goes to the baker.
FoundationCharge
CcdAmountThe amount of CCD that goes to the foundation.
Baker
AccountAddressThe account address where the baker receives the reward.
FoundationAccount
AccountAddressThe 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; }