Sui.

Post

Share your knowledge.

Meaning.Sui.
Jul 27, 2025
Expert Q&A

ListOwnedObjects method on LiveDataService gRPC returns an error #22558

Calling the gRPC ListOwnedObjects returns an error

grpcurl -d '{"owner": "0xc75ff8f7215e3dc9671ae2ef85c519414b886bff4e0f6edb5ff7b8d3d9e648fa"}' fullnode.testnet.sui.io:443 sui.rpc.v2alpha.LiveDataService/ListOwnedObjects


Returns

ERROR: Code: NotFound Message:

  • Sui
1
3
Share
Comments
.

Answers

3
harry phan.
Jul 27 2025, 12:03

Yes you can! you'll just need to enable the rpc.enable-indexing: true in the node's yaml config before startup.

Also note that these apis are pre-stable but will become stabilized over the next few months. See https://docs.sui.io/guides/developer/getting-started/data-serving#grpc-api for more details on the timeline

9
Comments
.
Benjamin XDV.
Jul 29 2025, 13:47

Quick Fixes

  1. Use Correct gRPC Method:
    The ListOwnedObjects method is deprecated. Switch to:

    grpcurl -d '{"owner": "0x..."}' fullnode.testnet.sui.io:443 sui.rpc.v2.Read/GetOwnedObjects
    
  2. Enable gRPC on Your Node:
    Add to fullnode.yaml:

    grpc:
      enabled: true
      port: 9001
    
  3. Check Node Sync:

    curl -s http://localhost:9184/metrics | grep "checkpoint_height"
    

Why This Happens

  • v2alpha is outdated (use v2 or v1)
  • Your node might not expose gRPC by default

Working Example

grpcurl -plaintext -d '{"owner": "0x..."}' localhost:9001 sui.rpc.v2.Read/GetOwnedObjects
4
Comments
.
Bekky.
Bekky1762
Jul 30 2025, 12:26

Root Cause

  • The v2alpha endpoint is deprecated
  • Newer nodes disable it by default

Fix (Use Current API)

# Use the stable v2 endpoint instead:
grpcurl -plaintext -d '{
  "owner": "0xc75ff8f7215e3dc9671ae2ef85c519414b886bff4e0f6edb5ff7b8d3d9e648fa"
}' fullnode.testnet.sui.io:443 sui.rpc.v2.Read/GetOwnedObjects

If Still Needed (Legacy Support)

  1. Enable v2alpha in fullnode.yaml:
    grpc:
      enabled-legacy-methods: true
    
  2. Restart node:
    sudo systemctl restart sui-node
    
1
Comments
.

Do you know the answer?

Please log in and share it.