- Preparing search index...
- The search index is not available
rubic-sdk
Methods
Static
getPairInfo
- getPairInfo(srcChainId: number, srcTokenAddress: string, dstChainId: number, dstTokenAddress: string): Promise<OwlToPairInfo>
-
Parameters
-
srcChainId: number
-
srcTokenAddress: string
-
dstChainId: number
-
dstTokenAddress: string
Static
getSwapInfo
- getSwapInfo(p: OwlTopSwapRequest): Promise<{
bridge_fee: OwlToAmountInfo;
from_chain_name: string;
gas_fee: OwlToAmountInfo;
input_value: OwlToAmountInfo;
max_value: OwlToAmountInfo;
min_value: OwlToAmountInfo;
network_type: number;
receive_value: OwlToAmountInfo;
send_value: OwlToAmountInfo;
to_chain_name: string;
token_name: string;
txs: {
approve_body: object;
transfer_body: {
data: string;
to: string;
value: string;
};
};
}>
-
Returns Promise<{
bridge_fee: OwlToAmountInfo;
from_chain_name: string;
gas_fee: OwlToAmountInfo;
input_value: OwlToAmountInfo;
max_value: OwlToAmountInfo;
min_value: OwlToAmountInfo;
network_type: number;
receive_value: OwlToAmountInfo;
send_value: OwlToAmountInfo;
to_chain_name: string;
token_name: string;
txs: {
approve_body: object;
transfer_body: {
data: string;
to: string;
value: string;
};
};
}>