TxSim: Transaction Simulator and Risk Detector for Polkadot#2575
Conversation
|
I have read and hereby sign the Contributor License Agreement. |
keeganquigley
left a comment
There was a problem hiding this comment.
Hi @EmmanuelEklipse the PR correctly reflects a level 3 grant, but the application notes a level 2 grant. Can you update this on the application itself?
|
@keeganquigley Thanks for pointing it out. I have corrected it |
|
Thanks @EmmanuelEklipse we usually only allow one grant application to be open at a time per grantee. Would you prefer to keep this one open and close #2563 since it hasn't garnered enough approvals? |
|
@keeganquigley Yes, please. |
|
Thanks @EmmanuelEklipse I will mark as ready for review and ping the rest of the committee for comment. In the meantime, one more question: Would you be willing to support upcoming PVM (Asset Hub) as well as EVM and WASM? Please see this forum post regarding the latest news there. |
|
@keeganquigley Much appreciated. Yes, we’re absolutely willing to support the upcoming PVM developments on Asset Hub — including both the WASM-based PolkaVM and the potential EVM-compatible stack. TxSim will be built with a modular architecture, and we’ve already accounted for multi-VM support (EVM via Moonbeam, WASM via Astar, and PVM via Asset Hub). This makes it straightforward for us to extend compatibility to Polkadot Hub's evolving smart contract layers without requiring additional funding, it can be delivered as a natural extension within our current technical framework. We’re actively tracking the roadmap around PolkaVM, Solidity support, and EVM compatibility on the Hub. TxSim’s simulation and detection logic is designed to adapt to such changes, and we’re committed to ensuring it remains aligned with the most widely used execution environments in the Polkadot ecosystem. |
keeganquigley
left a comment
There was a problem hiding this comment.
Thanks @EmmanuelEklipse yes I know PVM on Asset Hub is still a ways off, and there are of course the ongoing compatibility issues as well, but we expect many of these to be resolved eventually. To make one correction though, PVM is actually RISC-V based, not WASM based. Maybe you could add some language about potentially supporting PVM in the contract, and note if you foresee any challenges regarding this.
|
@keeganquigley Thanks for the clarification. Just updated the proposal to reflect the planned phased support for the RISC-V–based PVM, including the challenges and our modular approach. Please let me know if you have further feedback. |
|
Hi @keeganquigley any update on this? |
|
Hi @EmmanuelEklipse it seems like so far it hasn't been able to garner enough approvals. in my opinion I think it's a bit expensive for mainly a tx simulator. It might be hard to get 5 approvals for this. Would you perhaps be willing to lower it to a $30k level 2 PoC, even if its just for one milestone? Maybe you could hold off on the risk detection module until a future M2. Then you would only need 3 approvals and would give us a chance to see the simulator in action before spending more money on it. |
|
@keeganquigley Thanks for the feedback! I've updated the budget to $28K and revised the milestones accordingly. Let me know what you think or if you'd like to see any other adjustments. |
|
@PieWol, bringing this to your attention. Please let me know if you need any further clarification. |
|
Hi @semuelle @laboon @takahser , KYB is done. We’ve got 2 approvals + 1 support, just one more to go. This tool lets developers simulate and validate (EVM + ink!) transactions before deployment, and end users will also benefit by seeing accurate fee estimates and risk checks before signing. It helps protect users from scams by catching issues early. Other networks have or are building similar tools, but Polkadot doesn't. Ours adds unique wallet integration that gives the project an edge; we’d love to bring this to life. Thanks for your support. |
|
Thanks @EmmanuelEklipse can confirm KYB is approved, I just pinged the team again. |
|
Thank you. |
semuelle
left a comment
There was a problem hiding this comment.
Just some minor remarks
|
|
||
| ## Legal Structure | ||
|
|
||
| **Post-grant approval** |
There was a problem hiding this comment.
Since you've already gone through KYB now, can you please clarify this part? At least the name or type of entity.
| _While TxSim’s initial risk detection engine focuses on heuristic rules and WASM bytecode analysis, we plan to enhance detection capabilities over time by incorporating community reporting, machine learning models, and integration with external threat intelligence feeds. This phased approach will enable TxSim to adapt to emerging scam tactics and improve accuracy in identifying complex or zero-day threats._ | ||
|
|
||
| - **Fee Estimation:** Provides accurate fee estimates using Polkadot’s weight-based model, with optimization suggestions. | ||
| - **Wallet Integration:** Integrates with Talisman and SubWallet via Polkadot.js API, requiring no account creation. |
There was a problem hiding this comment.
What does "Integrates" mean here? That it would be possible for the wallet devs to integrate it, or is there a different way to use it?
There was a problem hiding this comment.
Thanks for the question @semuelle. By integrate, we mean that wallet developers (e.g. Talisman, SubWallet) will be able to connect to TxSim via the Polkadot.js API, without requiring any new accounts or extra setup. The SDK is being designed to make integration straightforward for wallet teams, while end users will experience it seamlessly within their existing wallet interface. I’ve also updated the proposal to clarify this point.
Co-authored-by: Sebastian Müller <sebastian@web3.foundation>
feb3c3e
semuelle
left a comment
There was a problem hiding this comment.
Thanks for the updates, @EmmanuelEklipse. LGTM.
|
Congrats @EmmanuelEklipse the grant is now active! |
|
Congratulations and welcome to the Web3 Foundation Grants Program! Please refer to our Milestone Delivery repository for instructions on how to submit milestones and invoices, our FAQ for frequently asked questions and the support section on our website for more ways to find answers to your questions. |
|
Thank you to everyone who has been a part of this 🎉. We’re really excited to see the grant officially active and to bring this project to fruition. It’s something the team fully believes in, and we’re looking forward to seeing it actively used by developers and the community. |
|
Hi @EmmanuelEklipse how is milestone 1 coming along? Can you please provide an update? |
|
Hi @keeganquigley , thanks for the nudge. We're behind schedule, but it is very much active. We are currently finalizing the core component simulation and expect to have the delivery posted within the next 2 weeks, with the remaining milestones to follow within a month. I will provide bi-weekly updates here until it's completed. |
|
Hi W3F Team, |

Project Abstract
Grant level
Application Checklist
project_name.md).@_______:matrix.org(change the homeserver if you use a different one)