Skip to content

ensureAta builder helper #286

@catmcgee

Description

@catmcgee

create Plan type (list of instructions) if none exists { ixs: TransactionInstruction[], artifacts: T } (ixs are the instructions, artifacts is any extra info)

implement ensureAta({ owner, mint }) returning a Plan<{ ata: PublicKey }> (empty plan if ATA exists)

derive ATA, optionally include create-ATA Ix if ATA missing

return artifacts.ata

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions