Cross-chain Metaspace Interface
Wallet Login to ExchangeTry API
POST
chain_dexSwap
(Wallet Login to Exchange)
description:The wallet key screen shows a linked exchange address. After clicking it, the wallet obtains the account name and address that can log in to the exchange, then starts automatic exchange login.
Note, The account name and transaction address are sent to the exchange with a digital signature to prevent forgery.
Return Values
Complete signature information
Example Code
{
"jsonrpc": "3.0",
"method": "chain_dexSwap",
"params": [
"opcode=ActiveRobot&subcode=GetLogoninfo",
"encryp=none"
],
"id": "aa80aa0c6bb0c7d81ac7e5b3"
}{
"jsonrpc": "3.0",
"id": "ae4f311ef850b84c5f82515f",
"result": {
"ret": "0",
"err": "",
"content": {
"account": "wxl_test",
"address": "0xe88d0e77246126e4418dce0065e526214afeffce",
"v": 28,
"r": 81384035399962319990996425572618411476577488953570671173607879344898443735417,
"s": 2346344207386477691257197557069748534157618244834707167617258413021800794063
}
}
}