Adds a static node.
Example:
curl -i \
-X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"enode-url":"enode://ea26ccaf0867771ba1fec32b3589c0169910cb4917017dba940efbef1d2515ce864f93a9abc846696ebad40c81de7c74d7b2b46794a71de8f95a0d019f494ff3@127.0.0.1:30303"}' \
http://localhost:8890/besu/peers/
Adds a static node. Example: ```shell curl -i \ -X POST \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -d '{"enode-url":"enode://ea26ccaf0867771ba1fec32b3589c0169910cb4917017dba940efbef1d2515ce864f93a9abc846696ebad40c81de7c74d7b2b46794a71de8f95a0d019f494ff3@127.0.0.1:30303"}' \ http://localhost:8890/besu/peers/ ```
Proposes adding a validator with the specified address.
Proposes adding a validator with the specified address.
Seeds the genesis.json with initial set of validators.
Example:
curl -i \
-X PUT \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"validators":["0x7838e914b7d5c67b69bc29853b36ba8d86f463bc"]}' \
http://localhost:8890/besu/genesis
Seeds the genesis.json with initial set of validators. Example: ```shell curl -i \ -X PUT \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -d '{"validators":["0x7838e914b7d5c67b69bc29853b36ba8d86f463bc"]}' \ http://localhost:8890/besu/genesis ```
Returns a list of account addresses that the client owns.
Example:
curl -i -H 'Accept: application/json' http://localhost:8890/besu/accounts/
Returns a list of account addresses that the client owns. Example: ```shell curl -i -H 'Accept: application/json' http://localhost:8890/besu/accounts/ ```
Returns the node address.
Example:
curl -i \
-H 'Accept: application/json' \
http://localhost:8890/besu/address'
Returns the node address. Example: ```shell curl -i \ -H 'Accept: application/json' \ http://localhost:8890/besu/address' ```
Returns the index corresponding to the block number of the current chain head.
Example:
curl -i \
-H 'Accept: application/json' \
http://localhost:8890/besu/block-number'
Returns the index corresponding to the block number of the current chain head. Example: ```shell curl -i \ -H 'Accept: application/json' \ http://localhost:8890/besu/block-number' ```
Returns the enode URL.
Example:
curl -i -H 'Accept: application/json' http://localhost:8890/besu/enode-url
Returns the enode URL. Example: ```shell curl -i -H 'Accept: application/json' http://localhost:8890/besu/enode-url ```
Returns the genesis.json file.
Example:
curl -i \
-H 'Accept: application/json' \
http://localhost:8890/besu/genesis'
Returns the genesis.json file. Example: ```shell curl -i \ -H 'Accept: application/json' \ http://localhost:8890/besu/genesis' ```
Returns networking information about connected remote nodes.
Example:
curl -i -H 'Accept: application/json' http://localhost:8890/besu/peers/
Returns networking information about connected remote nodes. Example: ```shell curl -i -H 'Accept: application/json' http://localhost:8890/besu/peers/ ```
Returns the node public key. Internally, this function calls the net_enode method which returns the enode-url. We then extract the public key from the enode URL.
Example:
curl -i \
-H 'Accept: application/json' \
http://localhost:8890/besu/public-key'
Returns the node public key. Internally, this function calls the net_enode method which returns the enode-url. We then extract the public key from the enode URL. Example: ```shell curl -i \ -H 'Accept: application/json' \ http://localhost:8890/besu/public-key' ```
Lists the validators defined in the latest block.
Example:
curl -i \
-H 'Accept: application/json' \
http://localhost:8890/besu/validators/'
Lists the validators defined in the latest block. Example: ```shell curl -i \ -H 'Accept: application/json' \ http://localhost:8890/besu/validators/' ```
Removes a static node.
Example:
curl -i \
-X DELETE \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"enode-url":"enode://ea26ccaf0867771ba1fec32b3589c0169910cb4917017dba940efbef1d2515ce864f93a9abc846696ebad40c81de7c74d7b2b46794a71de8f95a0d019f494ff3@127.0.0.1:30303"}' \
http://localhost:8890/besu/peers/
Removes a static node. Example: ```shell curl -i \ -X DELETE \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -d '{"enode-url":"enode://ea26ccaf0867771ba1fec32b3589c0169910cb4917017dba940efbef1d2515ce864f93a9abc846696ebad40c81de7c74d7b2b46794a71de8f95a0d019f494ff3@127.0.0.1:30303"}' \ http://localhost:8890/besu/peers/ ```
Proposes removing a validator with the specified address.
Proposes removing a validator with the specified address.
Sends a signed transaction. A transaction can send ether, deploy a contract, or interact with a contract.
Sends a signed transaction. A transaction can send ether, deploy a contract, or interact with a contract.
Returns an object with data about the synchronization status, or false if not synchronizing.
Example:
curl -i \
-H 'Accept: application/json' \
http://localhost:8890/besu/syncing'
Returns an object with data about the synchronization status, or false if not synchronizing. Example: ```shell curl -i \ -H 'Accept: application/json' \ http://localhost:8890/besu/syncing' ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close