@elfo/sdk / Exports / SubscriptionPlanAuthor
Represents a subscription plan author account
• authority: string
• hasAlreadyBeenInitialized: boolean
• publicKey: string
• subscriptionPlanAccounts: string
[]
▸ Static
address(authority
): string
Helper function to generate subscription author PDA Address
Name | Type | Description |
---|---|---|
authority |
string |
Creator of the subscription plan |
string
PDA of the subscription author account
▸ Static
from(subscriptionPlanAuthorPublicKey
, provider
): Promise
<SubscriptionPlanAuthor
>
Fetches a subscription plan author instance from a public key
Name | Type | Description |
---|---|---|
subscriptionPlanAuthorPublicKey |
string |
Public key of the subscription plan author |
provider |
default |
Anchor connection provider |
Promise
<SubscriptionPlanAuthor
>