ForcedExit
Forced withdraw from Layer3
Name
Type
Required
Description
type
String
yes
The value is "ForcedExit"
target
String
yes
The account address of the forced withdraw, the token on Layer 1 is also sent to this address
withdrawToL1
u8
yes
1: true, 0: false. withdraw to L1 or not
ts
u32
yes
Timestamp of the API call, used as front-end request id to generate transaction hash
signature
yes
the public key hash corresponding to the signature must be aligned with the initiator account
For example:
{
"type": "ForcedExit",
"toChainId": 1,
"initiatorAccountId": 7,
"initiatorSubAccountId": 3,
"initiatorNonce":4,
"target": "0x3498f456645270ee003441df82c718b56c0e6666",
"targetSubAccountId": 2,
"l2SourceToken": 1,
"l1TargetToken": 17,
"exitAmount": "4100000000000000",
"ts": 1646102148,
"withdrawToL1": 0,
"signature": {
"pubKey": "0x0dd4f603531bd78bbecd005d9e7cc62a794dcfadceffe03e269fbb6b72e9c724",
"signature": "a8719d0f771f34a177bbf199ab7b0decd03b5db29edf173ed980d19c7864c5a3761111620ab1982ef1bb7459d5a919727e51b895799e2706ddd5a5328146eb01"
}
}sign ForcedExit
For more detail please refer to Golang example in SDK
For more detail please refer to javascript example
Last updated
Was this helpful?