Crates.io | cw-ibc-query |
lib.rs | cw-ibc-query |
version | 0.1.0 |
source | src |
created_at | 2022-04-01 22:55:50.634344 |
updated_at | 2022-04-01 22:55:50.634344 |
description | Contract to allow ibc queries from remote chains. |
homepage | |
repository | https://github.com/disperze/cw-osmo |
max_upload_size | |
id | 560573 |
size | 35,082 |
Contract to allow ibc queries from remote chains.
PacketMsg: Data packet sent by a blockchain. It contains the following parameters:
Parameter | Type | Description |
---|---|---|
Path | string | Service query path |
Data | string | Protobuf message (base64 encoded) |
Packet Msg example:
{
"path": "/osmosis.gamm.v1beta1.Query/SpotPrice",
"data": "CMQEEkRpYmMvQkUxQkI0MkQ0QkUz....jY4RDdDNDFEQjRERkNFOTY3OEU4RU="
}
Packet ACK example:
{
"result": "ChY5NTUuNjcxNzc5MTY3NDI4NzM4MjAw"
}
return protobuf result (base64 encoded)
ListAccounts
- to list all accounts tied to open channels. ChannelID,
account address on the remote chain (if known) and last updated price.Account
- queries the above data for one channel