I have checked this api. It is working. Thanks for the help. It gives me input address which I want. I have question in the following request. What is outputAddress?
https://blocktrades.us:443/api/v2/simple-api/initiate-trade
{
"inputCoinType": "btc",
"outputCoinType": "bts",
"outputAddress": "btsnow",
"outputMemo": ""
}
It is the address that will receive the Bitshares whenever you use the inputAddress that initiate-trade generates.
That call means, "Give me a Bitcoin address where I can send Bitcoin to Blocktrades. When Blocktrades gets my bitcoin, convert it into Bitshares at the current rate, and send it to the account named btsnow". In bitshares-speak, you're asking Blocktrades to act as a bridge, doing an instant conversion from Bitcoin to Bitshares.
I have account on https://bitshares.openledger.info. For instance these are the address of my account. How can I deposit to these account?
Symbol | Deposit to |
BTC | 12NbSB3X25XgrTHT3LFyjWESpe1JZsyDtN |
LTC | LQfeVhR1K274zWWr6ym1ZsZxQVbz7DrAub |
DOGE | D5CTahPejracpJuDbzBsSRrvp2ZhapJu1o |
As I mention above I use initiate-trade api and I am able to generate new input address every time. So I have a question where can I use old input address mentioned above?
These look like addresses you copied from the "Gateway" section of the deposit page. Those addresses are addresses owned by Blocktrades that are linked to your Bitshares account. Whenever you send Bitcoin to the address 12NbSB.., it will send the same amount of TRADE.BTC to your account (the account displayed in the left hand side of the screen under the identicon). You could generate these deposit addresses through the api like this:
{
"inputCoinType": "btc",
"outputCoinType": "trade.btc",
"outputAddress": "my-account-name-here"
}
You can reuse those addresses as many times as you like for as long as you like. You don't ever *need* to generate a new one, unless you want a new address for accounting reasons. Even though the wallet only shows you the most recent address, any of the previous addresses will continue to work as well.