polykey nodes
add
- Adds an eexternal node to the nodeGraph
- NodeID to be added is a required parameter
- Host is the second required parameter
- Port is the third required parameter
Usage:
> polykey nodes add v2ki21482dokemqrrrc9e3oqr3s43nh3t92cbjua2vks3aopt1vr0 127.0.0.1 50366
claim
- Claim a different node into your nodeGraph as your own
- Requires the claim permission from the node to be claimed
- Requires nodeID as a parameter
Usage:
# From node which is being claimed
> polykey -np ./tmp/nodeA identities allow vctg4j8988mkobuvruaj2ijmij6jinvk8nf714f0s11kq3blc8g00 claim
> polykey nodes claim v2ki21482dokemqrrrc9e3oqr3s43nh3t92cbjua2vks3aopt1vr0
Successfully generated a cryptolink claim on Keynode with ID v2ki21482dokemqrrrc9e3oqr3s43nh3t92cbjua2vks3aopt1vr0
connections
- Lists all the active connections from the nodeGraph
Usage:
> polykey nodes connections
host hostname nodeIdEncoded port timeout usageCount
127.0.0.1 N/A v2ki21482dokemqrrrc9e3oqr3s43nh3t92cbjua2vks3aopt1vr0 50366 50126 0
find
- Attempts to find a node
- Requires nodeID as a parameter
Usage:
> polykey nodes find vctg4j8988mkobuvruaj2ijmij6jinvk8nf714f0s11kq3blc8g00
Found node at 127.0.0.1 53002
ping
- Pings a node to check if it is online and accessible
- Requires nodeID as a parameter
Usage:
> polykey nodes ping vctg4j8988mkobuvruaj2ijmij6jinvk8nf714f0s11kq3blc8g00
Node is Active.
getall
- Gets all the nodes (active and previously active) from the nodeGraph
Usage:
> polykey nodes getall
NodeId v8l4cktkgpvg321cnedt9c3f9d8httkhvobsr09gpqf5frmv0gnog, Address v8l4cktkgpvg321cnedt9c3f9d8httkhvobsr09gpqf5frmv0gnog.mainnet.polykey.com-1314, bucketIndex 254
NodeId vuok4kot57278bmh8p6s5srnid99mnlrt0n7rm3saq6q9bpcv6bo0, Address vuok4kot57278bmh8p6s5srnid99mnlrt0n7rm3saq6q9bpcv6bo0.mainnet.polykey.com-1314, bucketIndex 255