Deposit
Deposit from Layer 1 to zkLink layer.
Name | Type | Required | Description |
---|---|---|---|
type | String | yes | The value is "Deposit" |
fromChainId | yes | The chain id defined by zkLink, the chain that the deposit is initiated on | |
from | String | yes | The initiator address of the deposit |
to | String | yes | The recipient of the deposit. An account will be created if it does not exist on zkLink Layer3 |
subAccountId | yes | The subaccount id of the recipient | |
l1SourceToken | yes | The token deducted from the initiator on Layer 1 | |
l2TargetToken | yes | The token received by the recipient on zkLink Layer 3 | |
amount | BigUint | yes | The amount of deposit |
serialId | u64 | yes | The serial number of the event, used as nonce |
l2Hash | no | Transaction hash of linea/zksync/starket | |
ethHash | no | Transaction hash of ethereum, exist when deposit from Ethereum bridge to linea/zksync/starket |
For example:
Last updated