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.
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:
.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. |