CRYPTO NEWS

Starbucks teases Web3 rewards program to attract new customers

“This will create an entirely new set of digital network effects that will attract new customers and be accretive to existing customers in our core retail stores,” said interim CEO Howard Schultz.

How could i send a token instead of matic using web3.py? [duplicate]

This is what my code is currently, user = str(ctx.author.name+"#"+ctx.author.discriminator) try: transaction = { ‘to’: address[user], ‘value’: 5000000000000000, ‘gas’: 1000000, ‘maxFeePerGas’: w3.eth.gas_price, ‘maxPriorityFeePerGas’: w3.eth.gas_price, ‘nonce’: int(nonce["Bot"]), ‘chainId’: 137, } signed_txn = w3.eth.account.signTransaction(transaction, private_key=’private’) txid = w3.toHex(w3.eth.sendRawTransaction(signed_txn.rawTransaction)) num = int(f'{nonce["Bot"]}’) + 1 nonce["Bot"] = str(num) with open(‘nonce.json’, ‘w’) as f: json.dump(nonce, f, indent=4) await ctx.send("“`"+user+",nYou have::Listen

This is what my code is currently,

user = str(ctx.author.name+"#"+ctx.author.discriminator)     try:         transaction = {         'to': address[user],         'value': 5000000000000000,         'gas': 1000000,         'maxFeePerGas': w3.eth.gas_price,         'maxPriorityFeePerGas': w3.eth.gas_price,         'nonce': int(nonce["Bot"]),         'chainId': 137,         }         signed_txn = w3.eth.account.signTransaction(transaction, private_key='private')         txid = w3.toHex(w3.eth.sendRawTransaction(signed_txn.rawTransaction))         num = int(f'{nonce["Bot"]}') + 1         nonce["Bot"] = str(num)         with open('nonce.json', 'w') as f:             json.dump(nonce, f, indent=4)         await ctx.send("```"+user+",nYou have withdrawn AMOUNT TOKENnYour transaction id is:n"+str(txid)+"```")     except Exception as e:         await ctx.send(e) 

now if i instead want to send, for example WETH, how would i use the token instead of matic?

Starbucks teases Web3 rewards program to attract new customers

Shopping cart
There are no products in the cart!
Continue shopping
0