sunswap接口文档v2,上面的合约具体怎么调用呀,我的是java代码
JSONObject data = new JSONObject(); data.put("owner_address","123"); data.put("function_selector","allPairs(uint)"); data.put("contract_address","TKWJdrQkqHisa1X8HUdHEfREvTzw4pMAaY"); data.put("parameter",""); HTTPAPI httpapi = new HTTPAPI("https://pabc.ablesdxd.link/swapv2/triggerconstantcontract"); String result = httpapi.Post(data.toString());
返回{"code":404,"message":"interface [/swapv2/triggerconstantcontract] non exist"}
这个是Factory里的allPairs(uint) function,具体要怎么才能调用呢
求指点~