Skip to Content

Blockscout action reference

This page is generated from the plugin registry. Do not edit it by hand.

Query the Blockscout block explorer REST API

For guidance and examples see the Blockscout guide.

Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.

ActionAction type
Get Address Balanceblockscout/get-address-balance
Get Address Infoblockscout/get-address-info
Get Address Countersblockscout/get-address-counters
Get Transactionblockscout/get-transaction
Get Token Infoblockscout/get-token-info

Get Address Balance

Action type: blockscout/get-address-balance. Connection: optional.

Look up the native coin balance and metadata for an address

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringNo1chain ids 1, 10, 100, 137, 4663, 5031, 8453, 42161, 50312, 84532, 5042002, 11155111Chain. Which chain’s Blockscout explorer to query. Defaults to Ethereum mainnet. For a chain not listed here, add a Blockscout connection with its instance URL.
addressstringYesAddress.

Outputs

OutputDescription
successWhether the lookup succeeded
addressThe resolved address
balanceNative coin balance in wei
isContractWhether the address is a contract
ensNameAssociated ENS name, if any
errorError message if failed

Get Address Info

Action type: blockscout/get-address-info. Connection: optional.

Fetch the full address summary including balance, reputation, and verification flags

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringNo1chain ids 1, 10, 100, 137, 4663, 5031, 8453, 42161, 50312, 84532, 5042002, 11155111Chain. Which chain’s Blockscout explorer to query. Defaults to Ethereum mainnet. For a chain not listed here, add a Blockscout connection with its instance URL.
addressstringYesAddress.

Outputs

OutputDescription
successWhether the lookup succeeded
addressThe resolved address
coinBalanceNative coin balance in wei
exchangeRateNative coin price in USD, if available
isScamWhether Blockscout flags the address as a scam
isVerifiedWhether the contract source is verified
isContractWhether the address is a contract
reputationBlockscout reputation flag (e.g. ok)
ensNameAssociated ENS name, if any
proxyTypeProxy type, if the address is a proxy (e.g. eip7702)
publicTagsPublic tags applied to the address
hasTokenTransfersWhether the address has token transfers
hasTokensWhether the address holds tokens
hasLogsWhether the address has event logs
blockNumberBalanceUpdatedAtBlock at which the balance was last updated
errorError message if failed

Get Address Counters

Action type: blockscout/get-address-counters. Connection: optional.

Fetch activity counters for an address (transactions, token transfers, gas usage)

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringNo1chain ids 1, 10, 100, 137, 4663, 5031, 8453, 42161, 50312, 84532, 5042002, 11155111Chain. Which chain’s Blockscout explorer to query. Defaults to Ethereum mainnet. For a chain not listed here, add a Blockscout connection with its instance URL.
addressstringYesAddress.

Outputs

OutputDescription
successWhether the lookup succeeded
transactionsCountTotal number of transactions
tokenTransfersCountTotal number of token transfers
gasUsageCountTotal gas used across transactions
validationsCountNumber of blocks validated by the address
errorError message if failed

Get Transaction

Action type: blockscout/get-transaction. Connection: optional.

Fetch details for a transaction by hash

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringNo1chain ids 1, 10, 100, 137, 4663, 5031, 8453, 42161, 50312, 84532, 5042002, 11155111Chain. Which chain’s Blockscout explorer to query. Defaults to Ethereum mainnet. For a chain not listed here, add a Blockscout connection with its instance URL.
txHashstringYesTransaction Hash.

Outputs

OutputDescription
successWhether the lookup succeeded
hashTransaction hash
statusTransaction status (ok / error)
valueValue transferred in wei
fromSender address
toRecipient address
blockNumberBlock number the tx was mined in
feeTransaction fee in wei
methodDecoded method name, if any
errorError message if failed

Get Token Info

Action type: blockscout/get-token-info. Connection: optional.

Fetch metadata for an ERC-20/721/1155 token contract

Inputs

FieldTypeRequiredDefaultAllowed valuesDescription
networkstringNo1chain ids 1, 10, 100, 137, 4663, 5031, 8453, 42161, 50312, 84532, 5042002, 11155111Chain. Which chain’s Blockscout explorer to query. Defaults to Ethereum mainnet. For a chain not listed here, add a Blockscout connection with its instance URL.
tokenAddressstringYesToken Address.

Outputs

OutputDescription
successWhether the lookup succeeded
addressToken contract address
nameToken name
symbolToken symbol
decimalsToken decimals
totalSupplyTotal supply in base units
typeToken type (ERC-20, ERC-721, ERC-1155)
holdersNumber of holders
errorError message if failed