跨链元空间接口
公链资产转账结果查询在线调用
POST
chain_dexSwap
(公链资产转账结果查询)
参数
Chain: 公链标识
Hash: 交易hash
示例代码
{
"jsonrpc": "3.0",
"method": "chain_dexSwap",
"params": [
"opcode=ActiveRobot&subcode=TransResult&chain=&hash=",
"encryp=none"
],
"id": "aa80aa0c6bb0c7d81ac7e5b3"
}{
"jsonrpc": "3.0",
"id": "3e61bc23b83a8c354afac729",
"result": {
"ret": "0",
"err": "",
"content": "status=2"
}
} 注: ret 非0 转账失败 ret 为0 同时 status=2 转账成功,否则需要等待