List static wallets
List the project's static wallets, newest first. Paginated via limit and lastId.
GET
/v1/static-walletsAPI keyQuery parameters
| Field | Type | Description |
|---|---|---|
orderoptional | string | Sort order (asc/desc) |
| ||
limitoptional | integer | Limit (default 20, max 100) |
lastIdoptional | string | Last ID for pagination |
Response
200 OK
| Field | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
hasMoreoptional | boolean | True when more static wallets exist beyond this page. To fetch the next page, pass the last item's id as the lastId query parameter. | |||||||||||||||||||||||||||||||||
itemsoptional | StaticWalletResponse[] | Page of static wallets, ordered per the request's order parameter. | |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| Field | Type | Description |
|---|---|---|
addressoptional | string | Reusable on-chain deposit address of this static wallet. Customers may send accepted assets to it repeatedly; each incoming transfer becomes a deposit. |
allowedAssetsoptional | AssetID[] | Accepted-asset allow-list, as asset id-strings (see GET /v1/assets). Deposits of assets outside this list are ignored and not credited. |
| ||
createdAtoptional | integer | Unix-milliseconds timestamp when the static wallet was created. |
externalIdoptional | string | Your own identifier for this static wallet, echoed from creation. Null when none was provided. |
idoptional | string | Unique Suward identifier of the static wallet. |
metadataoptional | object | Arbitrary key/value data attached by the merchant, echoed back unchanged. |
projectIdoptional | string | Identifier of the project that owns this static wallet. |
updatedAtoptional | integer | Unix-milliseconds timestamp when the static wallet was last updated. |
webhookUrloptional | string | Webhook URL that receives this wallet's deposit events. Null when the project default webhook is used. |
Errors
401 Unauthorized— each returns { errorCode, message, args? }. Codes, retries and limits: Errors & limits
Request
curl https://api.suward.com/v1/static-wallets \ -H "X-Api-Key: $SUWARD_API_KEY"const response = await fetch('https://api.suward.com/v1/static-wallets', { method: 'GET', headers: { 'X-Api-Key': process.env.SUWARD_API_KEY, },});const data = await response.json();package main import ( "fmt" "io" "net/http" "os") func main() { req, _ := http.NewRequest("GET", "https://api.suward.com/v1/static-wallets", nil) req.Header.Set("X-Api-Key", os.Getenv("SUWARD_API_KEY")) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() data, _ := io.ReadAll(res.Body) fmt.Println(string(data))}import requests, os response = requests.get( 'https://api.suward.com/v1/static-wallets', headers={'X-Api-Key': os.environ['SUWARD_API_KEY']},)data = response.json()Response · 200 OK
{ "hasMore": false, "items": []}Illustrative values. Every field, type and status on this page is generated from the OpenAPI specification.
Something unclear? payments@suward.com — we treat every integration question as a documentation defect.