Liking cljdoc? Tell your friends :D

vm-agent.besu


add-peerclj

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/
```
sourceraw docstring

add-validatorclj

Proposes adding a validator with the specified address.

Proposes adding a validator with the specified address.
sourceraw docstring

create-genesisclj

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
```
sourceraw docstring

read-accountsclj

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/
```
sourceraw docstring

read-addressclj

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'
```
sourceraw docstring

read-block-numberclj

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'
```
sourceraw docstring

read-enode-urlclj

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
```
sourceraw docstring

read-genesisclj

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'
```
sourceraw docstring

read-peersclj

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/
```
sourceraw docstring

read-public-keyclj

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'
```
sourceraw docstring

read-validatorsclj

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/'
```
sourceraw docstring

remove-peerclj

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/
```
sourceraw docstring

remove-validatorclj

Proposes removing a validator with the specified address.

Proposes removing a validator with the specified address.
sourceraw docstring

send-raw-transactionclj

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.
sourceraw docstring

syncingclj

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'
```
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close