Class PricingMode
Pricing mode of a Transaction.
Inherited Members
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public class PricingMode
Methods
| Edit this page View SourceFixed(byte, byte)
The cost of the transaction is determined by the cost table, per the transaction category.
Declaration
public static IPricingMode Fixed(byte gasPriceTolerance = 1, byte additionalComputationFactor = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| byte | gasPriceTolerance | Defaults to 1. Gas price tolerance admitted. |
| byte | additionalComputationFactor | Defaults to 0. Each unit increases the wasm lane the transaction is executed in.. |
Returns
| Type | Description |
|---|---|
| IPricingMode |
PaymentLimited(ulong, byte, bool)
The original payment model, where the creator of the transaction specifies how much they will pay, at what gas price.
Declaration
public static IPricingMode PaymentLimited(ulong paymentAmount, byte gasPriceTolerance = 1, bool standardPayment = true)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | paymentAmount | Amount in motes to pay for the transaction. |
| byte | gasPriceTolerance | Defaults to 1. Gas price tolerance admitted. |
| bool | standardPayment | Defaults to true. Indicates if this is a standar payment (non-standard payments are handled via wasm code). |
Returns
| Type | Description |
|---|---|
| IPricingMode |
Prepaid(string)
The payment for this transaction was previously pre-paid, as proven by the receipt hash.
Declaration
public static IPricingMode Prepaid(string receipt)
Parameters
| Type | Name | Description |
|---|---|---|
| string | receipt | Pre-paid receipt. |
Returns
| Type | Description |
|---|---|
| IPricingMode |