UploadRelayTipConfig class

Configuration for tipping the upload relay operator.

Retrieved from the relay's /v1/tip-config endpoint.

Corresponds to the TS SDK's UploadRelayTipConfig.

Annotations

Constructors

UploadRelayTipConfig({required String address, required TipStrategy kind, BigInt? max})
const

Properties

address String
Sui address of the relay operator to receive the tip.
final
hashCode int
The hash code for this object.
no setterinherited
kind TipStrategy
Tip calculation strategy.
final
max BigInt?
Optional maximum tip amount in MIST.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateTip(int blobSizeBytes) BigInt
Calculate the effective tip, capped at max if set.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromRelayResponse(dynamic json) UploadRelayTipConfig?
Parse from the relay /v1/tip-config response.