ContractCallParams class

Contains params for ContractCall endpoint

Constructors

ContractCallParams.new({required int fromChain, required String fromToken, required String fromAddress, required int toChain, required String toToken, required String toAmount, required String toContractAddress, String? contractOutputsToken, required String toContractCallData, required String toContractGasLimit, String? toApprovalAddress, String? toFallbackAddress, double? slippage, String? integrator, String? referrer, List<String>? allowBridges, List<String>? denyBridges, List<String>? preferBridges, List<String>? allowExchanges, List<String>? denyExchanges, List<String>? preferExchanges, double? maxPriceImpact, bool? allowDestinationCall})

Properties

allowBridges List<String>?
List of bridges that are allowed for this transaction
final
allowDestinationCall bool?
Whether swaps or other contract calls should be allowed as part of the destination transaction of a bridge transfer
final
allowExchanges List<String>?
List of exchanges that are allowed for this transaction.
final
contractOutputsToken String?
Some contract interactions will output a token
final
denyBridges List<String>?
List of bridges that are not allowed for this transaction
final
denyExchanges List<String>?
List of exchanges that are not allowed for this transaction
final
fromAddress String
The wallet that will send the transaction and contains the starting token
final
fromChain int
The sending chain
final
fromToken String
The token that should be transferred
final
hashCode int
The hash code for this object.
no setterinherited
integrator String?
A string containing tracking information about the integrator of the API
final
map Map<String, dynamic>
A map of the params, where nulls are removed
getter/setter pair
maxPriceImpact double?
The price impact threshold above which routes are hidden
final
preferBridges List<String>?
List of bridges that should be preferred for this transaction
final
preferExchanges List<String>?
List of exchanges that should be preferred for this transaction
final
queryString String
The query string
getter/setter pair
referrer String?
A string containing tracking information about the referrer of the integrator
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slippage double?
The maximum allowed slippage for the transaction as a decimal value. 0.005 represents 0.5%.
final
toAmount String
The amount of token required by the contract interaction
final
toApprovalAddress String?
If the approval address is different than the contract to call, specify that address here
final
toChain int
The receiving chain
final
toContractAddress String
The address of the contract to interact with
final
toContractCallData String
The calldata to be sent to the contract for the interaction on the destination chain.
final
toContractGasLimit String
The estimated gas used by the destination call. If this value is incorrect, the interaction may fail -- choose this carefully!
final
toFallbackAddress String?
If the call fails, use this address to send the bridged tokens to.
final
toToken String
The token required to perform the contract interaction (can be something to stake, donate or to be used as payment)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited