> For the complete documentation index, see [llms.txt](https://andelf.gitbook.io/tron/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://andelf.gitbook.io/tron/tron-by-example/call-justswap.md).

# Call Justswap

JustSwap's trade pair contract is created by contract, so it does not have an API on-chain.

To call it, you need to set ABI manually.

ABI json file: <https://github.com/andelf/tronpy/blob/master/examples/JustSwapExchange.abi>

## Python

Ref: <https://github.com/andelf/tronpy/blob/master/examples/justswap.py>

## JavaScript

```
const CONTRACT = "T....."; // the address

const abi = [.....]; // the json object
const contract = tronWeb.contract(abi, CONTRACT);

const balance = await contract.methods.xxxxx(....).call();
```
