Skip to main content

IOwner

Interface implemented by GraphQL types representing entities that can own objects. Object owners are identified by an address which can represent either the public key of an account or another object. The same address can only refer to an account or an object, never both, but it is not possible to know which up-front.

interface IOwner {
address: IotaAddress!
objects(
first: Int
after: String
last: Int
before: String
filter: ObjectFilter
): MoveObjectConnection!
balance(
type: String
): Balance
balances(
first: Int
after: String
last: Int
before: String
): BalanceConnection!
coins(
first: Int
after: String
last: Int
before: String
type: String
): CoinConnection!
stakedIotas(
first: Int
after: String
last: Int
before: String
): StakedIotaConnection!
}

Fields

IOwner.address ● IotaAddress! non-null scalar

IOwner.objects ● MoveObjectConnection! non-null object

Objects owned by this object or address, optionally filter-ed.

IOwner.objects.first ● Int scalar
IOwner.objects.after ● String scalar
IOwner.objects.last ● Int scalar
IOwner.objects.before ● String scalar
IOwner.objects.filter ● ObjectFilter input

IOwner.balance ● Balance object

Total balance of all coins with marker type owned by this object or address. If type is not supplied, it defaults to 0x2::iota::IOTA.

IOwner.balance.type ● String scalar

IOwner.balances ● BalanceConnection! non-null object

The balances of all coin types owned by this object or address.

IOwner.balances.first ● Int scalar
IOwner.balances.after ● String scalar
IOwner.balances.last ● Int scalar
IOwner.balances.before ● String scalar

IOwner.coins ● CoinConnection! non-null object

The coin objects for this object or address.

type is a filter on the coin's type parameter, defaulting to 0x2::iota::IOTA.

IOwner.coins.first ● Int scalar
IOwner.coins.after ● String scalar
IOwner.coins.last ● Int scalar
IOwner.coins.before ● String scalar
IOwner.coins.type ● String scalar

IOwner.stakedIotas ● StakedIotaConnection! non-null object

The 0x3::staking_pool::StakedIota objects owned by this object or address.

IOwner.stakedIotas.first ● Int scalar
IOwner.stakedIotas.after ● String scalar
IOwner.stakedIotas.last ● Int scalar
IOwner.stakedIotas.before ● String scalar

Implemented By

Address object ● Coin object ● CoinMetadata object ● MoveObject object ● MovePackage object ● Object object ● Owner object ● StakedIota object