ethereumjs-client › "rpc/modules/admin" › Admin
admin_* RPC module
memberof
module:rpc/modules
- Admin
+ new Admin(node
: Node): Admin
Defined in lib/rpc/modules/admin.ts:17
Create admin_* RPC module
Parameters:
Name | Type |
---|---|
node |
Node |
Returns: Admin
• _chain: Chain
Defined in lib/rpc/modules/admin.ts:15
• _ethProtocol: EthProtocol
Defined in lib/rpc/modules/admin.ts:17
• _node: Node
Defined in lib/rpc/modules/admin.ts:16
▸ nodeInfo(params
: any, cb
: Function): Promise‹any›
Defined in lib/rpc/modules/admin.ts:38
Returns information about the currently running node. see for reference: https://geth.ethereum.org/docs/rpc/ns-admin#admin_nodeinfo
Parameters:
Name | Type |
---|---|
params |
any |
cb |
Function |
Returns: Promise‹any›