Skip to main content
Version: Next

Interface: UsageConfig

Within the config, there are configurable options related to how keys can be used. What permissions they have, whether an empty drop should be automatically deleted etc.

Properties

accountCreationFields

Optional accountCreationFields: Object

When calling create_account on the root account, which keypom args should be attached to the payload.

Type declaration

NameTypeDescription
accountIdField?stringSpecifies what field Keypom should auto-inject the account that claimed the drop's ID into when calling the create_account function.
dropIdField?stringSpecifies what field Keypom should auto-inject the drop's ID into when calling the create_account function.
funderIdField?stringSpecifies what field Keypom should auto-inject the drop funder's account ID into when calling the create_account function.
keyIdField?stringSpecifies what field Keypom should auto-inject the key's ID into when calling the create_account function.

Defined in

lib/types/drops.ts:136


autoDeleteDrop

Optional autoDeleteDrop: boolean

When a key is used and deleted, if it results in the drop being empty, should the drop automatically be deleted? If this isn't specified, it defaults to false.

Defined in

lib/types/drops.ts:130


autoWithdraw

Optional autoWithdraw: boolean

When the last key in this drop is used, in the case where autoDeleteDrop is set to true and the drop is the owner's last, should their balance be automatically withdrawn? If this isn't specified, it defaults to false.

Defined in

lib/types/drops.ts:134


permissions

Optional permissions: string

Specify which methods can be called by the access key (either claim or create_account_and_claim). If this isn't specified, both methods can be called.

Defined in

lib/types/drops.ts:121


refundDeposit

Optional refundDeposit: boolean

If the method claim is called rather than create_account_and_claim, should the deposit_per_use be refunded to the owner's balance? If this isn't specified, it defaults to false.

Defined in

lib/types/drops.ts:126