Comments (4)
There actually isn't any native gRPC support, and little RPC support in general, in CosmRS.
For Tendermint RPC (i.e. HTTP+JSON [rpc]
), see https://docs.rs/tendermint-rpc/
Note: gRPC support is currently in Ocular: https://github.com/PeggyJV/ocular
from cosmos-rust.
@tony-iqlusion But how can I query some contract state?
In cosmjs lib, I can do:
const queryClient = await CosmWasmClient.connect(RPC_URL);
// Some query from contract
const queryMessage = {
pairs: {
limit: 10,
},
};
const queryResult = await queryClient.queryContractSmart(
CONTRACT_ADDRESS,
queryMessage
);
I can't find a way to do it with a rust crate. I'm a little bit confused, as I can't find some examples.
I'm more used to EVM networks and still learning how to interact with cosmos blockchains like SEI, JUNO, etc.
from cosmos-rust.
I'm not sure of a solution. If you'd like to contribute the relevant RPCs to CosmRS, we'd accept them.
from cosmos-rust.
@tony-iqlusion I find a way to do this.
Maybe I'ill open a PR with some examples of queries/msgs.
from cosmos-rust.
Related Issues (20)
- Type URLs for x/authz messages not present HOT 5
- Add additional derive macros to Prost generated types HOT 19
- gov/v1 HOT 2
- proto build fails because of deprecated buf template HOT 1
- Update crypto lib HOT 2
- Error: failed to load state at height 0; version mismatch on immutable IAVL tree; version does not exist. Version has either been pruned, or is for a future block height (latest height: 0): invalid request HOT 1
- 405 Method Not Allowed HOT 2
- Update ibc-go types HOT 2
- Error with user entered invalid UTF8 for protobuf structs. HOT 1
- bug: cargo run ends in an error HOT 1
- proto-build: bump COSMOS_SDK_REV to v0.47 or higher HOT 4
- Querying `minimum_gas_price` HOT 4
- How to output the private key and print it to the terminal? HOT 2
- Abandon `cosmos-sdk-proto` in favor of `ibc-proto`? HOT 1
- How to query modules in Osmosis, such as Token Factory HOT 1
- Can't parse Cosmos transactions with empty Denom anymore HOT 8
- ibc-go ::prost::Name implementations gone in cosmos-sdk-proto v0.24.0 HOT 2
- cosmos-sdk-proto: Generated `serde` serialization code is not usable in `no_std` context HOT 1
- AbciQueryRequest unsupported ABCI query path HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmos-rust.