This article is a mirror article of machine translation, please click here to jump to the original article.

View: 288|Reply: 1

[Source] .NET/C# ETH is tested on testnet Sepolia transfers

[Copy link]
Posted on 2025-9-30 12:16:48 | | | |
Requirements: Because I don't trust various wallet software on the Internet (my ETH and Ethereum have been stolen), I wrote a program using .NET/C# to transfer ETH. Since transferring money on the mainnet is more expensive and costs real balances, testing on the testnet is less expensive to transact.

Infura interface

If you don't want to synchronize blockchain data, you can call a third-party interface to query blockchain data. Sign up for an Infura account and get the interface address.
infura.io tutorial for detailed explanation
https://www.itsvse.com/thread-4522-1-1.html

As shown below:



SepoliaETH acquires

On the Sepolia Ethereum testnet, you need to get some test coins to complete our transactions, and you can get them for free as follows:
ETH Ethereum testnet Sepolia faucet acquires virtual currency
https://www.itsvse.com/thread-11080-1-1.html

.NET console app

Create a new .NET 8 console program with the following reference:

Wallet 1:0x23BE20Cbb18e5741D0F8f0d41ba348c5cffa1244
Wallet 2:0x5791123558c6e53A89a969B3931cF95Ed6C56c9A

Transfer money using Wallet One0.02 etherTwo wallets were given. The code is as follows:

Successful transfer address:The hyperlink login is visible.

As shown below:



Use Charles to grab a bag as follows:



eth_estimateGas
{
        "id": 1,
        "jsonrpc": "2.0",
        "method": "eth_estimateGas",
        "params": [{
                "from": "0x23BE20Cbb18e5741D0F8f0d41ba348c5cffa1244",
                "to": "0x5791123558c6e53A89a969B3931cF95Ed6C56c9A",
                "value": "0x470de4df820000"
        }]
}

eth_feeHistory
{
        "id": 1,
        "jsonrpc": "2.0",
        "method": "eth_feeHistory",
        "params": ["0x64", "latest", []]
}

eth_sendRawTransaction
{
        "id": 1,
        "jsonrpc": "2.0",
        "method": "eth_sendRawTransaction",
        "params": ["0x02f87283aa36a701830f425b830f447d825208945791123558c6e53a89a969b3931cf95ed6c56c9a87470de4df82000080c080a0691c04859a5b7497208752bc14d7f7a14e2459db4c9c760678b6a345c7022342a01e3c193ad6604940f7724fec0d6db9ba0 837fb1feeca7f5829ce687f9e41e14c"]
}

eth_getTransactionReceipt
{
        "id": 1,
        "jsonrpc": "2.0",
        "method": "eth_getTransactionReceipt",
        "params": ["0x042678ba0f454241249c6972f9570594228074f4a8834a7e59a74c4800c7ae75"]
}


Reference:The hyperlink login is visible.




Previous:ETH Ethereum testnet Sepolia faucet acquires virtual currency
Next:Shandong Province real estate (residential) mortgage information query
 Landlord| Posted on 2025-9-30 15:33:43 |
With Ethereum Sepolia Testnet RPC interface:The hyperlink login is visible.
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com