brainwallet / brainwallet.github.io

Brainwallet site

Home Page:https://brainwallet.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no unspent data for testnet

melvincarvalho opened this issue · comments

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 ...

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.

@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.