ObjectInterface
type ObjectInterface
An object on the IOTA blockchain
BCS
The BCS serialized form for this type is defined by the following ABNF:
```text object = object-data owner digest u64 ```
type ObjectInterface interface {
// Interpret this object as a move package
AsPackage() *MovePackage
// Try to interpret this object as a move package
AsPackageOpt() **MovePackage
// Interpret this object as a move struct
AsStruct() MoveStruct
// Try to interpret this object as a move struct
AsStructOpt() *MoveStruct
// Return this object's data
Data() *ObjectData
// Calculate the digest of this `Object`
//
// This is done by hashing the BCS bytes of this `Object` prefixed
Digest() *ObjectDigest
// Return this object's id
Id() *ObjectId
// Return this object's reference
ObjectRef() ObjectReference
// Return this object's type
ObjectType() *ObjectType
// Return this object's owner
Owner() *Owner
// Return the digest of the transaction that last modified this object
PreviousTransaction() *TransactionDigest
// Return the storage rebate locked in this object
//
// Storage rebates are credited to the gas coin used in a transaction that
// deletes this object.
StorageRebate() uint64
// Return this object's version
Version() *Version
}