@@ -21,13 +21,15 @@ Simple WalletConnect v2 integration package for Vue3 apps.
2121 - [ FetchGasPrice] ( #fetchgasprice )
2222 - [ FetchBlockNumber] ( #fetchblocknumber )
2323 - [ FetchTransaction] ( #fetchtransaction )
24+ - [ FetchTransactionReceipt] ( #fetchtransactionreceipt )
2425 - [ SendTransaction] ( #sendtransaction )
2526 - [ SignMessage] ( #signmessage )
2627 - [ Multicall] ( #multicall )
2728 - [ FetchBalance] ( #fetchbalance )
2829 - [ FetchToken] ( #fetchtoken )
2930 - [ ReadContract] ( #readcontract )
3031 - [ WriteContract] ( #writecontract )
32+ - [ ParseEvents] ( #parseevents )
3133 - [ WatchContractEvent] ( #watchcontractevent )
3234 - [ EstimateWriteContractGas] ( #estimatewritecontractgas )
3335 - [ Composable] ( #composable )
@@ -194,7 +196,17 @@ let data = await fetchBlockNumber()
194196` ` ` js
195197import {fetchTransaction } from ' @kolirt/vue-web3-auth'
196198
197- let txn = await fetchTransaction ({
199+ let transaction = await fetchTransaction ({
200+ hash: ' 0x7ed8dc64f54ae43f4d53173e95aa929c52de44ec5cea8c28246989914ed7f4fb'
201+ })
202+ ` ` `
203+
204+ ### fetchTransactionReceipt
205+
206+ ` ` ` js
207+ import {fetchTransactionReceipt } from ' @kolirt/vue-web3-auth'
208+
209+ let transactionReceipt = await fetchTransactionReceipt ({
198210 hash: ' 0x7ed8dc64f54ae43f4d53173e95aa929c52de44ec5cea8c28246989914ed7f4fb'
199211})
200212` ` `
@@ -349,6 +361,32 @@ await writeContract({
349361 })
350362` ` `
351363
364+ ### ParseEvents
365+
366+ ` ` ` js
367+ import {erc20ABI , fetchTransactionReceipt , parseEvents } from ' @kolirt/vue-web3-auth'
368+
369+ const transactionReceipt = await fetchTransactionReceipt ({
370+ hash: ' 0x2a328737e94bb243b1ff64792ae68cd6c179797dc1de1e092c96137f0d3404c3'
371+ })
372+
373+ const events = parseEvents ({abi: erc20ABI }, transactionReceipt )
374+ /**
375+ * Result in events
376+ *
377+ * [
378+ * {
379+ * args: {
380+ * owner: '0xaA916B4a4cDbEFC045fa24542673F500a11F5413',
381+ * spender: '0x023963f7e755bE4F743047183d1F49C31E84AEa4',
382+ * value: 1000000000000000000n
383+ * },
384+ * eventName: 'Approval'
385+ * }
386+ * ]
387+ */
388+ ` ` `
389+
352390### WatchContractEvent
353391
354392` ` ` js
0 commit comments