Skip to content

Commit 834ed83

Browse files
authored
Update page.mdx (#6425)
Signed-off-by: Waren Gonzaga <github@warengonzaga.com>
1 parent 11bb4f5 commit 834ed83

File tree

1 file changed

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

1 file changed

+36
-0
lines changed

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,42 @@ 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+
## Using Paymaster & Bundler URL
31+
32+
To use the Paymaster & Bundler URL for thirdweb, you can follow the guide below:
33+
34+
### URL Pattern
35+
36+
The URL pattern is predictable for all chains and is used for both paymaster and bundler operations:
37+
38+
```
39+
https://<chain_id>.bundler.thirdweb.com/v2/<thirdweb-client-id>
40+
```
41+
42+
Replace `<chain_id>` with the appropriate chain ID and `<thirdweb-client-id>` with your thirdweb client ID.
43+
44+
### Client ID in Header
45+
46+
You can also pass the client ID via the header:
47+
48+
```
49+
x-client-id: <your_thirdweb_client_id>
50+
```
51+
52+
### Frontend Calls
53+
54+
For frontend calls, the calling domain needs to be allowlisted. This can be done from the thirdweb dashboard in the API key settings.
55+
56+
### Backend Usage
57+
58+
For backend usage, the secret key is required as a header, and the client ID can be omitted:
59+
60+
```
61+
x-secret-key: <your_thirdweb_secret_key>
62+
```
63+
64+
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.
65+
3066
## Using a Custom Bundler
3167

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

0 commit comments

Comments
 (0)