Normal transactions of an address (module=account, action=txlist); other actions share this path.
GET/api
- Takes: Crypto wallet
- Passive: the target is not contacted
Supports block range, pagination and sort order. For balance, action=balance takes address and an optional tag (latest or a hex block within the last 128); result is then a wei string.
Query parameters
chainidChain to query; 137 is Polygon Mainnet
moduleMust be account
actionWhich call to make
addressAddress to query
startblockBlock to start searching from
endblockBlock to stop at
pagePage number
offsetRecords per page
sortasc is oldest first, desc latest first
Response fields · 11ShowHide
status
"1" if data was returned, "0" otherwise
message
OK or an error description such as NOTOK
blockNumber
Block that included the transaction
timeStamp
Block time as a Unix timestamp in seconds
hash
Transaction hash
from
Sender address
to
Recipient address; empty for contract creations
value
Native amount in wei
gasUsed
Gas consumed
functionName
Decoded function signature when the contract is verified
isError
0 if executed successfully, 1 if it failed
curl 'https://api.etherscan.io/v2/api?chainid=137&module=account&action=txlist&address=0x0000000000000000000000000000000000000001&apikey=YOUR_API_KEY'{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "1000000",
"timeStamp": "1700000000",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000abc",
"from": "0x0000000000000000000000000000000000000001",
"to": "0x0000000000000000000000000000000000000002",
"value": "1000000000000000000",
"gasUsed": "21000",
"functionName": "",
"isError": "0"
}
]
}