Connect Portfolio Wallet
Connect a wallet to your account and create a tracked portfolio
You will get
You will get
- A portfolioId you can use to query portfolio data (value, coins, chart, transactions, defi, snapshot)
- Automatic portfolio creation with visibility set to API
- Background transaction sync initiated
Required
Required
- address: Wallet address to connect
- connectionId: Blockchain network identifier (e.g., “ethereum”). Use GET /wallet/blockchains for supported networks.
Optional
Optional
- name: Custom display name for the portfolio
Authorizations
API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.
Body
Wallet address to connect.
"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
Blockchain network identifier (e.g., "ethereum", "polygon"). Use GET /wallet/blockchains to get the list of supported blockchains.
"ethereum"
Optional display name for the portfolio.
"My Ethereum Wallet"
Response
Connect Wallet Portfolio
The unique identifier of the connected portfolio.
"a1b2c3d4e5f6..."
The connectionId used to connect the portfolio.
"ethereum"
"connected" if a new portfolio was created, "existing" if the portfolio already exists.
connected, existing "connected"