Appearance
Get a single account
| GET | /accounts/{id} |
Path parameters
| Name | Type | Description | Required |
|---|---|---|---|
id | string | Id of the target account | ✅ |
Response schema
{}
// Internal unique identifier
id: string;// Legacy internal unique identifier (for retro-compatibility)
legacyId: number;// Name
name: string;// Will be deprecated soon, use network instead. Currency
currency: string;// Network (Same as currency for now)
network: string;// Token contract address for Token account
contractAddress: string | null;// BIP44 account index
index: number;// Derivation path
derivationPath: string;// Status
status: "ACTIVE" | "INACTIVE";// Creation timestamp
createdAt: string;// Last modification timestamp
updatedAt: string;// Account asset fields
asset: |
|
|
|
|
|
|
|
|
|
|
|
|
// Governance fields
governance: |
|
Examples
bash
curl \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {jwt}" \
"$API_BASE_URL/accounts/{id}"ts
const url = "<base-url>/accounts/{id}";
const headers = {
"Content-Type": "application/json",
Authorization: "Bearer <jwt>"
};
fetch(url, { headers }).then(res => {
console.log(res)
});python
import requests
url = "<base-url>/accounts/{id}"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer <jwt>"
}
print(requests.get(url, headers=headers))