Skip to content
Cross-chain Metaspace Interface

Import Public Chain Asset Status QueryTry API

POST chain_dexSwap (Import Public Chain Asset Status Query)
Parameters

Op: Import importassetquery, Export exportassetquery

Example Code
Request
{
"jsonrpc": "3.0",
"method": "chain_dexSwap",
"params": [
  "opcode=Assets&subcode=Show&op=Import",
  "encryp=none"
],
"id": "aa80aa0c6bb0c7d81ac7e5b3"
}
Response
{
"jsonrpc":  "3.0",
 "id":  "7b66498181f29306a67c9c48",
 "result": {
  "ret":  "0",
   "err":  "",
   "content": {
    "chain_symbol":  "ETH",
    //importeth "coin_symbol":  "ETH",
    //importplatform coin "coin_name":  "ethereum",
     "coin_address":  "",
    //platform coincontractaddressempty "amount":  819,
    //importamount "local_address":  "0xcfcb6f2c878e7613a76d304fd2043a5733308387",
     //localethaddress "robot_address":  "0x0037b8c3fb4a51f169790172aeda81073b0d315a",
     //voidchain Ethereumrobotaccountaddress(uniqueone) "remote_rpc":  "https://holesky.gateway.tenderly.co",
     //rpc eth "tc_address":  "0x60c63b7c85d26538e708ab53c93c2ecbbd8a931e",
     //voidchain useraddress "tcrobot_address":  "0xbbb74f97ebf42e11ec94b62cfa93678b197fb78e",
     //VoidChain robotaccountaddress(uniqueone) "txhash_local":  "0xf004d67b86307f38fa59f134160fa875859bca657800a03497c415af235b5bfb",
     //eth transactionhash "txhash_tc":  "",
    //VoidChain transactionhash "status":  102,
     "status_detail":  "2 blocks confirmed",
    //eth transactionalreadyhas2confirm "active_time":  0,
     "process":  false
  }
}Status:  Import_chain_robot = uint(100) //chain asset to chain robot stageImport_chain_End = uint(106) //cross chain successfulImport_MAP_TC = uint(200) // chain robot mapping VoidChain stageImport_MAP_GEThash = uint(201) // VoidChain map stageImport_Map_End = uint(203) // map end if fail return to 106Import_scucessful = uint(999) //successfulImport_fail = uint(1000) //fail

On this page