transfer
The transfer
module is responsible for the implementation of the ICS-20 protocol, which enables cross-chain fungible token transfers.
For more information, visit: https://ibc.cosmos.network/main/apps/transfer/overview.html
Message Types
Msg
defines the ibc/transfer Msg service.
_4 // Transfer defines a rpc handler method for MsgTransfer.
_4 rpc Transfer(MsgTransfer) returns (MsgTransferResponse);
MsgTransfer
MsgTransfer
defines a msg to transfer fungible tokens (i.e Coins) between ICS20 enabled chains.
See ICS Spec here: https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures
_22 option (gogoproto.equal) = false;
_22 option (gogoproto.goproto_getters) = false;
_22 // the port on which the packet will be sent
_22 string source_port = 1 [(gogoproto.moretags) = "yaml:\"source_port\""];
_22 // the channel by which the packet will be sent
_22 string source_channel = 2 [(gogoproto.moretags) = "yaml:\"source_channel\""];
_22 // the tokens to be transferred
_22 cosmos.base.v1beta1.Coin token = 3 [(gogoproto.nullable) = false];
_22 // the sender address
_22 // the recipient address on the destination chain
_22 // Timeout height relative to the current block height.
_22 // The timeout is disabled when set to 0.
_22 ibc.core.client.v1.Height timeout_height = 6
_22 [(gogoproto.moretags) = "yaml:\"timeout_height\"", (gogoproto.nullable) = false];
_22 // Timeout timestamp in absolute nanoseconds since unix epoch.
_22 // The timeout is disabled when set to 0.
_22 uint64 timeout_timestamp = 7 [(gogoproto.moretags) = "yaml:\"timeout_timestamp\""];
MsgTransferResponse
MsgTransferResponse
defines the Msg/Transfer
response type.
_1message MsgTransferResponse {}
Queries
Query
provides defines the gRPC querier service.
_21 // DenomTrace queries a denomination trace information.
_21 rpc DenomTrace(QueryDenomTraceRequest) returns (QueryDenomTraceResponse) {
_21 option (google.api.http).get = "/ibc/apps/transfer/v1/denom_traces/{hash}";
_21 // DenomTraces queries all denomination traces.
_21 rpc DenomTraces(QueryDenomTracesRequest) returns (QueryDenomTracesResponse) {
_21 option (google.api.http).get = "/ibc/apps/transfer/v1/denom_traces";
_21 // Params queries all parameters of the ibc-transfer module.
_21 rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
_21 option (google.api.http).get = "/ibc/apps/transfer/v1/params";
_21 // DenomHash queries a denomination hash information.
_21 rpc DenomHash(QueryDenomHashRequest) returns (QueryDenomHashResponse) {
_21 option (google.api.http).get = "/ibc/apps/transfer/v1/denom_hashes/{trace}";
QueryDenomTraceRequest
QueryDenomTraceRequest
is the request type for the Query/DenomTrace
RPC method.
_4message QueryDenomTraceRequest {
_4 // hash (in hex format) of the denomination trace information.
QueryDenomTraceResponse
QueryDenomTraceResponse
is the response type for the Query/DenomTrace
RPC method.
_4message QueryDenomTraceResponse {
_4 // denom_trace returns the requested denomination trace information.
_4 DenomTrace denom_trace = 1;
QueryDenomTracesRequest
QueryDenomTracesRequest
is the request type for the Query/DenomTraces
RPC method.
_4message QueryDenomTracesRequest {
_4 // pagination defines an optional pagination for the request.
_4 cosmos.base.query.v1beta1.PageRequest pagination = 1;
QueryDenomTracesResponse
QueryDenomTracesResponse
is the response type for the Query/DenomTraces
RPC method.
_6message QueryDenomTracesResponse {
_6 // denom_traces returns all denominations trace information.
_6 repeated DenomTrace denom_traces = 1 [(gogoproto.castrepeated) = "Traces", (gogoproto.nullable) = false];
_6 // pagination defines the pagination in the response.
_6 cosmos.base.query.v1beta1.PageResponse pagination = 2;
QueryParamsRequest
QueryParamsRequest
is the request type for the Query/Params
RPC method.
_1message QueryParamsRequest {}
QueryParamsResponse
QueryParamsResponse
is the response type for the Query/Params
RPC method.
_4message QueryParamsResponse {
_4 // params defines the parameters of the module.
QueryDenomHashRequest
QueryDenomHashRequest
is the request type for the Query/DenomHash
RPC method.
_4message QueryDenomHashRequest {
_4 // The denomination trace ([port_id]/[channel_id])+/[denom]
QueryDenomHashResponse
QueryDenomHashResponse
is the response type for the Query/DenomHash
RPC method.
_4message QueryDenomHashResponse {
_4 // hash (in hex format) of the denomination trace information.