Skip to content

Fees (Class)

Transaction fees specification.

Pairs an absolute fee amount in sompi with an optional FeeSource indicating which party (sender or receiver) bears the cost.

__new__

__new__(amount: int, source: Optional[FeeSource]) -> Fees

Create a new Fees specification.

PARAMETER DESCRIPTION
amount

The fee amount in sompi.

TYPE: int

source

Optional FeeSource indicating who pays the fee. If None, defaults to no explicit source.

TYPE: Optional[FeeSource]

RETURNS DESCRIPTION
Fees

A new Fees instance.

TYPE: Fees