Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no unspent data for testnet #39

Open
melvincarvalho opened this issue Dec 15, 2013 · 8 comments
Open

no unspent data for testnet #39

melvincarvalho opened this issue Dec 15, 2013 · 8 comments

Comments

@melvincarvalho
Copy link

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

@Shic1983
Copy link

You need to find a block explorer with /unspent api enabled for testnet.

The only otherway todo it is to run abe yourself.

@melvincarvalho
Copy link
Author

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.

@brainwallet
Copy link
Owner

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

@melvincarvalho
Copy link
Author

@brainwallet
Copy link
Owner

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
Copy link
Author

How about

https://github.com/bitpay/insight

There's an API there and testnet explorer at

http://test.bitcore.io/

An address:

http://test.bitcore.io/address/mzj5ihuH8BLDY6aCKM91nYUgQFv6i94dnd

@jcrubino
Copy link

jcrubino commented Mar 2, 2014

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

@jonasbits
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants