AuroraDAO / idex-api-docs

IDEX API documentation (work in progress)
81 stars 27 forks source link

Transferring Coins out from Wallet and Depositing to IDEX #22

Open RZeynalov opened 6 years ago

RZeynalov commented 6 years ago

Hi All,

Anybody knows how make transferring coins via API? does such-like function exist ? And how to deposit coins from the Wallet to IDEX?

Pls kindly help)

raypulver commented 6 years ago

Transferring tokens and depositing to IDEX has to be done with the Ethereum API by signing and dispatching a transaction from the wallet which owns the tokens. The IDEX platform reads deposits directly from the blockchain. For transfers, make sure your tokens have been withdrawn from IDEX, then send a transaction directly to the token contract which calls transfer(address,uint256) For deposits check out the documentation for deposit() and depositToken(address,uint256) -- depositToken requires you to call approve(address,uint256) on the token contract itself to approve IDEX to receive your tokens (i.e. depositing tokens requires 2 transactions)

RZeynalov commented 6 years ago

Thx raypulver,

Is it possible to make deposits using web3 py library, if yes, can you pls send small example. I can successfully transfer coins to another wallets via web3 py but experiencing problems to deposit coins.

https://etherscan.io/tx/0x9102bb18baab71d337f9c5be3a7a84f62d97903871b0fdf7510d74ac66d68bd8

Thank you all in advance!