Open melvincarvalho opened 10 years ago
You need to find a block explorer with /unspent api enabled for testnet.
The only otherway todo it is to run abe yourself.
Thanks I will look to see if I can find one, or maybe I can run a tesnet explorer myself.
I've already started coding one at :
http://testcoin.org/.well-known/ni/sha-256/AAAAAAAAAAX--HN-FN6076EaoWrmBS5rXPc3WGOUuYY
So maybe I can switch to ABE or give the correct unspent JSON.
Unfortunately http://blockexplorer.com/testnet/q doesn't appear to support "mytransactions" (I could parse those). http://blockexplorer.com/testnet/q/mytransactions/myTPjxggahXyAzuMcYp5JTkbybANyLsYBW says "invalid query".
Checked it out. It's not compatible neither with http://blockchain.info/unspent?address=12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX nor with http://blockexplorer.com/q/mytransactions/12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX. Brainwallet could've parse those formats right away. Note despite that mytransactions API looks simpler to implement it has its downsides, e.g. http://blockexplorer.com/q/mytransactions/12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX doesn't include generated coins.
How about
https://github.com/bitpay/insight
There's an API there and testnet explorer at
An address:
http://test.bitcore.io/address/mzj5ihuH8BLDY6aCKM91nYUgQFv6i94dnd
@melvincarvalho @brainwallet Does a reference implementation of a testnet transaction exist?
The dropdown on the side will generate addresses for altchains but not transactions. Hit a wall myself trying to work on testnet and could really use a reference for this.
@melvincarvalho @brainwallet I think that test.bitcore.io is a good place to start, the above JSON response gives "spentTxId", "spentIndex" and "spentTs" if the output is spent.
When trying to create a transaction from the default address
PK: 935ZTXVqEatu6BaEX6CHrzpXquDKurpVXD7q1FQ1K3pt8VwmG2L
I put this into transactions and is asks me if I want to download from:
http://blockchain.info/unspent?address=myTPjxggahXyAzuMcYp5JTkbybANyLsYBW
Looking at http://blockexplorer.com/testnet/address/myTPjxggahXyAzuMcYp5JTkbybANyLsYBW
It seems active ... but maybe we need a new data source for this kind of address?
Maybe: http://test.webbtc.com/address/myTPjxggahXyAzuMcYp5JTkbybANyLsYBW
It has an option for json too ...