Deposit

Deposit from Layer 1 to zkLink layer.

NameTypeRequiredDescription

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:

{
    "type": "Deposit",
    "fromChainId": 1,
    "from": "0x76920dfacad4f28f97d6209977c1057b9e3e5cad",
    "subAccountId": 1,
    "l1SourceToken": 18,
    "l2TargetToken": 1,
    "amount": "4000000000000000000000",
    "to": "0x76920dfacad4f28f97d6209977c1057b9e3e5cad",
    "serialId": 53,
    "l2Hash": "0xaaa1e7a5bc48e7cfaa562a4d1a5abc1d6dc5e7f7683e89eb00e895d438f0acab"
}

Last updated