Get Started
Quick Start
Create Account and Deposit
{
"type":"TxExecuteResult",
"txHash":"0x05f2cf78d7b7a4a6b9f3c7e0c78d0c3a97438b9806e21834ee36530eb62d30fd",
"tx":{
"type":"Deposit",
"from":"0x76ed7d63d9266f07ec86d44237daca3637a6650d",
"to":"0xd81418a80a0df6feaea04467f908bc1cb1fc5be7",
"fromChainId":7,
"subAccountId":2,
"l1SourceToken":17,
"l2TargetToken":17,
"amount":"1000000000000000000000000000",
"serialId":26,
"l2Hash":"0xa0f46cc2c2ee1480350c4b1c2a3b1b70a55f799078ae1a248ed6cf71431e0270",
"ethHash":null
},
"receipt":{
"executed":true,
"executedTimestamp":1702099337833969,
"success":true,
"failReason":null,
"block":null,
"index":null
},
"updates":[
// As the to_account (accountId is 1) does not exist, an AccountCreate is involved
{
"type":"AccountCreate",
"updateId":0,
"accountId":11,
"address":"0xd81418a80a0df6feaea04467f908bc1cb1fc5be7"
},
// The balance of the to_account increased, depositAmount=newBalance-oldBalance
{
"type":"BalanceUpdate",
"updateId":1,
"accountId":11,
"subAccountId":0,
"coinId":18,
"oldBalance":"0",
"newBalance":"1000000000000000000000000000",
"oldNonce":0,
"newNonce":0
},
// The 'global asset' account records the increase of on-chain asset reserves
{
"type": "BalanceUpdate",
"updateId": 17,
"accountId": 1,
"subAccountId": 2,
"coinId": 18,
"oldBalance": "3030000000000000000000",
"newBalance": "3040000000000000000000",
"oldNonce": 0,
"newNonce": 0
}
]
}name
accountId
subAccountId
coin id
balance
Place Order
name
accountId
subAccountId
coin id
balance
Prepare submitter private key
Create OrderMatching Transaction
name
accountId
subAccountId
coin id
balance
Last updated