Introduction to Public Actions
A brief introduction on what Public Actions are in viem.
A Public Action is an action that maps one-to-one with a "public" Ethereum RPC method (eth_blockNumber
, eth_getBalance
, etc). They are used with a Public Client.
Public Actions do not require any special permissions nor do they provide signing capabilities to the user. Examples of Public Actions include getting the balance of an account, retrieving the details of a specific transaction, and getting the current block number of the network.
Public Actions provide a simple and secure way to access public data on the Ethereum blockchain. They are widely used by dapps and other applications that need to retrieve information about transactions, accounts, blocks and other data on the network.