LivInTheLookingGlass / visualizer

https://gappleto97.github.io/visualizer
13 stars 1 forks source link

Detect Counterparty/Colored Coin transactions #11

Open LivInTheLookingGlass opened 9 years ago

LivInTheLookingGlass commented 9 years ago

Possibly not feasible with current setup, but needs investigation.

LivInTheLookingGlass commented 9 years ago

Access to the data field of the transaction will likely be necessary. This probably cannot be done (efficiently).

LivInTheLookingGlass commented 9 years ago

Impossible until blockchain.info updates their API, or I move to a different one entirely. Closing for now. :(

LivInTheLookingGlass commented 9 years ago

https://counterpartychain.io/api

May be possible!

LivInTheLookingGlass commented 9 years ago

Step 1) Add node Step 2) Make ajax call to https://counterpartychain.io/api/transaction/{TXID} Step 3) have success check if the "success" property is 1 Step 4) if it's 1, change the node color to purple Step 5) change source color to pink, destination color to white

Pros: This is a cool feature Cons: This might murder performance if I'm not careful

LivInTheLookingGlass commented 9 years ago

Looking at data: this murders performance (doubles CPU utilization) for almost no gain.

I'll publish what I have now in a seperate branch, but I won't be putting it on the main unless it can be optimized much further.

LivInTheLookingGlass commented 9 years ago

http://docs.coinprism.apiary.io/#reference/blockchain-query-apis/get-a-transaction/get

Colored coins API

LivInTheLookingGlass commented 8 years ago

These could be handled by two web workers. It would still increase transaction latency by several seconds, but it would be a good way to start.