Skip to content

Latest commit

 

History

History
82 lines (46 loc) · 1.66 KB

SubscriptionPlanAuthor.md

File metadata and controls

82 lines (46 loc) · 1.66 KB

@elfo/sdk / Exports / SubscriptionPlanAuthor

Class: SubscriptionPlanAuthor

Represents a subscription plan author account

Table of contents

Properties

Methods

Properties

authority

authority: string


hasAlreadyBeenInitialized

hasAlreadyBeenInitialized: boolean


publicKey

publicKey: string


subscriptionPlanAccounts

subscriptionPlanAccounts: string[]

Methods

address

Static address(authority): string

Helper function to generate subscription author PDA Address

Parameters

Name Type Description
authority string Creator of the subscription plan

Returns

string

PDA of the subscription author account


from

Static from(subscriptionPlanAuthorPublicKey, provider): Promise<SubscriptionPlanAuthor>

Fetches a subscription plan author instance from a public key

Parameters

Name Type Description
subscriptionPlanAuthorPublicKey string Public key of the subscription plan author
provider default Anchor connection provider

Returns

Promise<SubscriptionPlanAuthor>