Cross-chain Metaspace Interface
Query Public Chain AssetsTry API
POST
chain_dexSwap
(Query Public Chain Assets)
description: For public chains outside VoidChain, configure the corresponding RPC host in data/tmac/rpc.host before access works correctly.
Parameters
chain: chainID
address: contractaddress, ifempty, queryplatform coin
findaddr: targetaddress
Example Code
{
"jsonrpc": "3.0",
"method": "chain_dexSwap",
"params": [
"opcode=ActiveRobot&subcode=QueryOtherCoin&chain=&address=&findaddr=",
"encryp=none"
],
"id": "b25f5666f2271cde7f4bafe7"
}{
"jsonrpc": "3.0",
"id": "b25f5666f2271cde7f4bafe7",
"result": {
"ret": "0",
"err": "",
"content": {
"Amount": "0x0000000000000000000000000000000000000000000000004563918244f40000",
"Decimals": "0x0000000000000000000000000000000000000000000000000000000000000012"
}
}
}