跨链元空间接口
导出公链资产状态查询在线调用
POST
chain_dexSwap
(导出公链资产状态查询)
参数
Op: Export 导出资产查询
示例代码
{
"jsonrpc": "3.0",
"method": "chain_dexSwap",
"params": [
"opcode=Assets&subcode=Show&op=Export",
"encryp=none"
],
"id": "aa80aa0c6bb0c7d81ac7e5b3"
}{
"jsonrpc": "3.0",
"id": "7b66498181f29306a67c9c48",
"result": {
"ret": "0",
"err": "",
"content": {
"chain_symbol": "ETH",
//导出eth "coin_symbol": "ETH",
//导出平台币 "coin_name": "ethereum",
"coin_address": "",
//平台币合约地址为空 "amount": 819,
//导出数量 "local_address": "0xcfcb6f2c878e7613a76d304fd2043a5733308387",
//本地eth地址 "robot_address": "0x0037b8c3fb4a51f169790172aeda81073b0d315a",
//voidchain 以太坊机器人账号地址(唯一) "remote_rpc": "https://holesky.gateway.tenderly.co",
//rpc eth "tc_address": "0x60c63b7c85d26538e708ab53c93c2ecbbd8a931e",
//voidchain 用户地址 "tcrobot_address": "0xbbb74f97ebf42e11ec94b62cfa93678b197fb78e",
//voidChain 机器人账号地址(唯一) "txhash_local": "0xf004d67b86307f38fa59f134160fa875859bca657800a03497c415af235b5bfb",
//eth 交易HSAH "txhash_tc": "",
//voidChain 交易HSAH "status": 102,
"status_detail": "2 blocks confirmed",
//eth 交易已有2个确认 "active_time": 0,
"process": false
}
} Status: Export_Map_Start = uint(100) Export_MAPGETHASH = uint(101) // voidChain map stage Export_Map_End = uint(102) Export_Robot_chain = uint(200) Export_Robot_GetHash = uint(201) Export_Robot_End = uint(210) Export_scucessful = uint(999) //successful Export_fail = uint(1000) //fail