DlnApi class
Methods
cancelOrder ({required String txHash })
→ Future <Tx >
getOrderCreationTransaction ({required int srcChainId , required String srcChainOrderAuthorityAddress , required String srcChainTokenIn , required String srcChainTokenInAmount , required int dstChainId , required String dstChainTokenOut , required String dstChainTokenOutAmount , required String dstChainTokenOutRecipient , required String dstChainOrderAuthorityAddress , num ? affiliateFeePercent , String ? affiliateFeeRecipient })
→ Future <CreateTx >
Requesting Order Creation Transaction
getOrderStatus ({required String txHash })
→ Future
getQuote ({required int srcChainId , required String srcChainTokenIn , required String srcChainTokenInAmount , required int dstChainId , required String dstChainTokenOut , bool ? prependOperatingExpense , num ? affiliateFeePercent })
→ Future <Route >
getQuote endpoint of DNL API should be used only to display outcomes of the trades when the address of the user is unknown (e.g. to let the user see prices of cross-chain trades before he connects the wallet to the Dapp). Whenever an address is known, make sure to call getOrderCreationTransaction directly.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited