Parameters
- addressstringREQUIRED
The account address for which the information is to be retrieved
- blockReferencestringREQUIRED
The block number in either hexadecimal or integer format, or utilize tags for convenience. Available tags include 'latest' for the latest mined block, 'pending' for the pending state/transactions, and 'safe' or 'finalized' to indicate different degrees of block confirmation
Returns
- resultobject
A result object which contains the following fields:
- balancestring
The current balance of the account in wei
- noncestring
The transaction count of an account
- codeHashstring
A 32 byte hash of the code of the account
Request
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"balance": "0x3634df6379405913b7",6"nonce": "0x2aec",7"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"8}9}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"balance": "0x3634df6379405913b7",6"nonce": "0x2aec",7"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"8}9}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free