Learn R Programming

gethr (version 0.1.0)

admin_addPeer: New node based on the enode

Description

admin_addPeer request to add a new remote node to the list of tracked static nodes.

Usage

admin_addPeer(enode)

Arguments

enode

String - URL of the remote peer to start tracking.

Value

Boolean - true the peer was accepted for tracking or false if some error occurred.

See Also

Other admin functions: admin_datadir, admin_nodeInfo, admin_peers, admin_setSolc, admin_startRPC, admin_startWS, admin_stopRPC, admin_stopWS, gethr

Examples

Run this code
# NOT RUN {
admin_addPeer('enode://c1a07558238c0b31657450dd34a558752d63150ce334f3e99b9187
262b612f48a713a083cd1601bfe3bba761a908264320885633fa81d6d6ca0ef7a6e84a2bcd
  @[127.0.0.1]:30301') 
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab