Accounts
Prepare account for registration
Derive the Rhinestone smart account for (ownerAddress, sessionOwnerAddress), compare against the existing registration and target, and return either the Solana deposit address (if no re-registration is needed) or the unsigned session details and factory parameters the client must sign before calling /register.
post/setup-account
Headers
x-api-keystring required
API key for authentication
Example:your-api-key
API key for authentication
x-api-versionstring
API version identifier (e.g. "2026-04.amazon"). Optional today, will become required in a future release.
Example:2026-04.amazon
API version identifier (e.g. "2026-04.amazon"). Optional today, will become required in a future release.
Request body
Example request
{
"ownerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"sessionOwnerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"outputTokenRules": [
{
"match": {
"symbol": "USDC"
},
"outputToken": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}
],
"signerAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91"
}Response
Account setup result
Example response
{
"smartAccount": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"accountParams": {
"factory": "0x742d35Cc6634C0532925a3b844Bc9e7595f5bE91",
"factoryData": "0x1234abcd"
},
"sessionDetailsUnsigned": {
"hashesAndChainIds": [
{
"sessionDigest": "0x1234abcd"
}
]
}
}