요금GitHub대시보드

Sui

sui.rpc.v2.StateService/ListOwnedObjects40 크레딧

List the objects an address owns

네트워크: sui

매개변수

이름타입설명
ownerstringOwner address.
page_sizeuint32Maximum number of items per page. The server applies its own default and cap. (선택)
page_tokenbytesThe next_page_token of the previous response, to fetch the next page (base64 in JSON). (선택)
read_maskgoogle.protobuf.FieldMaskFields of every Object to return. (선택)
object_typestringOnly return objects of this Move type, for example 0x2::coin::Coin<0x2::sui::SUI>. (선택)

반환값

타입

ListOwnedObjectsResponse

objects: array of Object and next_page_token (omitted on the last page).

코드 예제

# the key of the endpoint goes in the x-token header; add -proto <file> when the node has no gRPC reflection
grpcurl \
  -H 'x-token: 7c9e6679-7425-40de-944b-e07fc1f90ae7' \
  -d '{
  "owner": "0x5ac7c1d6b0a8b3a3e9f2c4d1e7b6a58f3c2d1e0f9a8b7c6d5e4f3a2b1c0d9e8f",
  "page_size": 10,
  "read_mask": "object_id,version,object_type"
}' \
  grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
  sui.rpc.v2.StateService/ListOwnedObjects