Coder Social home page Coder Social logo

multichain-web-demo's Introduction

MultiChain

MultiChain is an open source platform for private blockchains, which offers a rich set of features including extensive configurability, rapid deployment, permissions management, native assets and data streams. Although it is designed to enable private blockchains, MultiChain provides maximal compatibility with the bitcoin ecosystem, including the peer-to-peer protocol, transaction/block formats and Bitcoin Core APIs/runtime parameters.

Copyright (c) 2014-2019 Coin Sciences Ltd
License: GNU General Public License version 3, see COPYING

Portions copyright (c) 2009-2016 The Bitcoin Core developers
Portions copyright many others - see individual files

System requirements

These compilation instructions have been tested on Ubuntu 16.04 x64 (xenial) and Ubuntu 18.04 x64 (bionic) only.

C++ compilers are memory-hungry, so it is recommended to have at least 1 GB of memory available when compiling MultiChain. With less memory, compilation may take much longer due to swapfile thrashing.

Linux Build Notes (on Ubuntu 16.04 x64 or later)

Install dependencies

sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-get install -y build-essential libtool autotools-dev automake pkg-config git
sudo apt-get install libboost-all-dev
sudo apt-get install libevent-dev

Clone MultiChain

git clone https://github.com/MultiChain/multichain.git

Prepare to download or build V8

cd multichain
MULTICHAIN_HOME=$(pwd)
mkdir v8build
cd v8build

You can use pre-built headers and binaries of Google's V8 JavaScript engine by downloading and expanding linux-v8.tar.gz in the current directory. If, on the other hand, you prefer to build the V8 component yourself, please follow the instructions in V8.md.

Compile MultiChain for Ubuntu (64-bit)

cd $MULTICHAIN_HOME
./autogen.sh
./configure
make

Notes

  • This will build multichaind, multichain-cli and multichain-util in the src directory.

  • The release is built with GCC after which strip multichaind strings the debug symbols, which reduces the executable size by about 90%.

Windows Build Notes

Please see the instructions in win.md to build MultiChain for use with Windows.

Mac Build Notes (on MacOS Sierra)

Please see the instructions in mac.md to build MultiChain for use with MacOS.

multichain-web-demo's People

Contributors

danagle avatar gidgreen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

multichain-web-demo's Issues

Linux code to windows code

Hi, is there anyone who can translate this linux language into a winodws language?
cat ~ / .multichain / chain1 / multichain.conf
grep rpc-port ~ / .multichain / chain1 / params.dat

error: -32601 Method not found

Hello, I am new in multi chain. I just installed this framework with following all the guides. But somehow I have an error with code -32601 which comes with desription of "Method not found". Other than that, there is also undefined index: address in page-permission.php on line 34. Can you please give some idea if there are any?

Error for web demo

[root@local multichain]# cat ~/.multichain/chain1/multichain.conf
rpcuser=multichainrpc
rpcpassword=9vyymfxCt51WqojUnWF8y9PgkfVMUVaXEAu7s2861voQ

[root@local multichain]# grep rpc-port ~/.multichain/chain1/params.dat
default-rpc-port = 4384 # Default TCP/IP port for incoming JSON-RPC API requests.

[root@local multichain]# cat config.txt
default.name=Default # name to display in the web interface
default.rpchost=127.0.0.1 # IP address of MultiChain node
default.rpcport=4384 # see rpc-port from chain parameters
default.rpcuser=multichainrpc # username for RPC from multichain.conf
default.rpcpassword=9vyymfxCt51WqojUnWF8y9PgkfVMUVaXEAu7s2861voQ

[root@local multichain]# ps aux | grep multichain
root 8633 0.3 0.4 954304 34916 ? SLsl 18:24 0:02 multichaind chain1 -daemon

Is my configuration error?

API error 702 on web demo

Hi,

I am getting the main web demo page but see some fields not filling up and a "Error 702, API not supported for this protocol version" I presume a version conflict between the server and the pages?

Fedora / PHP problem

People,

I installed this on my Fedora 25 x86_64 workstation and immediately got this error:

{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}

I realised I didn't have php installed but I use nginx instead of Apache so I had to install php-fpm instead of php but I still get that error . . any suggestions about getting this working besides uninstalling nginx, installing httpd and php ?

Thanks,
Phil.

multichain-web-demo doesn't show accurate values of asset on browser

Hi,

I tried spinning up multichain-web-demo, I see values printed on web-page shows endian specific data, where-as same transactions when performed on multichain-cli yields accurate results i.e via sendasset . That said I have a query :

  1. When values are key'd in, what command does https://github.com/MultiChain/multichain-web-demo/blob/master/page-issue.php#L103 perform i.e sendasset or something else ?

  2. Also can you help point us to source that's leveraged inorder to perform the same ?

Links do not work. Code error ?

The links in the menu do not work and there are no available nodes in the index page. I also see a piece of code in the landing page.

screenshot 9

Can't view asset in Multichain Explorer // HTTP 500

    Traceback (most recent call last):
    2/24/2020 4:40:32 PM   File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
    2/24/2020 4:40:32 PM     self.result = application(self.environ, self.start_response)
    2/24/2020 4:40:32 PM   File "/root/.local/lib/python2.7/site-packages/Mce/abe.py", line 362, in __call__
    2/24/2020 4:40:32 PM     content = content.encode('latin-1') # Convert Unicode escaped bytes into binary.  Used to be UTF-8.
    2/24/2020 4:40:32 PM Traceback (most recent call last):
    2/24/2020 4:40:32 PM UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 177649: ordinal not in range(256)
    2/24/2020 4:40:32 PM 10.42.3.39 - - [24/Feb/2020 14:40:32] "GET /MultiChain%20bchain/assetref/27-266-54164 HTTP/1.1" 500 59
    2/24/2020 4:40:32 PM   File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
    2/24/2020 4:40:32 PM     self.result = application(self.environ, self.start_response)
    2/24/2020 4:40:32 PM   File "/root/.local/lib/python2.7/site-packages/Mce/abe.py", line 362, in __call__
    2/24/2020 4:40:32 PM     content = content.encode('latin-1') # Convert Unicode escaped bytes into binary.  Used to be UTF-8.
    2/24/2020 4:40:32 PM UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 177649: ordinal not in range(256)
    2/24/2020 4:40:32 PM 10.42.3.39 - - [24/Feb/2020 14:40:32] "GET /MultiChain%20bchain/assetref/27-266-54164 HTTP/1.1" 500 59

Error accepting offer

When I complete an offer I get: "error -1 value is type array, expected real"
screenshot

Apache error log:
[Sun Jun 04 16:22:37.766605 2017] [:error] [pid 44703] [client 127.0.0.1:62544] PHP Notice: Undefined index: completeoffer in /Users/xxxx/Sites/multichain/page-accept.php on line 21, referer: http://multichain.local/?chain=default&page=accept

Connect more than onw node

hello, I wonder if this is possible to connect more than one Node to the web demo. the node section says "Connected Nodes" which initially is one. I Mean
to have 2 nodes showing connected. ex:

My Node
(first) Name: test3
...
(2nd) Name: Test2

Cannot store data more than 2MB

I have tried modifying maximum-block-size, target-block-time and max-std-op-return-size. still cannot store any file more than 2MB (2048KB)

"Error: HTTP 0" while accessing chaincode

Hi,
I created and started a multichain named as blockchain. On start it shows following info:

C:\multichain>multichaind blockchain -daemon

MultiChain Core Daemon build 1.0 beta 1 protocol 10008

Other nodes can connect to this node using:
multichaind [email protected]:2893

This host has multiple IP addresses, so from some networks:

multichaind [email protected]:2893

Node started

My multichain.conf file has following params:

rpcuser=multichainrpc
rpcpassword=7uCEV2CgVp27NpQ2AdqteyDQLZMks8VJPmF5WuqYSrGS
rpcport=2893
rpcallowip=192.168.1.121
rpcallowip=127.0.0.1
rpcallowip=10.0.2.15/255.0.0.0
rpcallowip=192.168.56.1/255.255.255.0
rpcallowip=192.168.1.0/255.255.255.0

I downloaded the github multichain web demo code and moved it to xampp apache server. I added the configuration file, i.e. config.txt as below:
blockchain.name=blockchain
blockchain.rpchost=192.168.1.121
blockchain.rpcport=2893
blockchain.rpcuser=multichainrpc blockchain.rpcpassword=7uCEV2CgVp27NpQ2AdqteyDQLZMks8VJPmF5WuqYSrGS

Now when I access localhost/multichain-demo-master and click on blockchain, It throws:
Error: HTTP 0
http://192.168.1.121:2893/

If I change the rcphost to 127.0.0.1, error still remains.

Please help me with the configurations to make it run.
error1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.