Skip to main content
Version: Next

Interface: DropConfig

Configurable options for any drop regardless of type.

Properties

dropRoot

Optional dropRoot: string

Override the global root account that all created sub-accounts will have (currently near or testnet). This allows users to drops that have a custom root. For example, Fayyr could specify a root of fayyr.near By which all sub-accounts will then be ACCOUNT.fayyr.near. It's important to note that this root account MUST have a smart contract deployed that has a method create_account.

Defined in

lib/types/drops.ts:81


sale

Optional sale: PublicSaleConfig

Any information related to primary market sales for access keys added to this drop.

Defined in

lib/types/drops.ts:75


time

Optional time: TimeConfig

Any information related to time-based configurations such as a starting date for keys etc.

Defined in

lib/types/drops.ts:69


usage

Optional usage: UsageConfig

Any information related to how access keys are used such as which methods they can call or whether an empty drop should be automatically deleted etc.

Defined in

lib/types/drops.ts:72


usesPerKey

Optional usesPerKey: number

How many uses can each key have before it's deleted. If this isn't specified, it defaults to 1 use per key.

Defined in

lib/types/drops.ts:66