List owned objects
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Lists objects owned by an address.
gRPC method: sui.rpc.v2.StateService.ListOwnedObjects (unary).
This is a gRPC method (HTTP/2, Protocol Buffers), not a REST endpoint. The request and response bodies below are shown in the proto3 JSON form that tools such as grpcurl and Postman accept and print. Pass your NOWNodes API key as the api-key gRPC metadata header. Proto files: sui/rpc/v2/state_service.proto.
Example grpcurl request:
grpcurl \
-insecure \
-H 'api-key: YOUR_API_KEY' \
-emit-defaults \
-proto './sui-apis-grpc/proto/sui/rpc/v2/state_service.proto' \
-import-path './sui-apis-grpc/proto' \
-d '{"owner": "0xOWNER_ADDRESS", "pageSize": 50}' \
'sui-grpc.nownodes.io' \
sui.rpc.v2.StateService.ListOwnedObjectsBody
ownerstringRequired. The address of the account that owns the objects.
pageSizeinteger<uint32>The maximum number of entries return. The service may return fewer than this value.
If unspecified, at most 50 entries will be returned.
The maximum value is 1000; values above 1000 will be coerced to 1000.
pageTokenstring<byte>A page token, received from a previous ListOwnedObjects call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListOwnedObjects must
match the call that provided the page token. Base64-encoded bytes.
readMaskobjectMask specifying which fields to read.
If no mask is specified, defaults to object_id,version,object_type. Read mask: list of field paths to return, in snake_case (e.g. "object_id", "version", "digest"). Nested fields use dots (e.g. "effects.status").
objectTypestringOptional type filter to limit the types of objects listed.
Providing an object type with no type params will return objects of that
type with any type parameter, e.g. 0x2::coin::Coin will return all
Coin<T> objects regardless of the type parameter T. Providing a type
with a type param will restrict the returned objects to only those objects
that match the provided type parameters, e.g.
0x2::coin::Coin<0x2::sui::SUI> will only return Coin<SUI> objects.
Response
Successful response.
gRPC error. The status code (e.g. UNAUTHENTICATED, INVALID_ARGUMENT, NOT_FOUND) is returned in the grpc-status trailer, details in grpc-message.