WalletD developers
Ledgers

Create a ledger owned by the caller

Creates a ledger owned by the calling consumer.

POST/v1/ledgers

Creates a ledger owned by the calling consumer. A ledger carries its own vocabulary, its own period ladder, and its own monotonic event sequence; nothing is shared with another consumer's ledgers. Register vocabulary before posting: transaction types, account purposes and commodities are foreign keys, not free text. Names are unique service-wide, so reusing one refuses with conflict (409) instead of minting a second ledger.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

curl -X POST "https://example.com/v1/ledgers" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "created_at": "2019-08-24T14:15:22Z"}