FAQ
About Engine
How are Engine and the thirdweb Contract SDK different?
Engine is a server that manages your backend wallets and how they interact with contracts. This difference unlocks capabilities that thirdweb and other web3 SDKs, including:
- Management of KMS backend wallets
- Fine-grained access control with access tokens
- Transaction parallelization to handle higher throughput per wallet
- Observability and retries on stuck transactions
- Webhooks on completed transactions to sync onchain and off-chain activity
Additionally, Engine is built on top of the thirdweb SDK and has the same capabilities.
Does Engine work with all thirdweb smart contracts?
Yes. Engine has intuitive interfaces to deploy prebuilt contracts, manage smart accounts, run a marketplace, and more.
Does Engine work with my non-thirdweb smart contract?
Yes. Engine can read and write to any EVM contract with low-level API calls, including providing raw calldata. ERC-721 and ERC-1155 APIs can also be used for contracts imported to thirdweb.
Using Engine
How do I wait for a transaction to be mined?
Write calls to contracts do not block until they are mined. Instead they enqueue an async job and immediately return a reference to the job called queueId
.
Here are three ways to determine when the job is mined:
-
Use webhooks to notify your backend when a transaction event occurs.
-
Poll the
/transaction/status/<queue_id>
endpoint. -
Use websockets:
How do I customize my RPC?
Use Update Chain Configuration to override a chain's settings.
Here's an example snippet to provide your own RPC on Polygon.
Endpoint
Headers
Body
Troubleshooting
How do I resolve issues connecting to Postgres DB?
Here are some common troubleshooting tips:
- Ensure the Postgres DB is running in Docker:
- In same container, ensure the
host
in thePOSTGRES_CONNECTION_URL
is set tolocalhost
. - In different container, ensure the
host
in thePOSTGRES_CONNECTION_URL
is set tohost.docker.internal
.
- In same container, ensure the
- Ensure the Postgres DB connection URL and credentials are correct.
- Ensure the database name exists on the Postgres DB.