Skip to main content

Address

type Address implements Node, IAddressable {
address: SuiAddress!
addressAt(
rootVersion: UInt53
checkpoint: UInt53
): Address
asObject: Object
asTransactionObject(
transactionDigest: String
): TransactionObject
balance(
coinType: String!
): Balance
balances(
first: Int
after: String
last: Int
before: String
): BalanceConnection
defaultNameRecord: NameRecord
derivedObject(
name: DynamicFieldName!
version: UInt53
rootVersion: UInt53
atCheckpoint: UInt53
): MoveObject
dynamicField(
name: DynamicFieldName!
): DynamicField
dynamicFields(
first: Int
after: String
last: Int
before: String
): DynamicFieldConnection
dynamicObjectField(
name: DynamicFieldName!
): DynamicField
id: ID!
multiGetBalances(
keys: [String!]!
): [Balance!]
multiGetDerivedObjects(
keys: [DerivedObjectKey!]!
): [MoveObject]!
multiGetDynamicFields(
keys: [DynamicFieldName!]!
): [DynamicField]!
multiGetDynamicObjectFields(
keys: [DynamicFieldName!]!
): [DynamicField]!
objects(
first: Int
after: String
last: Int
before: String
filter: ObjectFilter
): MoveObjectConnection
transactions(
first: Int
after: String
last: Int
before: String
relation: AddressTransactionRelationship
filter: TransactionFilter
): TransactionConnection
}

Fields​

Address.address ● SuiAddress! non-null scalar​

The Address' identifier, a 32-byte number represented as a 64-character hex string, with a lead "0x".

Address.addressAt ● Address object​

Fetch the address as it was at a different root version, or checkpoint.

If no additional bound is provided, the address is fetched at the latest checkpoint known to the RPC.

Address.addressAt.rootVersion ● UInt53 scalar​
Address.addressAt.checkpoint ● UInt53 scalar​

Address.asObject ● Object object​

Attempts to fetch the object at this address.

Address.asTransactionObject ● TransactionObject union​

How this address (interpreted as an object ID) was referenced by a specific transaction.

Returns null if the object was not referenced, or was present only as a non-object marker variant of unchanged consensus input (e.g. cancelled, stream-ended, per-epoch).

The transactionDigest argument may be omitted when the query is scoped under a transaction context (e.g. a parent Transaction, TransactionEffects, or Event); the field then resolves against the in-scope transaction.

Passing an explicit transactionDigest other than the in-scope transaction in subscription context is not supported; for arbitrary transaction lookups, use the indexed Query API.

Address.asTransactionObject.transactionDigest ● String scalar​

Address.balance ● Balance object​

Fetch the balance for coinType (e.g. 0x2::sui::SUI) owned by this address.

The result includes the total balance, the balance held in coin objects, and the balance held in the address's balance accumulator. Returns null when no checkpoint is set in scope (e.g. execution scope). If this address has no balance of that type, all three values are zero.

Address.balance.coinType ● String! non-null scalar​

Address.balances ● BalanceConnection object​

Balances held by this address, grouped by coin type.

Each result includes the total balance, the balance held in coin objects, and the balance held in the address's balance accumulator.

Address.balances.first ● Int scalar​
Address.balances.after ● String scalar​
Address.balances.last ● Int scalar​
Address.balances.before ● String scalar​

Address.defaultNameRecord ● NameRecord object​

The domain explicitly configured as the default Name Service name for this address.

Address.derivedObject ● MoveObject object​

Access a derived object using its key.

The object can be bounded by at most one of version, rootVersion, or atCheckpoint, with the same semantics as Query.object.

Returns null if the derived object has not been claimed, has been deleted, or is not available in the store.

Address.derivedObject.name ● DynamicFieldName! non-null input​
Address.derivedObject.version ● UInt53 scalar​
Address.derivedObject.rootVersion ● UInt53 scalar​
Address.derivedObject.atCheckpoint ● UInt53 scalar​

Address.dynamicField ● DynamicField object​

Access a dynamic field on an object using its type and BCS-encoded name.

Returns null if a dynamic field with that name could not be found attached to the object with this address.

Address.dynamicField.name ● DynamicFieldName! non-null input​

Address.dynamicFields ● DynamicFieldConnection object​

Dynamic fields owned by this address.

The address must correspond to an object (account addresses cannot own dynamic fields), but that object may be wrapped.

Address.dynamicFields.first ● Int scalar​
Address.dynamicFields.after ● String scalar​
Address.dynamicFields.last ● Int scalar​
Address.dynamicFields.before ● String scalar​

Address.dynamicObjectField ● DynamicField object​

Access a dynamic object field on an object using its type and BCS-encoded name.

Returns null if a dynamic object field with that name could not be found attached to the object with this address.

Address.dynamicObjectField.name ● DynamicFieldName! non-null input​

Address.id ● ID! non-null scalar​

The address's globally unique identifier, which can be passed to Query.node to refetch it.

Address.multiGetBalances ● [Balance!] list object​

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

Each result includes the total balance, the balance held in coin objects, and the balance held in the address's balance accumulator. Returns null when no checkpoint is set in scope (e.g. execution scope). If this address has no balance of a given type, all three values are zero for that type.

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

Address.multiGetDerivedObjects ● [MoveObject]! non-null object​

Access derived objects using their keys and optional version bounds.

Each key can specify at most one of version, rootVersion, or atCheckpoint, with the same semantics as Query.object. Returns a list that is guaranteed to be the same length as keys. If a derived object has not been claimed, has been deleted, or is not available in the store, its corresponding entry is null.

Address.multiGetDerivedObjects.keys ● [DerivedObjectKey!]! non-null input​

Address.multiGetDynamicFields ● [DynamicField]! non-null object​

Access dynamic fields on an object using their types and BCS-encoded names.

Returns a list of dynamic fields that is guaranteed to be the same length as keys. If a dynamic field in keys could not be found in the store, its corresponding entry in the result will be null.

Address.multiGetDynamicFields.keys ● [DynamicFieldName!]! non-null input​

Address.multiGetDynamicObjectFields ● [DynamicField]! non-null object​

Access dynamic object fields on an object using their types and BCS-encoded names.

Returns a list of dynamic object fields that is guaranteed to be the same length as keys. If a dynamic object field in keys could not be found in the store, its corresponding entry in the result will be null.

Address.multiGetDynamicObjectFields.keys ● [DynamicFieldName!]! non-null input​

Address.objects ● MoveObjectConnection object​

Objects owned by this address, optionally filtered by type.

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

Address.transactions ● TransactionConnection object​

Transactions associated with this address.

Similar behavior to the transactions in Query but supporting the additional AddressTransactionRelationship filter, which defaults to SENT.

Address.transactions.first ● Int scalar​
Address.transactions.after ● String scalar​
Address.transactions.last ● Int scalar​
Address.transactions.before ● String scalar​
Address.transactions.relation ● AddressTransactionRelationship enum​
Address.transactions.filter ● TransactionFilter input​

Interfaces​

Node interface​

An interface implemented by types that can be uniquely identified by a globally unique ID, following the GraphQL Global Object Identification specification.

IAddressable interface​

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.

Returned By​

address query ● multiGetAddresses query

Member Of​

Address object ● AddressOwner object ● BalanceChange object ● BalanceWithdraw object ● CoinMetadata object ● ConsensusAddressOwner object ● DynamicField object ● Event object ● GasInput object ● IAddressable interface ● MoveObject object ● MovePackage object ● MoveValue object ● NameRecord object ● Object object ● ObjectOwner object ● Transaction object