Post
Share your knowledge.
Meaning.Sui2166
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
3harry phan4902
Jul 27 2025, 12:03Yes 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 XDV4168
Jul 29 2025, 13:47Quick Fixes
-
Use Correct gRPC Method:
TheListOwnedObjectsmethod is deprecated. Switch to:grpcurl -d '{"owner": "0x..."}' fullnode.testnet.sui.io:443 sui.rpc.v2.Read/GetOwnedObjects -
Enable gRPC on Your Node:
Add tofullnode.yaml:grpc: enabled: true port: 9001 -
Check Node Sync:
curl -s http://localhost:9184/metrics | grep "checkpoint_height"
Why This Happens
v2alphais outdated (usev2orv1)- Your node might not expose gRPC by default
Working Example
grpcurl -plaintext -d '{"owner": "0x..."}' localhost:9001 sui.rpc.v2.Read/GetOwnedObjects
4
Comments
Bekky1762
Jul 30 2025, 12:26Root Cause
- The
v2alphaendpoint 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)
- Enable v2alpha in
fullnode.yaml:grpc: enabled-legacy-methods: true - Restart node:
sudo systemctl restart sui-node
1
Comments
Do you know the answer?
Please log in and share it.
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.
1279Posts4408Answers
Bounty Posts
- How to Maximize Profit Holding SUI: Sui Staking vs Liquid Staking616
- Why does BCS require exact field order for deserialization when Move structs have named fields?65
- Multiple Source Verification Errors" in Sui Move Module Publications - Automated Error Resolution55
- Sui Move Error - Unable to process transaction No valid gas coins found for the transaction419
- Sui Transaction Failing: Objects Reserved for Another Transaction410