Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is fetch_subnet_by_canister already functional? #552

Open
rdobrik opened this issue May 1, 2024 · 3 comments
Open

Is fetch_subnet_by_canister already functional? #552

rdobrik opened this issue May 1, 2024 · 3 comments

Comments

@rdobrik
Copy link

rdobrik commented May 1, 2024

I am working on Java Agent implementation, currently adding subnet API functions. Looks like subnet with canisterId doesn't return subnet info. When I replace it with subnetId it works properly. Is it something still in development?

@chenyan-dfinity
Copy link
Contributor

It's complicated, but subnet info should be read with subnet id. Some paths are available via canister id, such as public_key and canister_ranges, but metrics is only available with subnet id. It's in the spec, but not easy to find: https://internetcomputer.org/docs/current/references/ic-interface-spec#http-read-state: "the subnet form must be used when requesting paths of the form /subnet/<subnet_id>/metrics"

@rdobrik
Copy link
Author

rdobrik commented May 1, 2024

👍 I assumed that, so I will get subnetId from Certificate delegation then. Just that function is used internally in query_signed with canister Id. If I did not miss something. Is query_signed already officially out or it's still work in progress?

@chenyan-dfinity
Copy link
Contributor

I think signed query is released, but I haven't tried it myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants