You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to retrieve the state of a public account on testnet using the webclient, but I’m unsure how to accomplish this.
This is possible with the Rust client since I can initialize the TonicRpcClient or use the .test_rpc_api() method on the client, however, as far as I know exporting the TonicRpcClient to the webClient is not possible because it requires std.
It would be very useful to have a way to ping the Miden node directly via the webClient, to get certain data such as the state of a public account that is not in the client, or getting all the notes for a given Id.
Here’s how I retrieve the account state in Rust:
let account_details = client
.test_rpc_api().get_account_update(counter_contract_id).await.unwrap();
Looking to achieve similar functionality in TypeScript as the Rust snippet above.
The text was updated successfully, but these errors were encountered:
Feature description
I’m trying to retrieve the state of a public account on testnet using the webclient, but I’m unsure how to accomplish this.
This is possible with the Rust client since I can initialize the
TonicRpcClient
or use the.test_rpc_api()
method on the client, however, as far as I know exporting theTonicRpcClient
to the webClient is not possible because it requiresstd
.It would be very useful to have a way to ping the Miden node directly via the webClient, to get certain data such as the state of a public account that is not in the client, or getting all the notes for a given Id.
Here’s how I retrieve the account state in Rust:
Looking to achieve similar functionality in TypeScript as the Rust snippet above.
The text was updated successfully, but these errors were encountered: