Skip to main content
Version: 1.15.0

Class: CreateTokenAccount

Defined in: cct/solana/token/operations/create-token-account.ts:44

Creates an Associated Token Account for any wallet or PDA owner.

Extends​

Constructors​

Constructor​

new CreateTokenAccount(): CreateTokenAccount

Returns​

CreateTokenAccount

Inherited from​

SolanaOperation< CreateTokenAccountParams, GenerateCreateTokenAccountResult, ParsedCreateTokenAccountParams >.constructor

Properties​

name​

readonly name: "createTokenAccount" = 'createTokenAccount'

Defined in: cct/solana/token/operations/create-token-account.ts:49

camelCase id; matches the token-manager facade method and error context.

Overrides​

SolanaOperation.name


splitMode​

protected readonly splitMode: SolanaSplitMode = 'atomic'

Defined in: cct/solana/operation.ts:36

Multi-transaction safety policy; resource splitting requires an operation-specific audit.

Inherited from​

SolanaOperation.splitMode

Methods​

buildUnsigned()​

protected buildUnsigned(chain: SolanaChain, params: ParsedCreateTokenAccountParams): Promise<GenerateCreateTokenAccountResult>

Defined in: cct/solana/token/operations/create-token-account.ts:63

Builds an unsigned idempotent associated token account creation transaction.

Parameters​

ParameterType
chainSolanaChain
paramsParsedCreateTokenAccountParams

Returns​

Promise<GenerateCreateTokenAccountResult>

Overrides​

SolanaOperation.buildUnsigned


execute()​

execute(chain: SolanaChain, params: ExecuteCreateTokenAccountParams): Promise<ExecuteCreateTokenAccountResult>

Defined in: cct/solana/token/operations/create-token-account.ts:91

Generate, sign, simulate, send, confirm, and return the derived token account address.

Parameters​

ParameterType
chainSolanaChain
paramsExecuteCreateTokenAccountParams

Returns​

Promise<ExecuteCreateTokenAccountResult>

Overrides​

SolanaOperation.execute


generate()​

generate(chain: SolanaChain, params: SolanaGenerateParams<CreateTokenAccountParams>): Promise<GenerateCreateTokenAccountResult>

Defined in: cct/solana/operation.ts:42

Run prepare and buildUnsigned; no signing.

Parameters​

ParameterType
chainSolanaChain
paramsSolanaGenerateParams<CreateTokenAccountParams>

Returns​

Promise<GenerateCreateTokenAccountResult>

Inherited from​

SolanaOperation.generate


parse()​

protected parse(params: GenerateCreateTokenAccountParams): ParsedCreateTokenAccountParams

Defined in: cct/solana/token/operations/create-token-account.ts:52

Parses create-token-account parameters.

Parameters​

ParameterType
paramsGenerateCreateTokenAccountParams

Returns​

ParsedCreateTokenAccountParams

Overrides​

SolanaOperation.parse


prepare()​

protected prepare(params: SolanaGenerateParams): ParsedCreateTokenAccountParams

Defined in: cct/operation.ts:48

validate then parse — the single pre-RPC step, before any chain access.

Parameters​

ParameterType
paramsSolanaGenerateParams

Returns​

ParsedCreateTokenAccountParams

Inherited from​

SolanaOperation.prepare


prepareWalletExecution()​

protected prepareWalletExecution(params: SolanaExecuteParams<CreateTokenAccountParams>): { computeUnits: number | undefined; parsed: ParsedCreateTokenAccountParams; payer: PublicKey; wallet: Wallet; }

Defined in: cct/solana/operation.ts:47

Validates the wallet and prepares signed execution parameters with it as payer.

Parameters​

ParameterType
paramsSolanaExecuteParams<CreateTokenAccountParams>

Returns​

{ computeUnits: number | undefined; parsed: ParsedCreateTokenAccountParams; payer: PublicKey; wallet: Wallet; }

computeUnits​

computeUnits: number | undefined

parsed​

parsed: ParsedCreateTokenAccountParams

payer​

payer: PublicKey

wallet​

wallet: Wallet

Inherited from​

SolanaOperation.prepareWalletExecution


validate()​

protected validate(_params: SolanaGenerateParams): void

Defined in: cct/operation.ts:36

Reject invalid params before any chain RPC. No-op by default: an op that normalizes as it checks does that work in parse instead, and needs no empty stub here.

Parameters​

ParameterType
_paramsSolanaGenerateParams

Returns​

void

Inherited from​

SolanaOperation.validate