Get desktop application:
View/edit binary Protocol Buffers messages
Represents an asset. Examples: BNB.BNB, RUNE.RUNE, BNB.RUNE-67C
Used in:
Chain ID
Symbol
The ID of the token (blockchain-specific format)
Supported blockchains
Used in: ,
An error code + a free text
Used in:
code of the error
optional error message
Predefined error codes
Used in:
OK
Input for a swap between source and destination chains; for creating a TX on the source chain.
Source chain
Source address, on source chain
Destination chain+asset, on destination chain
Destination address, on destination chain
ThorChainSwap vault, on the source chain. Should be queried afresh, as it may change
ThorChain router, only in case of Ethereum source network
The source amount, integer as string, in the smallest native unit of the chain
The minimum accepted destination amount. Actual destination amount will depend on current rates, limit amount can be used to prevent using very unfavorable rates.
Optional affiliate fee destination address. A Rune address.
Optional affiliate fee, percentage base points, e.g. 100 means 1%, 0 - 1000, as string. Empty means to ignore it.
Optional extra custom memo, reserved for later use.
Optional expirationTime, will be now() + 15 min if not set
Result of the swap, a SigningInput struct for the specific chain
Source chain
Destination chain
Error code, filled in case of error, OK/empty on success
Prepared unsigned transaction input, on the source chain, to THOR. Some fields must be completed, and it has to be signed.