Class: SetTokenAuthority
Defined in: cct/solana/token/operations/set-token-authority.ts:78
Immediately sets mint authority, freeze authority, or both for an SPL Token mint; there is no propose-and-accept step.
Remarks
⚠️ IRREVERSIBLE: Setting newAuthority to null permanently revokes the selected roles.
Once revoked, a revoked mint or freeze authority cannot be recovered, transferred, or restored.
Once confirmed, the current authority loses the selected roles. All selected roles must have the
same current authority. Supply multisigSigners when that authority is an SPL Token multisig.
Atomic: All selected roles update in one transaction. If any selected update fails, none are
committed.
Extends
SolanaOperation<SetTokenAuthorityParams,UnsignedSolanaTx,ParsedSetTokenAuthorityParams>
Constructors
Constructor
new SetTokenAuthority():
SetTokenAuthority
Returns
SetTokenAuthority
Inherited from
SolanaOperation< SetTokenAuthorityParams, UnsignedSolanaTx, ParsedSetTokenAuthorityParams >.constructor
Properties
name
readonlyname:"setTokenAuthority"='setTokenAuthority'
Defined in: cct/solana/token/operations/set-token-authority.ts:83
camelCase id; matches the token-manager facade method and error context.
Overrides
SolanaOperation.name
splitMode
protectedreadonlysplitMode: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()
protectedbuildUnsigned(chain:SolanaChain,opts:ParsedSetTokenAuthorityParams):Promise<UnsignedSolanaTx>
Defined in: cct/solana/token/operations/set-token-authority.ts:128
Builds one SPL Token SetAuthority instruction for each selected authority role.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
opts | ParsedSetTokenAuthorityParams |
Returns
Promise<UnsignedSolanaTx>
Overrides
SolanaOperation.buildUnsigned
execute()
execute(
chain:SolanaChain,params:ExecuteSetTokenAuthorityParams):Promise<TransactionResult>
Defined in: cct/solana/token/operations/set-token-authority.ts:194
Generate, sign, simulate, send, and confirm with the current authority wallet.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
params | ExecuteSetTokenAuthorityParams |
Returns
Promise<TransactionResult>
Throws
If authority types or authority validation is invalid, or multisig signers are supplied for signed execution.
Throws
If mint data cannot be parsed.
Throws
CCTTxFailedError If simulation or on-chain execution fails.
Throws
CCTTxNotConfirmedError If the submitted transaction is not confirmed in time.
Overrides
SolanaOperation.execute
generate()
generate(
chain:SolanaChain,params:SolanaGenerateParams<SetTokenAuthorityParams>):Promise<UnsignedSolanaTx>
Defined in: cct/solana/operation.ts:42
Run prepare and buildUnsigned; no signing.
Parameters
| Parameter | Type |
|---|---|
chain | SolanaChain |
params | SolanaGenerateParams<SetTokenAuthorityParams> |
Returns
Promise<UnsignedSolanaTx>
Inherited from
SolanaOperation.generate
parse()
protectedparse(params:GenerateSetTokenAuthorityParams):ParsedSetTokenAuthorityParams
Defined in: cct/solana/token/operations/set-token-authority.ts:86
Parses public keys and validates the selected authority roles.
Parameters
| Parameter | Type |
|---|---|
params | GenerateSetTokenAuthorityParams |
Returns
ParsedSetTokenAuthorityParams
Overrides
SolanaOperation.parse
prepare()
protectedprepare(params:SolanaGenerateParams):ParsedSetTokenAuthorityParams
Defined in: cct/operation.ts:48
validate then parse — the single pre-RPC step, before any chain access.
Parameters
| Parameter | Type |
|---|---|
params | SolanaGenerateParams |
Returns
ParsedSetTokenAuthorityParams
Inherited from
SolanaOperation.prepare
prepareWalletExecution()
protectedprepareWalletExecution(params:SolanaExecuteParams<SetTokenAuthorityParams>): {computeUnits:number|undefined;parsed:ParsedSetTokenAuthorityParams;payer:PublicKey;wallet:Wallet; }
Defined in: cct/solana/operation.ts:47
Validates the wallet and prepares signed execution parameters with it as payer.
Parameters
| Parameter | Type |
|---|---|
params | SolanaExecuteParams<SetTokenAuthorityParams> |
Returns
{ computeUnits: number | undefined; parsed: ParsedSetTokenAuthorityParams; payer: PublicKey; wallet: Wallet; }
computeUnits
computeUnits:
number|undefined
parsed
parsed:
ParsedSetTokenAuthorityParams
payer
payer:
PublicKey
wallet
wallet:
Wallet
Inherited from
SolanaOperation.prepareWalletExecution
validate()
protectedvalidate(_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
| Parameter | Type |
|---|---|
_params | SolanaGenerateParams |
Returns
void
Inherited from
SolanaOperation.validate