Builder
class Builder
Input for a swap between source and destination chains; for creating a TX on the source chain.
Content copied to clipboard
TW.THORChainSwap.Proto.SwapInput
Functions
Link copied to clipboard
Optional affiliate fee destination address. A Rune address.
Content copied to clipboard
string affiliate_fee_address = 9;
Link copied to clipboard
Optional affiliate fee, percentage base points, e.g. 100 means 1%, 0 - 1000, as string. Empty means to ignore it.
Content copied to clipboard
string affiliate_fee_rate_bp = 10;
Link copied to clipboard
Optional expirationTime, will be now() + 15 min if not set
Content copied to clipboard
uint64 expiration_time = 12;
Link copied to clipboard
Optional extra custom memo, reserved for later use.
Content copied to clipboard
string extra_memo = 11;
Link copied to clipboard
Source address, on source chain
Content copied to clipboard
string from_address = 2;
Link copied to clipboard
The source amount, integer as string, in the smallest native unit of the chain
Content copied to clipboard
string from_amount = 7;
Link copied to clipboard
Source chain
Content copied to clipboard
.TW.THORChainSwap.Proto.Asset from_asset = 1;
Link copied to clipboard
ThorChain router, only in case of Ethereum source network
Content copied to clipboard
string router_address = 6;
Link copied to clipboard
Destination address, on destination chain
Content copied to clipboard
string to_address = 4;
Link copied to clipboard
The minimum accepted destination amount. Actual destination amount will depend on current rates, limit amount can be used to prevent using very unfavorable rates.
Content copied to clipboard
string to_amount_limit = 8;
Link copied to clipboard
Destination chain+asset, on destination chain
Content copied to clipboard
.TW.THORChainSwap.Proto.Asset to_asset = 3;
Link copied to clipboard
ThorChainSwap vault, on the source chain. Should be queried afresh, as it may change
Content copied to clipboard
string vault_address = 5;
Link copied to clipboard
Optional affiliate fee destination address. A Rune address.
Content copied to clipboard
string affiliate_fee_address = 9;
Link copied to clipboard
Optional affiliate fee destination address. A Rune address.
Content copied to clipboard
string affiliate_fee_address = 9;
Link copied to clipboard
Optional affiliate fee, percentage base points, e.g. 100 means 1%, 0 - 1000, as string. Empty means to ignore it.
Content copied to clipboard
string affiliate_fee_rate_bp = 10;
Link copied to clipboard
Optional affiliate fee, percentage base points, e.g. 100 means 1%, 0 - 1000, as string. Empty means to ignore it.
Content copied to clipboard
string affiliate_fee_rate_bp = 10;
Link copied to clipboard
Optional expirationTime, will be now() + 15 min if not set
Content copied to clipboard
uint64 expiration_time = 12;
Link copied to clipboard
Optional extra custom memo, reserved for later use.
Content copied to clipboard
string extra_memo = 11;
Link copied to clipboard
Optional extra custom memo, reserved for later use.
Content copied to clipboard
string extra_memo = 11;
Link copied to clipboard
Source address, on source chain
Content copied to clipboard
string from_address = 2;
Link copied to clipboard
Source address, on source chain
Content copied to clipboard
string from_address = 2;
Link copied to clipboard
The source amount, integer as string, in the smallest native unit of the chain
Content copied to clipboard
string from_amount = 7;
Link copied to clipboard
The source amount, integer as string, in the smallest native unit of the chain
Content copied to clipboard
string from_amount = 7;
Link copied to clipboard
Source chain
Content copied to clipboard
.TW.THORChainSwap.Proto.Asset from_asset = 1;
Link copied to clipboard
ThorChain router, only in case of Ethereum source network
Content copied to clipboard
string router_address = 6;
Link copied to clipboard
ThorChain router, only in case of Ethereum source network
Content copied to clipboard
string router_address = 6;
Link copied to clipboard
Destination address, on destination chain
Content copied to clipboard
string to_address = 4;
Link copied to clipboard
Destination address, on destination chain
Content copied to clipboard
string to_address = 4;
Link copied to clipboard
The minimum accepted destination amount. Actual destination amount will depend on current rates, limit amount can be used to prevent using very unfavorable rates.
Content copied to clipboard
string to_amount_limit = 8;
Link copied to clipboard
The minimum accepted destination amount. Actual destination amount will depend on current rates, limit amount can be used to prevent using very unfavorable rates.
Content copied to clipboard
string to_amount_limit = 8;
Link copied to clipboard
Destination chain+asset, on destination chain
Content copied to clipboard
.TW.THORChainSwap.Proto.Asset to_asset = 3;
Link copied to clipboard
ThorChainSwap vault, on the source chain. Should be queried afresh, as it may change
Content copied to clipboard
string vault_address = 5;
Link copied to clipboard
ThorChainSwap vault, on the source chain. Should be queried afresh, as it may change
Content copied to clipboard
string vault_address = 5;
Link copied to clipboard
Source chain
Content copied to clipboard
.TW.THORChainSwap.Proto.Asset from_asset = 1;
Link copied to clipboard
Destination chain+asset, on destination chain
Content copied to clipboard
.TW.THORChainSwap.Proto.Asset to_asset = 3;
Link copied to clipboard
Source chain
Content copied to clipboard
.TW.THORChainSwap.Proto.Asset from_asset = 1;
Link copied to clipboard
Destination chain+asset, on destination chain
Content copied to clipboard
.TW.THORChainSwap.Proto.Asset to_asset = 3;
Link copied to clipboard
Optional affiliate fee destination address. A Rune address.
Content copied to clipboard
string affiliate_fee_address = 9;
Link copied to clipboard
Optional affiliate fee destination address. A Rune address.
Content copied to clipboard
string affiliate_fee_address = 9;
Link copied to clipboard
Optional affiliate fee, percentage base points, e.g. 100 means 1%, 0 - 1000, as string. Empty means to ignore it.
Content copied to clipboard
string affiliate_fee_rate_bp = 10;
Link copied to clipboard
Optional affiliate fee, percentage base points, e.g. 100 means 1%, 0 - 1000, as string. Empty means to ignore it.
Content copied to clipboard
string affiliate_fee_rate_bp = 10;
Link copied to clipboard
Optional expirationTime, will be now() + 15 min if not set
Content copied to clipboard
uint64 expiration_time = 12;
Link copied to clipboard
Optional extra custom memo, reserved for later use.
Content copied to clipboard
string extra_memo = 11;
Link copied to clipboard
Optional extra custom memo, reserved for later use.
Content copied to clipboard
string extra_memo = 11;
Link copied to clipboard
Source address, on source chain
Content copied to clipboard
string from_address = 2;
Link copied to clipboard
Source address, on source chain
Content copied to clipboard
string from_address = 2;
Link copied to clipboard
The source amount, integer as string, in the smallest native unit of the chain
Content copied to clipboard
string from_amount = 7;
Link copied to clipboard
The source amount, integer as string, in the smallest native unit of the chain
Content copied to clipboard
string from_amount = 7;
Link copied to clipboard
Source chain
Content copied to clipboard
.TW.THORChainSwap.Proto.Asset from_asset = 1;
Link copied to clipboard
ThorChain router, only in case of Ethereum source network
Content copied to clipboard
string router_address = 6;
Link copied to clipboard
ThorChain router, only in case of Ethereum source network
Content copied to clipboard
string router_address = 6;
Link copied to clipboard
Destination address, on destination chain
Content copied to clipboard
string to_address = 4;
Link copied to clipboard
Destination address, on destination chain
Content copied to clipboard
string to_address = 4;
Link copied to clipboard
The minimum accepted destination amount. Actual destination amount will depend on current rates, limit amount can be used to prevent using very unfavorable rates.
Content copied to clipboard
string to_amount_limit = 8;
Link copied to clipboard
The minimum accepted destination amount. Actual destination amount will depend on current rates, limit amount can be used to prevent using very unfavorable rates.
Content copied to clipboard
string to_amount_limit = 8;
Link copied to clipboard
Destination chain+asset, on destination chain
Content copied to clipboard
.TW.THORChainSwap.Proto.Asset to_asset = 3;
Link copied to clipboard
ThorChainSwap vault, on the source chain. Should be queried afresh, as it may change
Content copied to clipboard
string vault_address = 5;
Link copied to clipboard
ThorChainSwap vault, on the source chain. Should be queried afresh, as it may change
Content copied to clipboard
string vault_address = 5;