Skip to main content

IAddressable

Interface implemented by GraphQL types representing entities that are identified by an address.

An address uniquely represents either the public key of an account, or an object's ID, but never both. It is not possible to determine which type an address represents up-front. If an object is wrapped, its contents will not be accessible via its address, but it will still be possible to access other objects it owns.

interface IAddressable {
address: SuiAddress!
balance(
coinType: String!
): Balance
balances(
first: Int
after: String
last: Int
before: String
): BalanceConnection
multiGetBalances(
keys: [String!]!
): [Balance!]!
objects(
first: Int
after: String
last: Int
before: String
filter: ObjectFilter
): MoveObjectConnection
}

Fields

IAddressable.address ● SuiAddress! non-null scalar

IAddressable.balance ● Balance object

Fetch the total balance for coins with marker type coinType (e.g. 0x2::sui::SUI), owned by this address.

If the address does not own any coins of that type, a balance of zero is returned.

IAddressable.balance.coinType ● String! non-null scalar

IAddressable.balances ● BalanceConnection object

Total balance across coins owned by this address, grouped by coin type.

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

IAddressable.multiGetBalances ● [Balance!]! non-null object

Fetch the total balances keyed by coin types (e.g. 0x2::sui::SUI) owned by this address.

If the address does not own any coins of a given type, a balance of zero is returned for that type.

IAddressable.multiGetBalances.keys ● [String!]! non-null scalar

IAddressable.objects ● MoveObjectConnection object

Objects owned by this address, optionally filtered by type.

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

Implemented By

Address object ● DynamicField object ● MoveObject object ● MovePackage object ● Object object