multiversx / mx-chain-proxy-go

🐙 MultiversX Proxy: The official implementation of the web proxy for the MultiversX blockchain. An intermediary that abstracts away the complexity of sharding, through a friendly HTTP API.
https://docs.multiversx.com/sdk-and-tools/proxy/
54 stars 18 forks source link

mx-chain-proxy-go

The MultiversX Proxy acts as an entry point into the MultiversX Network.

MultiversX Proxy - Architectural Overview

For more details, go here.

Rest API endpoints

V1.0

address

transaction

vm-values

network

validator

block

Please note that altered-accounts endpoints will only work if the backing observers of the Proxy have support for historical balances (--operation-mode historical-balances when starting the node)

blocks

block-atlas

hyperblock

V_next

This serves as a placeholder for further versions in order to provide a real use-case example of how performing CRUD operations over endpoints works. What is different from v1_0:

The rest of endpoints remain the same.

Faucet

The faucet feature can be activated and users calling an endpoint will be able to perform requests that send a given amount of tokens to a specified address.

In order to use it, first set the FaucetValue from config.toml to a value higher than 0. This will activate the feature. Then, provide a walletKey.pem file near config.toml file. This will make the /transaction/send-user-funds endpoint available.

build docker image

 docker image build . -t chain-proxy-local -f ./docker/Dockerfile

run proxy with docker

docker run -p 8080:8080 chain-proxy-local --log-level "*:DEBUG"