Optional
approveWhether or not base token approval should be performed under the hood.
Set this flag to true if you bridge a base token and didn't call the approveERC20
function
beforehand.
Optional
approveTransaction's overrides for approval of a base token which may be used to pass L1
gasLimit
, gasPrice
, value
, etc.
Optional
approveERC20?: booleanWhether or not token approval should be performed under the hood.
Set this flag to true if you bridge an ERC20 token and didn't call the approveERC20
function beforehand.
Optional
approveTransaction's overrides for approval of an ERC20 token which may be used to pass L1
gasLimit
, gasPrice
, value
, etc.
Optional
bridgeThe address of the bridge contract to be used.
Defaults to the default ZKsync Era bridge (either L1EthBridge
or L1Erc20Bridge
).
Optional
customAdditional data that can be sent to a bridge.
Optional
gasThe L2 gas price for each published L1 calldata byte.
Optional
l2Maximum amount of L2 gas that the transaction can consume during execution on L2.
Optional
operatorIf the ETH value passed with the transaction is not explicitly stated in the overrides, this field will be equal to the tip the operator will receive on top of the base cost of the transaction.
Optional
overrides?: TransactionOverridesTransaction's overrides for deposit which may be used to pass L1 gasLimit
, gasPrice
,
value
, etc.
Optional
refundThe address on L2 that will receive the refund for the transaction.
If the transaction fails, it will also be the address to receive l2Value
.
Optional
to?: AddressThe address that will receive the deposited tokens on L2.
The address of the token to deposit.
The amount of the token to deposit.