OptionalapproveBaseERC20?: 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.
OptionalapproveBaseOverrides?: TransactionOverridesTransaction's overrides for approval of a base token which may be used to pass L1
gasLimit, gasPrice, value, etc.
OptionalapproveERC20?: 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.
OptionalapproveOverrides?: TransactionOverridesTransaction's overrides for approval of an ERC20 token which may be used to pass L1
gasLimit, gasPrice, value, etc.
OptionalbridgeAddress?: AddressThe address of the bridge contract to be used.
Defaults to the default ZKsync Era bridge (either L1EthBridge or L1Erc20Bridge).
OptionalcustomBridgeData?: BytesAdditional data that can be sent to a bridge.
OptionalgasPerPubdataByte?: NumbersThe L2 gas price for each published L1 calldata byte.
Optionall2GasLimit?: NumbersMaximum amount of L2 gas that the transaction can consume during execution on L2.
OptionaloperatorTip?: 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.
Optionaloverrides?: TransactionOverridesTransaction's overrides for deposit which may be used to pass L1 gasLimit, gasPrice,
value, etc.
OptionalrefundRecipient?: 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.
Optionalto?: AddressThe address that will receive the deposited tokens on L2.
The address of the token to deposit.
The amount of the token to deposit.