sdk-rpc-proxy
/
1.0.0-beta.14
sdk-rpc-proxy 1.0.0-beta.14
Install from the command line:
Learn more about npm packages
$ npm install @vechain/sdk-rpc-proxy@1.0.0-beta.14
Install via package.json:
"@vechain/sdk-rpc-proxy": "1.0.0-beta.14"
About this version
Welcome to the RPC Proxy of the VeChain SDK!
This project is designed to bridge the gap between Thor's RESTful API and Ethereum's JSON-RPC, for example to support the Remix IDE. By leveraging this proxy, users can seamlessly interact with the VeChainThor blockchain via RPC calls.
The RPC proxy is very simple to use. To run it:
yarn add @vechain/sdk-rpc-proxy
rpc-proxy
By default the Proxy is configured to be used with a solo node running in your local machine. If you want to change the default behaviour, simply create a config.json
file and pass it to the command when launching the RPC Proxy:
rpc-proxy -c <json config file>
Or:
rpc-proxy --config <json config file>
The config.json
file is used to configure the proxy server. It contains the following fields:
-
url
: The URL of the VeChain Thor node. -
port
: The port of the proxy server. -
accounts
: The accounts that the proxy server will use to sign transactions (can be a mnemonic or an array of private keys). -
verbose
: Wheter to enable verbose logging. -
debug
: Whether to enable debug mode. -
enableDelegation
: Whether to enable delegation.
As an example:
{
"url": "http://127.0.0.1:8669",
"port": 8545,
"accounts": {
"mnemonic": "denial kitchen pet squirrel other broom bar gas better priority spoil cross",
"count": 10
},
"verbose": true,
"enableDelegation": false
}
Details
- sdk-rpc-proxy
- vechain
- 6 months ago
- MIT
- 8 dependencies
Assets
- sdk-rpc-proxy-1.0.0-beta.14.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0