Unknown model· unknown
from ShareGPT 90K (shared ChatGPT conversations)
can you tell me an example of a raw transaction request data that walletconnect will…
- User
can you tell me an example of a raw transaction request data that walletconnect will send need to send from the app to the users wallet
- Assistant
Here's an example of a raw transaction request data that WalletConnect might send from an app to a user's wallet:
css{ "id": 1, "jsonrpc": "2.0", "method": "eth_sendTransaction", "params": [ { "from": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e", "to": "0x5AEDA56215b167893e80B4fE645BA6d5Bab767DE", "gas": "0x76c0", "gasPrice": "0x9184e72a000", "value": "0x9184e72a", "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675" } ] }This raw transaction request data is formatted as a JSON-RPC request and is sent over WalletConnect's encrypted session. It includes the
idof the request, the JSON-RPC versionjsonrpc, the methodeth_sendTransaction, and theparamsfor the transaction. Theparamsinclude thefromaddress, thetoaddress, thegaslimit, thegasPrice, thevalue, and thedatafor the transaction.