WalletD developers
Vocabulary

Register vocabulary (idempotent, grows only)

Registers the transaction types, account purposes and commodities this ledger will accept.

PUT/v1/ledgers/{ledgerId}/vocabulary

Registers the transaction types, account purposes and commodities this ledger will accept. Nothing WalletD-shaped is baked in: a consumer declares its own vocabulary, and the database enforces it with foreign keys, so an unregistered transaction type is refused as invalid at posting time rather than silently accepted. Idempotent and grow-only: re-sending a registration that already holds is a no-op, and a purpose marked sharded gains the shard set system accounts need. Nothing here is removed, because removal would orphan history.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

ledgerId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

curl -X PUT "https://example.com/v1/ledgers/497f6eca-6276-4993-bfeb-53cbbbba6f08/vocabulary" \  -H "Content-Type: application/json" \  -d '{}'
{  "transaction_types": [    "string"  ],  "purposes": [    {      "name": "string",      "sharded": false    }  ],  "commodities": [    "string"  ]}