Minka Ledger Docs

Create a ledger

Explains the process of creating and selecting a new ledger


Make a new ledger

By running minka ledger create and just choosing default values you'll be able to easily create a new ledger.

The only thing you need to choose is a unique name (handle) for your ledger.

Also, you will choose the signer you created in previous step and enter the password when prompted (if you defined a password during the signer creation process).

$ minka ledger create
? Handle: tutorial-ledger
? Enter access content: Received
? Intent expiry threshold (minutes): 60
? Is wallet required before creating an anchor? Yes
? Is schedule policy processor enabled? No
? Add custom data? No
? Signer: clearinghouse
? Signer password for clearinghouse [hidden]
 
 
Ledger summary:
---------------------------------------------------------------------------
Handle: tutorial-ledger
 
Intent expiry threshold (minutes): 60
Wallet required before creating an anchor: true
Schedule policy processor enabled: false
 
 
⚠️  To allow a new ledger instance to sign specific operations
when needed, a new signer will be created and attached to it.
This new signer will be owned and managed by the server.
Its public key and key format are going to be available
for verification of the signature.
       
 
? Sign this ledger instance using signer clearinghouse? Yes
? Set 'tutorial-ledger' as an active ledger? Yes
? Apply layout to 'tutorial-ledger'? No
 
✅ Ledger instance created successfully:
Handle: tutorial-ledger
 
Intent expiry threshold (minutes): 60
Wallet required before creating an anchor: true
Schedule policy processor enabled: false
 
Access rules:
#0
  - Action: any
  - Record: any
 
Status: created
 
Luid: $ldg.-0-hWhZyOQRmvmytu
Handle: clearinghouse
Public: eIHlrG0Wr5vl3pDi5Vgqzu5WGE7q/60jsysBmehYKtg=

Selecting a ledger

One of the steps asked you whether you want to set tutorial-ledger as an active ledger. By choosing "yes", every action you perform, from that moment on, will be performed inside this ledger.

Alternative way to select

In case you forgot to set it as an active ledger during the creating process, or you just connected to the server at a later date, you can still use the select command:

$ minka ledger select
? Handle: tutorial-ledger
 
Active ledger:
---------------------------------------------------------------------------
Handle: tutorial-ledger
 
Intent expiry threshold (minutes): 60
Wallet required before creating an anchor: true
Schedule policy processor enabled: false
 
Access rules:
#0
  - Action: any
  - Record: any
 
Status: created

On this page