- Background
- API key
- Full Node HTTP API
- Address Utilities
- Transactions
- Accounts
- Account Resources
- Query The Network
- Smart Contract
- Voting & SRs
- Proposals
- Pending pool
- Address Utilities
- Full Node Solidity HTTP API
- Transactions
- Blocks
- Account Resources
- Node & Chain
- Smart Contracts
- Voting & SRs
- Full Node JSON-RPC API
- Overview
- buildTransaction
- eth
- eth_accounts
- eth_blockNumber
- eth_call
- eth_chainId
- eth_coinbase
- eth_estimateGas
- eth_gasPrice
- eth_getBalance
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getCode
- eth_getStorageAt
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionByHash
- eth_getTransactionReceipt
- eth_getWork
- eth_protocolVersion
- eth_syncing
- eth_newFilter
- eth_newBlockFilter
- eth_getFilterChanges
- eth_getFilterLogs
- eth_uninstallFilter
- eth_getLogs
- net
- web3
- PolluxWeb
- address
- createAccount
- createRandom
- fromAscii
- fromDecimal
- fromMnemonic
- fromUtf8
- getEventByTransactionID
- getEventResult
- isAddress
- isConnected
- setHeader
- setDefaultBlock
- setPrivateKey
- setAddress
- sha3
- toAscii
- toBigNumber
- toDecimal
- toHex
- toRAM
- toUtf8
- BigNumber
- polluxweb.trx
- getAccount
- getAccountResources
- getApprovedList
- getAvailableUnfreezeCount
- getBalance
- getBandwidth
- getBlock
- getBlockByHash
- getBlockByNumber
- getBlockRange
- getBlockTransactionCount
- getBrokerage
- getCanDelegatedMaxSize
- getCanWithdrawUnfreezeAmount
- getChainParameters
- getConfirmedTransaction
- getContract
- getCurrentBlock
- getDelegatedResourceV2
- getDelegatedResourceAccountIndexV2
- getExchangeByID
- getNodeInfo
- getReward
- getTokenByID
- getTokenFromID
- getTokenListByName
- getTokensIssuedByAddress
- getTransaction
- getTransactionFromBlock
- getTransactionInfo
- getUnconfirmedBalance
- getUnconfirmedBrokerage
- getUnconfirmedReward
- listExchanges
- listExchangesPaginated
- listNodes
- listProposals
- listSuperRepresentatives
- listTokens
- sendRawTransaction
- sendHexTransaction
- sendToken
- sendTransaction
- sign
- signMessageV1
- signMessageV2
- timeUntilNextVoteCycle
- multiSign
- verifyMessage
- verifyMessageV2
- _signTypedData
- verifyTypedData
- polluxweb.transactionBuilder
- addUpdateData
- applyForSR
- cancelUnfreezeBalanceV2
- createAccount
- createAsset
- createProposal
- createSmartContract
- createToken
- delegateResource
- deleteProposal
- estimateEnergy
- extendExpiration
- freezeBalance
- freezeBalanceV2
- injectExchangeTokens
- purchaseAsset
- purchaseToken
- sendAsset
- sendToken
- sendTrx
- tradeExchangeTokens
- triggerConfirmedConstantContract
- triggerConstantContract
- triggerSmartContract
- undelegateResource
- unfreezeBalance
- unfreezeBalanceV2
- updateSetting
- updateAccountPermissions
- updateAsset
- updateBrokerage
- updateEnergyLimit
- updateToken
- vote
- voteProposal
- withdrawBlockRewards
- withdrawExchangeTokens
- withdrawExpireUnfreeze
- poxweb.contract
- polluxweb.utils
- Pollux CLI
GetNodeInfo
GET
/walletsolidity/getnodeinfo
Query Node Information. Returns information about current state of node. (Confirmed state)
Returns
Field | Type | Description |
---|---|---|
beginSyncNum | int64 | Begin sync block number |
block | string | Latest block information, including block height and block ID |
solidityBlock | string | The latest solidified block information, including block height and block ID |
currentConnectCount | int32 | The current connect count |
activeConnectCount | int32 | Active node connection count |
passiveConnectCount | int32 | Passive node connection count |
totalFlow | int64 | Total TCP flow |
peerInfoList | PeerInfo[] | Peer node information, please refer to protobuf for details |
configNodeInfo | ConfigNodeInfo | Node configuration information, please refer to protobuf for details |
machineInfo | MachineInfo | The information of the machine where the node is located, please refer to protobuf for details |
cheatWitnessInfoMap | map<string, string> | SR information that may be suspected of cheating |
Request
None
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/walletsolidity/getnodeinfo'
Responses
🟢200Success
application/json
Body
object {0}
Examples
{
"activeConnectCount": 2,
"beginSyncNum": 51292678,
"block": "Num:51292698,ID:00000000030eaa1a723fabafb74f6429f799b6ce5fa252a2a3a887d5f09a386a",
"cheatWitnessInfoMap": {},
"configNodeInfo": {
"activeNodeSize": 3,
"allowAdaptiveEnergy": 1,
"allowCreationOfContracts": 1,
"backupListenPort": 10001,
"backupMemberSize": 0,
"backupPriority": 6,
"codeVersion": "4.7.7",
"dbVersion": 2,
"discoverEnable": true,
"listenPort": 16666,
"maxConnectCount": 30,
"maxTimeRatio": 5,
"minParticipationRate": 0,
"minTimeRatio": 0,
"p2pVersion": "1",
"passiveNodeSize": 0,
"sameIpMaxConnectCount": 2,
"sendNodeSize": 3,
"supportConstant": true,
"versionNum": "18386"
},
"currentConnectCount": 2,
"machineInfo": {
"cpuCount": 4,
"cpuRate": 0.02531645569620253,
"deadLockThreadCount": 0,
"deadLockThreadInfoList": [],
"freeMemory": 538038272,
"javaVersion": "1.8.0_291",
"jvmFreeMemory": 6892044680,
"jvmTotalMemory": 9341566976,
"memoryDescInfoList": [
{
"initSize": 2555904,
"maxSize": 268435456,
"name": "Code Cache",
"useRate": 0.280184268951416,
"useSize": 75211392
},
{
"initSize": 0,
"maxSize": 536870912,
"name": "Metaspace",
"useRate": 0.15736564993858337,
"useSize": 84485040
},
{
"initSize": 0,
"maxSize": 528482304,
"name": "Compressed Class Space",
"useRate": 0.01738807133265904,
"useSize": 9189288
},
{
"initSize": 2577006592,
"maxSize": 2577006592,
"name": "Par Eden Space",
"useRate": 0.7867858585594181,
"useSize": 2027552344
},
{
"initSize": 322109440,
"maxSize": 322109440,
"name": "Par Survivor Space",
"useRate": 0.06835329011158443,
"useSize": 22017240
},
{
"initSize": 6442450944,
"maxSize": 6442450944,
"name": "CMS Old Gen",
"useRate": 0.0620808315773805,
"useSize": 399952712
}
],
"osName": "Linux 3.10.0-1160.49.1.el7.x86_64",
"processCpuRate": 0.02531645569620253,
"threadCount": 185,
"totalMemory": 16260251648
},
"passiveConnectCount": 0,
"peerList": [
{
"active": true,
"avgLatency": 157,
"blockInPorcSize": 0,
"connectTime": 1733715968858,
"disconnectTimes": 0,
"headBlockTimeWeBothHave": 0,
"headBlockWeBothHave": "Num:51292718,ID:00000000030eaa2e0fe351ecad86c8c9010ea66a2e8f7da8538a24e9fc8a9988",
"host": "/54.186.12.211",
"inFlow": 0,
"lastBlockUpdateTime": 1737618951334,
"lastSyncBlock": "",
"localDisconnectReason": "",
"needSyncFromPeer": false,
"needSyncFromUs": false,
"nodeCount": 0,
"nodeId": "8ddf9152697075885c778112e567422b9618ed9e703a52d8afdb4bcc6f7b076ca2e984aa0c67a277db256bb649e0bec130b164ad58ee4985ca9b696a81efd3cf",
"port": 16666,
"remainNum": 0,
"remoteDisconnectReason": "",
"score": 0,
"syncBlockRequestedSize": 0,
"syncFlag": false,
"syncToFetchSize": 0,
"syncToFetchSizePeekNum": -1,
"unFetchSynNum": 0
},
{
"active": true,
"avgLatency": 157,
"blockInPorcSize": 0,
"connectTime": 1733715968858,
"disconnectTimes": 0,
"headBlockTimeWeBothHave": 0,
"headBlockWeBothHave": "Num:51292718,ID:00000000030eaa2e0fe351ecad86c8c9010ea66a2e8f7da8538a24e9fc8a9988",
"host": "/54.69.254.172",
"inFlow": 0,
"lastBlockUpdateTime": 1737618951334,
"lastSyncBlock": "",
"localDisconnectReason": "",
"needSyncFromPeer": false,
"needSyncFromUs": false,
"nodeCount": 0,
"nodeId": "8ddf9152697075885c778112e567422b9618ed9e703a52d8afdb4bcc6f7b076ca2e984aa0c67a277db256bb649e0bec130b164ad58ee4985ca9b696a81efd3cf",
"port": 16666,
"remainNum": 0,
"remoteDisconnectReason": "",
"score": 0,
"syncBlockRequestedSize": 0,
"syncFlag": false,
"syncToFetchSize": 0,
"syncToFetchSizePeekNum": -1,
"unFetchSynNum": 0
}
],
"solidityBlock": "Num:51292680,ID:00000000030eaa08b589cf2a2a214f27dd0177f3c605002667c479d2506fd2f9",
"totalFlow": 0
}