Skip to main content

TransferPolicy

open class TransferPolicy : Disposable, AutoCloseable, TransferPolicyInterface

A typed view of an on-chain 0x2::transfer_policy::TransferPolicy<T> object.

Functions

NameSummary
balanceopen override fun balance(): ULong
IOTA balance collected by the policy, in nanos.
close@Synchronized
open override fun close()
destroyopen override fun destroy()
idopen override fun id(): ObjectId
The object's ID.
rulesopen override fun rules(): List<String>
Fully-qualified type names of the rules attached to this policy.
toStringopen override fun toString(): String

Companion object functions

NameSummary
tryFromBcsfun tryFromBcs(bytes: ByteArray): TransferPolicy
Decode from BCS bytes, without validating the on-chain type tag.
tryFromObjectWithTypefun tryFromObjectWithType(object: Object, typeParam: TypeTag): TransferPolicy
Decode from an on-chain object, validating its Move type tag, including that its type parameter equals type_param.