Interacting with Smart Contracts
You can use the Palm Network Block Explorer to interact with a smart contract built on the Palm network once a contract is verified on Palm testnet or Palm mainnet. Verification exposes the contract ensuring blockchain trustlessness and enables essential developer tools. You can divide these interaction into two categories:
- Read
- Write
Read values are read-only methods that query publicly available data attributes of a contract. To make a query you will need to have a web3 wallet. Querying does not require gas or transaction fees.
Find the contract address you want to interact with and enter it into the search bar in the Palm Network Block Explorer. In this example, we're searching at a verified contract that was deployed using Truffle.

a) Click on the contract address details to review the data. The contract must be verified in order to do any read or write queries.

b) There will be a green checkmark ✅ next to the Code tab if it is verified.

a) Click on the Read Contract tab to see various values that are queryable. When you try to query, you will be prompted to connect your web3 wallet.

b) In the example below we are querying the balanceOf the contract owner by their address .

Write values are methods that affect the state of the blockchain.
Many write functions can only be performed by an approved contract owner or other permissioned roles. Connect a wallet that has the appropriate write permissions when performing gated functions.
Find the contract address you want to interact with and enter it into the search bar. In this example, we're searching at a verified contract that was deployed using Truffle.

a) Click on the contract address to review the details. The contract must be verified in order to do any read or write queries.

b) There will be a green checkmark ✅ next to the Code tab if it is verified.
a) Click the Write Contract tab to perform write queries. In the example below we are trying the transferFrom method.
b) Input the following values:
- from(address) : The 0x address sending the NFT. Note this account is the one to connected to write
- to the contract.
- to(address) : The 0x address receiving the NFT.
- tokenId(uint256) : tokenID you want to transfer from
c) Then click Write

d) Success! ✅

