MsgSwapExactAmountIn
Swap Properties
Proto Definition
// ===================== MsgSwapExactAmountIn
message MsgSwapExactAmountIn {
option (amino.name) = "gamm/SwapExactAmountIn";
option (cosmos.msg.v1.signer) = "sender";
string sender = 1 [ (gogoproto.moretags) = "yaml:\"sender\"" ];
repeated poolmanager.v1beta1.SwapAmountInRoute routes = 2
[ (gogoproto.nullable) = false ];
cosmos.base.v1beta1.Coin token_in = 3 [
(gogoproto.moretags) = "yaml:\"token_in\"",
(gogoproto.nullable) = false
];
string token_out_min_amount = 4 [
(gogoproto.customtype) = "cosmossdk.io/math.Int",
(gogoproto.moretags) = "yaml:\"token_out_min_amount\"",
(gogoproto.nullable) = false
];
repeated Affiliate affiliates = 5;
}
message MsgSwapExactAmountInResponse {
string token_out_amount = 1 [
(gogoproto.customtype) = "cosmossdk.io/math.Int",
(gogoproto.moretags) = "yaml:\"token_out_amount\"",
(gogoproto.nullable) = false
];
}Affiliate
JSON Example
Multi-Hop Swaps
Slippage Protection
Swap Fees
Affiliate Fees
Last updated