Skip to content

Commit 69fb753

Browse files
authored
Update page.mdx
Add section what is our paymaster bundler URL. Signed-off-by: Waren Gonzaga <[email protected]>
1 parent c547164 commit 69fb753

File tree

1 file changed

+38
-0
lines changed
  • apps/portal/src/app/connect/account-abstraction/infrastructure

1 file changed

+38
-0
lines changed

apps/portal/src/app/connect/account-abstraction/infrastructure/page.mdx

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,44 @@ With a thirdweb API key, you get access to bundler and paymaster infrastructure
2727

2828
To support a chain not listed, [contact us](https://thirdweb.com/contact-us).
2929

30+
Sure, here's the updated section with the provided information:
31+
32+
## Using Paymaster & Bundler URL
33+
34+
To use the Paymaster & Bundler URL for thirdweb, you can follow the guide below:
35+
36+
### URL Pattern
37+
38+
The URL pattern is predictable for all chains and is used for both paymaster and bundler operations:
39+
40+
```
41+
https://<chain_id>.bundler.thirdweb.com/v2/<thirdweb-client-id>
42+
```
43+
44+
Replace `<chain_id>` with the appropriate chain ID and `<thirdweb-client-id>` with your thirdweb client ID.
45+
46+
### Client ID in Header
47+
48+
You can also pass the client ID via the header:
49+
50+
```
51+
x-client-id: <your_thirdweb_client_id>
52+
```
53+
54+
### Frontend Calls
55+
56+
For frontend calls, the calling domain needs to be allowlisted. This can be done from the thirdweb dashboard in the API key settings.
57+
58+
### Backend Usage
59+
60+
For backend usage, the secret key is required as a header, and the client ID can be omitted:
61+
62+
```
63+
x-secret-key: <your_thirdweb_secret_key>
64+
```
65+
66+
Make sure to replace the placeholders with your actual values. This guide will help you set up and use Paymaster & Bundler URLs effectively with thirdweb.
67+
3068
## Using a Custom Bundler
3169

3270
Smart accounts are free to use with your own account abstraction infrastructure. To use your own paymaster & bundler,

0 commit comments

Comments
 (0)