Cross-chain Metaspace Interface
Activate Public ChainTry API
POST
chain_dexSwap
(Activate Public Chain)
description:Only a public chain that has completed launch can be activated and enter normal operation.
Parameters
chainsymbolpublic chaincode
Begin startnumber
Len maximumreturn value
Sliceno 1 cross-chainmetaspacefixed toNo. 1space
Example Code
{
"jsonrpc": "3.0",
"method": "chain_dexSwap",
"params": [
"opcode=ActiveRobot&subcode=Activechain&chainsymbol=TC",
"encryp=none"
],
"id": "aa80aa0c6bb0c7d81ac7e5b3"
}{
"jsonrpc": "3.0",
"id": "8ea8f7248e93f4c3087ab78a",
"result": {
"ret": "0",
"err": "",
"content": {
"info": {
"Addrs": [
"0xcd8ae719d79026fb94c4732736840f71b1e78818",
"0x3725ad4a821347dfb6cf5c7f655722e907576e98"
],
"Names": [
"TC",
"ETH"
],
"Symbols": [
"TC",
"ETH"
],
"logos": [
"https://ip/tc.pnp",
"https://ip/eth.pnp",
]
}
}
}{
"jsonrpc": "3.0",
"id": "8ea8f7248e93f4c3087ab78a",
"result": {
"ret": "0",
"err": "",
"content": {
"info": [
{
"Name": "TC",
"Addr": "0xe725e10cb00fdd08fe439f68b1c10b947ec8ab6e"
},
{
"Name": "ETH",
"Addr": "0x1cc37bda9dfc0b6915f2e6d1190e64e90310623e"
}
]
}
}
}