Nestcoin ledger-accounts API declares
2 security schemes
for authenticating requests.
An API key is passed in the header as x-signature (authSignature).
An API key is passed in the header as x-auth-token (authToken).
authToken — Auth Token header for inter-service communication
Paths & Operations 6
Across 5 paths, the API surfaces 6 operations — 5 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.
ledger-accounts 6
GET
/ledger/accounts
Fetch All Customer Account
fetchCustomerAccounts→ 200400401403default
GET
/ledger/accounts/{accountId}
Fetch account details
getAccountDetails1 param→ 200400401403default
GET
/ledger/currency/assets
Get list of supported assets for main accounts.
getSupportedAssets→ 200400401403default
GET
/ledger/assets/{assetCode}/network-tokens
Get stablecoin tokens supported for account.
getAssetNetworkTokens1 param→ 200400401403default
GET
/ledger/accounts/{accountId}/account-details
Get the bank account number for an account.
getAccountNumber2 params→ 200400401403404default
POST
/ledger/accounts/{accountId}/account-details
Create a bank account number for an account.
createAccountNumber2 params→ 201400401403default
Schemas 11
The contract defines 11 schemas that model the data the API accepts and returns. The most detailed are LedgerSvcBlockchainNetwork (10 properties), TokenNetwork (8 properties), Account (7 properties), Asset (5 properties). Each schema is shown below with its type and property counts.
ErrorMessageDto
object
Default error object for services. This gives consistent error object that all services may use.
3 properties2 required
AssetBlockchainTokens
object
2 properties2 required
LedgerSvcBlockchainNetwork
object
Details of blockchain network
10 properties6 required
TokenNetwork
object
8 properties5 required
TokenDetails
object
Details of supported funding token object.
4 properties4 required
CustomerAccountList
object
1 property
Asset
object
5 properties
CashDepositPaymentDetails
object
Destination account details the customer must pay into to fund the deposit. Mirrors a Beneficiary (without an id). Carries only the account details needed to m…
2 properties2 required
SupportedAssetsList
object
List of assets supported for main account.
1 property
CashAccountDetails
object
4 properties3 required
Account
object
7 properties7 required
Specification
The full machine-readable OpenAPI contract behind this narrative.