.NET SDK
ThirdwebContract.Prepare
ThirdwebContract.Prepare
bridges contract interactions and the transaction tooling within the Thirdweb .NET SDK. Use it when you want to start from a contract method, but need fine-grained control over the resulting ThirdwebTransaction
before dispatching it.
Looking for the contract APIs themselves? Check out the Contracts guides for creating, reading, and writing before you promote a call into a transaction.
- Simulation & inspection – Prepare the transaction and run
ThirdwebTransaction.Simulate
before sending. - Customization – Chain the
ThirdwebTransaction
instance methods to adjust calldata, value, gas, or paymaster options. - Wallet-agnostic – Works with any
IThirdwebWallet
, letting you bridge user wallets, smart wallets, or server wallets into the same flow.
Once prepared, you can tweak or send the transaction: