Server wallets are wallets that are managed by your own application, like a treasury wallet or admin wallet. They are used to send transactions from the server.
Use an existing Server Wallet
Once created, you can use your server wallet by passing it as the from field of the thirdweb API.
Create a new Server Wallet
You can create new server wallets via API by just passing an identifier. This can be any string, but we recommend using a descriptive name.
Project secret key - for backend usage only. Should not be used in frontend code.
x-client-idfrontend
Project client ID - for frontend usage on authorized domains.
x-ecosystem-idoptional
Ecosystem ID - for ecosystem wallets.
x-ecosystem-partner-idoptional
Ecosystem partner ID - for ecosystem wallets.
Authorizationfrontend
Bearer token (JWT) for user wallet authentication
identifierRequired
Unique identifier for wallet creation or retrieval. Can be user ID, email, or any unique string. The same identifier will always return the same wallet.
Example:
treasury-wallet-123
Response
{
"result": {
"address": "string",
"profiles": [
{
"email": "string",
"emailVerified": true,
"hd": "string",
"id": "string",
"locale": "string",
"picture": "string",
"type": "google",
"familyName": "string",
"givenName": "string",
"name": "string"
}
],
"createdAt": "string",
"smartWalletAddress": "string",
"publicKey": "string"
}
}
List all Server Wallets
You can also list all server wallets for your project to get their addresses and identifiers.