Write Data To Your Smart Contract On Anvil using Cast

InstructorNoah Hein

Share this video with your friends

Send Tweet

To send data, we'll use cast send to send a transaction that we signed with our private key to the network. We use Cast to call the increment function we built in a previous lesson. Then we will check Anvil to see the logs that our transaction generated.