×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles
    Revision as of 16:53, 26 December 2018 by Mutante (talk | contribs) (Created page with "IDEX is a DEX (decentralized exchange) for ERC20 tokens based on Ethereum. - https://idex.market/ Here is a very simple example in Python to get the balances...")
    (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

    IDEX is a DEX (decentralized exchange) for ERC20 tokens based on Ethereum.

    - https://idex.market/

    Here is a very simple example in Python to get the balances of an address (wallet) on IDEX.

    
    def idex_balance(address):
        try:
            r = requests.post(IDEX_API_URL + 'returnBalances', data = {'address':address})
        except Exception as err:
            print('failed to talk to IDEX - {0} - {1}'.format(err.message, err.args))
            sys.exit(2)
        print(r.json())
    
    IDEX_API_URL = 'https://api.idex.market/'
    
    idex_balance('<REPLACE WITH YOUR ADDRESS>')
    
    
    
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.