K
K
konstantinst132022-03-30 12:01:24
Cryptocurrency
konstantinst13, 2022-03-30 12:01:24

Is it possible to call a smart contract method (.sol) from a web3.js bot?

I wrote a smart contract (.sol) in the Solidity language that redistributes money from an Ethereum wallet to other Ethereum wallets. I need that when money is credited to the first wallet, a smart contract works and money is transferred to other wallets. I was advised to write and use for this purpose a bot on the web3.js or ethers.js library. Is it possible to call the transferMoney method of a smart contract (.sol) from a web3.js bot? (I need this so that when I sell my NFTs on OpenSea, the money from my Metamask wallet is transferred to other wallets. I will use the Ethereum and Polygon networks)

PS sorry if this is a simple question, I am new to Solidity. I searched for the answer to this question on the Internet and did not find)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question