deemru / w8io

Waves Platform blockchain explorer (w8.io)
https://w8.io
MIT License
15 stars 16 forks source link

How to config w8io on our own node ? #7

Closed narmathamuthu closed 4 years ago

narmathamuthu commented 5 years ago

Hi team ,

I have done the this code configuration on my local system.

But i got blank page ( PFA ) .

Screenshot from 2019-10-19 17-44-37

So how to config our node data base ?

Please explain what we need do to done ?

deemru commented 5 years ago

Sorry, i didn't check working from scratch at last commits, there were some changes, it is fixed now.

Installation

Running

narmathamuthu commented 5 years ago

Hi ,

I got issue when i run the command ( php w8io_updater.php )

PFA.

Screenshot from 2019-10-21 14-47-23

Can you please explain me.

deemru commented 5 years ago

You should cleanup and start from scratch: https://github.com/deemru/w8io/issues/7#issuecomment-544160042

narmathamuthu commented 5 years ago

Hi deemru ,

Okay Fine.

If possible to change the W8IO_NODES ?

Like our private node.

Because i have done private node configuration.

deemru commented 5 years ago

If possible to change the W8IO_NODES ?

Just make sure that everything is working properly in the default config.

Then make any changes according your needs.

narmathamuthu commented 5 years ago

Hi , Now i got response on terminal .

Response like ( 2019.10.21 15:37:20 INFO: 2383 (transactions) ).

But still now i got blank page.

Can you please explain me what i am wrong.

How to get the API functionality please ?

PFA.

Screenshot from 2019-10-21 15-40-35

deemru commented 5 years ago

But still now i got blank page.

If HTTP routing is correctly set to index.php then you must check/edit W8IO_ROOT: https://github.com/deemru/w8io/blob/7a09e84af7e66530ab028c72adca32bad1f406dd/w8io_config.sample.php#L12

For example if a site is located at http://127.0.0.1/w8io-test/ then W8IO_ROOT should be defined as:

define( 'W8IO_ROOT', '/w8io-test/' );
narmathamuthu commented 5 years ago

Hi we can't change W8IO_ROOT path.

My Browser Link ( http://localhost/w8io/index.php/ )

Still now we got blank page,

Can you please explain me?

:cry:

deemru commented 5 years ago

Hi we can't change W8IO_ROOT path.

Why you can not change W8IO_ROOT?

Can you please explain me?

There is an error on your side.

If you provide your w8io and http server configs i can help.

narmathamuthu commented 5 years ago

@deemru

Hi , kindly find the attachment.

Screenshot from 2019-10-21 18-13-26

Screenshot from 2019-10-21 18-13-34

deemru commented 5 years ago

If you use W8IO_ROOT = '/php70/w8io/' then you should use http://localhost/php70/w8io/

narmathamuthu commented 5 years ago

Yes !!! .

But still now we got blank page.

I got response only this link ( http://localhost/php70/w8io/tx/DPpPzGQ8X9h1zhXQ9rGAyvv594ECLFNksBHDFyyjoKkb ) .

But we can't get any other response like matcher exchange history etc...

And also how to get this functionality in our local system ( https://api.testnet.wavesplatform.com/v0/transactions/exchange?matcher=3N8aZG6ZDfnh8YxS6aNcteobN8eXTWHaBBd&amountAsset=WAVES&priceAsset=DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn&limit=1 ). With our node

deemru commented 5 years ago

But we can't get any other response like matcher exchange history etc...

Got it, check the databases permissions at /php70/w8io/var/db/

Try: chmod -R 777 /var/www/html/php70/w8io/var/

narmathamuthu commented 5 years ago

@deemru Wow its showing result now.

We need to change network configuration using this ( define( 'W8IO_NETWORK', 'T' ); ) . Its correct ?

I have another one doubt how to build this functionality using our node ( https://api.testnet.wavesplatform.com/v0/transactions/exchange?matcher=3N8aZG6ZDfnh8YxS6aNcteobN8eXTWHaBBd&amountAsset=WAVES&priceAsset=DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn&limit=1 )

deemru commented 5 years ago

We need to change network configuration using this ( define( 'W8IO_NETWORK', 'T' ); ) . Its correct ?

If your chainId is 'T' then yes.

I have another one doubt how to build this functionality using our node ( https://api.testnet.wavesplatform.com/v0/transactions/exchange?matcher=3N8aZG6ZDfnh8YxS6aNcteobN8eXTWHaBBd&amountAsset=WAVES&priceAsset=DWgwcZTMhSvnyYCoWLRUXXSH1RSkzThXLJhww9gwkqdn&limit=1 )

It is not related to w8io.

narmathamuthu commented 4 years ago

@deemru

If possible to get the all response in JSON format ?

deemru commented 4 years ago

will be in next version

narmathamuthu commented 4 years ago

Okay thank you so much. Once released next version kindly let us know. We are waiting :)