CosmWasm / CosmWasm/wasmd

Query code by checksum

Open
#1,145 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
416
Forks
538
PR merge metrics
No merged PRs in 30d

Description

It would be cool to have a query like this:

```
// Code gets the binary code and metadata for a singe wasm code
rpc Code(QueryCodeRequest) returns (QueryCodeResponse) {
option (google.api.http).get = "/cosmwasm/wasm/v1/code/{code_id}";
}
```

but with the checksum as an argument.

The use case for this is as follows: I want to instantiate a contract and upload it only when it does not yet exist. If the checksum exists already, I can use the existing one.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.