Optional
approveBaseERC20?: booleanWhether 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
approveBaseOverrides?: TransactionOverridesTransaction'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
approveOverrides?: TransactionOverridesTransaction's overrides for approval of an ERC20 token which may be used to pass L1
gasLimit
, gasPrice
, value
, etc.
Optional
bridgeAddress?: AddressThe address of the bridge contract to be used.
Defaults to the default ZKsync Era bridge (either L1EthBridge
or L1Erc20Bridge
).
Optional
customBridgeData?: BytesAdditional data that can be sent to a bridge.
Optional
gasPerPubdataByte?: NumbersThe L2 gas price for each published L1 calldata byte.
Optional
l2GasLimit?: NumbersMaximum amount of L2 gas that the transaction can consume during execution on L2.
Optional
operatorTip?: NumbersIf 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
refundRecipient?: AddressThe 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.