Skip to content
Cross-chain Metaspace Interface

Export Public Chain MnemonicTry API

POST chain_dexSwap (Export Public Chain Mnemonic)

description:The local public-chain address should not hold assets long term. It is a bridge for transferring assets in and out of the corresponding public chain. If assets need to be managed directly at this address, export and save its mnemonic to avoid asset loss if the edge trust machine is damaged.

Parameters

chain: chainname

Return Values

info:mnemonicbase64encoded

Example Code
Request
{
"jsonrpc": "3.0",
"method": "chain_dexSwap",
"params": [
  "opcode=Key&subcode=Export&chain=ETH",
  "encryp=none"
],
"id": "aa80aa0c6bb0c7d81ac7e5b3"
}
Response
{
 "jsonrpc":  "3.0",
 "id":  "cc9d882509dd9ccea764434a",
 "result": {
   "ret":  "0",
   "err":  "",
   "content": {
     "info":  "aW5pdGlhbCBjbGF3IGJsYWRlIHZhc3QgZmljdGlvbiBib29zdCBmYXQgYXRvbSBleGl0IHVuaWZvcm0gc3dhbGxvdyByZWNlaXZl"
  }
}
}

On this page