Corgi BankDocumentation
OpenAPI

Create a collateral lender

POST/ledger/collateral/lenders

The ledger's guard admits ledger:treasury:write on this route and refuses ledger:post; the store admits only verified treasury staff (never a service or an API key) who stepped up within five minutes. kind is fhlb (advances under GL 2410), federal_reserve_discount_window (GL 2420) or repo_counterparty (GL 2430, no advances); evidence_keys holds one to ten base64 ed25519 public keys by key id. The lender holds pledges and advances only once a different treasury checker approves it.

Headers

Idempotency-KeystringRequired

Send on every write that creates or changes money or state; a replay with the same key returns the original result with 200.

Body parameters

evidence_keysobjectRequired

Key id to base64 ed25519 public key the lender signs statements with

identifiersobjectOptional
kindstringRequired

Fhlb, federal_reserve_discount_window or repo_counterparty

legal_namestringRequired

Returns

200 OK

The Collateral Lender object.

Errors

Every error is a problem document with a stable code. See Errors.

400401403404409412413422424429500503

to move to open esc to close