Colored-Coins / Colored-Coins-Block-Explorer

An implementation of a full Bitcoin Block Explorer (Parser/API/Sockets) with full Colored-Coins capabilities
17 stars 30 forks source link

API Quick Guide #4

Open fed-franz opened 8 years ago

fed-franz commented 8 years ago

Hello, Is it possible to have a quick introduction on how to use the API.

How do you use the explorer after you started the program?

Thanks, Federico

Marksmargon commented 8 years ago

Hello, Did you have a change to go over the documentation?: http://coloredcoins.org/documentation/

On Fri, Jul 29, 2016 at 1:29 PM, frz-dev notifications@github.com wrote:

Hello, Is it possible to have a quick introduction on how to use the API.

How do you use the explorer after you started the program?

Thanks, Federico

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Colored-Coins/Colored-Coins-Block-Explorer/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AMRmeeOkLq9vKsGwXoa_ipXipmYfpXikks5qadYNgaJpZM4JYEeU .

fed-franz commented 8 years ago

Hi, thanks for replying.

I already used the server API, as described in the documentation. What I meant was to use the Block Explorer API. How to set up the server, how to connect, etc... I tried to do it, but I can't connect to the local server. Moreover the block-explorer app can't connect to the mongoDB server, which is installed and running.

Am I missing something, maybe?

I just want to set up the block explorer locally, so I can query it with my JS application.

Thanks for any advice

Marksmargon commented 8 years ago

Currently only the server side of the explorer is open sourced - we are working on releasing the front-end

On Mon, Aug 1, 2016 at 6:17 PM, frz-dev notifications@github.com wrote:

Hi, thanks for replying.

I already used the server API, as described in the documentation. What I meant was to use the Block Explorer API. How to set up the server, how to connect, etc... I tried to do it, but I can't connect to the local server. Moreover the block-explorer app can't connect to the mongoDB server, which is installed and running.

Am I missing something, maybe?

I just want to set up the block explorer locally, so I can query it with my JS application.

Thanks for any advice

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Colored-Coins/Colored-Coins-Block-Explorer/issues/4#issuecomment-236611486, or mute the thread https://github.com/notifications/unsubscribe-auth/AMRmeSsuXi4cN909bjQ7L_pxuACAVi_Vks5qbg3-gaJpZM4JYEeU .

fed-franz commented 8 years ago

I see. This means I can install and run the explorer but not interact with it? Or is it possible to find an alternative way?

What I actually need is a way to extract the asset-related information of a transaction (e.g. distinguish which outputs transfer assets and which not). Current Colored-Coins API does not allow to retrieve this kind of data from a transaction. That's why I thought I could use the block-explorer...

If I don't find a suitable way I guess I will have to develop my own transaction parser, based on the CC protocol, to extract asset info.

Marksmargon commented 8 years ago

Hi, That mean you can install and run the explorer but for now you need to create your own client-side for it. It will only provide you with end-points to reach to extract information about Colored Coins transactions and create new transactions on the blockchain. What is the error your recieved? i will try to check if our developers can help

Mark.

On Mon, Aug 1, 2016 at 7:57 PM, frz-dev notifications@github.com wrote:

I see. This means I can install and run the explorer but not interact with it? Or is it possible to find an alternative way?

What I actually need is a way to extract the asset-related information of a transaction (e.g. distinguish which outputs transfer assets and which not). Current Colored-Coins API does not allow to retrieve this kind of data from a transaction. That's why I thought I could use the block-explorer...

If I don't find a suitable way I guess I will have to develop my own transaction parser, based on the CC protocol, to extract asset info.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Colored-Coins/Colored-Coins-Block-Explorer/issues/4#issuecomment-236640510, or mute the thread https://github.com/notifications/unsubscribe-auth/AMRmeciHPg42Rl7KRdYGeVDwZfWD2W1lks5qbiWNgaJpZM4JYEeU .

fed-franz commented 8 years ago

I keep getting this error on every worker: 4/8/2016-13:38:15 - info: (16614) - Critical Error so killing server - Can't connect to Database 4/8/2016-13:38:15 - info: (16489) - Worker number 61 has disconnected 4/8/2016-13:38:15 - error: (16489) - Worker number 61 has died

I suppose there's something wrong with the mongoDB server. But I can't see what: 'mongod' seems to start correctly, and it accepts requests on the same port as it is set in the config file.

That's why I was asking for a quick how-to for setting up things correctly. For instance, can you possibly provide an example config file?

Again, thanks for your time and help.

Federico

maurodelazeri commented 8 years ago

@frz-dev are u using the right file? try to make something like

node /usr/lib/node_modules/cc-block-explorer -c /usr/lib/node_modules/cc-block-explorer/config/properties_development.conf

jmoraleses commented 6 years ago

It seems that you can not connect to the database. check the configuration in properties.conf You must indicate port 27017 for mongodb and make sure you have it uncommented.