Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,44 @@ With a thirdweb API key, you get access to bundler and paymaster infrastructure

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

Sure, here's the updated section with the provided information:

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines 30-31 appear to be an artifact from copying instructions into the documentation. The content should begin directly with the ## Using Paymaster & Bundler URL heading to maintain a clean, professional documentation style.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

## Using Paymaster & Bundler URL

To use the Paymaster & Bundler URL for thirdweb, you can follow the guide below:

### URL Pattern

The URL pattern is predictable for all chains and is used for both paymaster and bundler operations:

```
https://<chain_id>.bundler.thirdweb.com/v2/<thirdweb-client-id>
```

Replace `<chain_id>` with the appropriate chain ID and `<thirdweb-client-id>` with your thirdweb client ID.

### Client ID in Header

You can also pass the client ID via the header:

```
x-client-id: <your_thirdweb_client_id>
```

### Frontend Calls

For frontend calls, the calling domain needs to be allowlisted. This can be done from the thirdweb dashboard in the API key settings.

### Backend Usage

For backend usage, the secret key is required as a header, and the client ID can be omitted:

```
x-secret-key: <your_thirdweb_secret_key>
```

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.

## Using a Custom Bundler

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