Documentation
¶
Overview ¶
Package admin implements RPC API bindings for methods in the "admin" namespace.
Index ¶
- func AddPeer(url *enode.Node) w3types.RPCCallerFactory[bool]
- func AddTrustedPeer(url *enode.Node) w3types.RPCCallerFactory[bool]
- func NodeInfo() w3types.RPCCallerFactory[*NodeInfoResponse]
- func RemovePeer(url *enode.Node) w3types.RPCCallerFactory[bool]
- func RemoveTrustedPeer(url *enode.Node) w3types.RPCCallerFactory[bool]
- type NodeInfoResponse
- type PortsInfo
- type ProtocolInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPeer ¶
func AddPeer(url *enode.Node) w3types.RPCCallerFactory[bool]
AddPeer adds the given peer to the node's peer set and returns a bool indicating success.
func AddTrustedPeer ¶
func AddTrustedPeer(url *enode.Node) w3types.RPCCallerFactory[bool]
AddTrustedPeer adds the given peer to the trusted peers list and returns a bool indicating success.
func NodeInfo ¶
func NodeInfo() w3types.RPCCallerFactory[*NodeInfoResponse]
NodeInfo returns information about the running node.
func RemovePeer ¶
func RemovePeer(url *enode.Node) w3types.RPCCallerFactory[bool]
RemovePeer disconnects from the given peer if the connection exists and returns a bool indicating success.
func RemoveTrustedPeer ¶
func RemoveTrustedPeer(url *enode.Node) w3types.RPCCallerFactory[bool]
RemoveTrustedPeer removes a remote node from the trusted peers list and returns a bool indicating success.
Types ¶
type NodeInfoResponse ¶
Click to show internal directories.
Click to hide internal directories.