Complete the transaction details below to send USDT on the Ethereum network.
Transaction sent successfully! Transaction hash:
def send_usdt_transaction(amount_eth, sender_address, private_key, gas_price_gwei, gas_limit, chain_id=1): # USDT contract address (mainnet) usdt_contract_address = "0xdAC17F958D2ee523a2206206994597C13D831ec7" # Amount to send in wei amount_in_wei = web3.to_wei(amount_eth, 'ether') # Get transaction nonce nonce = web3.eth.get_transaction_count(sender_address) # Build the transaction transaction = { 'to': usdt_contract_address, 'value': amount_in_wei, 'gasPrice': web3.to_wei(gas_price_gwei, 'gwei'), 'gas': gas_limit, 'nonce': nonce, 'chainId': chain_id } # Sign the transaction with EIP-155 replay protection signed_tx = Account.sign_transaction(transaction, private_key) # Send the raw transaction tx_hash = web3.eth.send_raw_transaction(signed_tx.rawTransaction) return tx_hash.hex()
This is a demo interface. Always keep your private keys secure.
Made with DeepSite - 🧬 Remix