feat(examples): add Python payment demo with web3.py #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a complete Tempo payment demo using web3.py.
Included in this example:
faucet.py: faucet wrapper helperpayment.py: payment helper modulesend_tx.py: script for sending a sample transactionconfig.py: configuration loaderclient.py: simple Web3 client wrapper__init__.py: package initmain.py: runnable demo entrypointAll files are located under:
examples/tempo-payment-demo/A sample development transaction hash used during testing:
b98e0912a387612e53d8f4e421b4f201f2019eec9c9ee549168ae4bdd73347dThe goal of this PR is to provide a minimal and clear Python example for developers integrating Tempo payments.
✅ Checklist
🔄 Breaking Changes
None - This is a new example addition.
🔗 Related Issues
N/A - This is a documentation/example contribution to help Python developers integrate with Tempo.
📊 Testing Evidence
Successfully tested on Tempo Testnet:
Test transaction: https://explore.tempo.xyz/tx/b98e091a23a761e25d8ff4e421ab4f201f2019ecd6c9ee549168ee4bdd73347d