Casper.Network.SDK
Show / Hide Table of Contents

Class PricingMode

Pricing mode of a Transaction.

Inheritance
object
PricingMode
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public class PricingMode

Methods

| Edit this page View Source

Fixed(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
| Edit this page View Source

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
| Edit this page View Source

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
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC