RefScriptFee

scalus.cardano.ledger.RefScriptFee
See theRefScriptFee companion class
object RefScriptFee

Conway tiered reference-script fee (tierRefScriptFee in cardano-ledger).

The first 25,600 bytes cost costPerByte lovelace each; each subsequent stride costs 1.2 times the previous stride's per-byte price. The floor of the exact rational total is charged.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def fee(sizeInBytes: Int, costPerByte: Long): Coin

Fee for sizeInBytes total reference-script bytes at base price costPerByte.

Fee for sizeInBytes total reference-script bytes at base price costPerByte.

Attributes

Throws
ArithmeticException

if the final fee exceeds the range of Coin.