Extension
Type declaration
Name | Type |
---|---|
__kind | "Uninitialized" |
Name | Type | Description |
---|---|---|
__kind | "TransferFeeConfig" | - |
newerTransferFee | TransferFee | Newer transfer fee, used if the current epoch >= newerTransferFee.epoch. |
olderTransferFee | TransferFee | Older transfer fee, used if the current epoch < newerTransferFee.epoch. |
transferFeeConfigAuthority | Address | Optional authority to set the fee. |
withdrawWithheldAuthority | Address | Withdraw from mint instructions must be signed by this key. |
withheldAmount | bigint | Withheld transfer fee tokens that have been moved to the mint for withdrawal. |
Name | Type | Description |
---|---|---|
__kind | "TransferFeeAmount" | - |
withheldAmount | bigint | Withheld transfer fee tokens that can be claimed by the fee authority. |
Name | Type |
---|---|
__kind | "MintCloseAuthority" |
closeAuthority | Address |
Name | Type | Description |
---|---|---|
__kind | "ConfidentialTransferMint" | - |
auditorElgamalPubkey | Option <Address > | Authority to decode any transfer amount in a confidential transfer. |
authority | Option <Address > | Authority to modify the ConfidentialTransferMint configuration and to approve new accounts (if auto_approve_new_accounts is true). The legacy Token Multisig account is not supported as the authority. |
autoApproveNewAccounts | boolean | Indicate if newly configured accounts must be approved by the authority before they may be used by the user. * If true , no approval is required and new accounts may be used immediately. * If false , the authority must approve newly configured accounts (see ConfidentialTransferInstruction::ConfigureAccount ). |
Name | Type | Description |
---|---|---|
__kind | "ConfidentialTransferAccount" | - |
actualPendingBalanceCreditCounter | bigint | The actual pending_balance_credit_counter when the last ApplyPendingBalance instruction was executed. |
allowConfidentialCredits | boolean | If false , the extended account rejects any incoming confidential transfers. |
allowNonConfidentialCredits | boolean | If false , the base account rejects any incoming transfers. |
approved | boolean | true if this account has been approved for use. All confidential transfer operations for the account will fail until approval is granted. |
availableBalance | EncryptedBalance | The available balance (encrypted by encrypiton_pubkey ). |
decryptableAvailableBalance | DecryptableBalance | The decryptable available balance. |
elgamalPubkey | Address | The public key associated with ElGamal encryption. |
expectedPendingBalanceCreditCounter | bigint | The expected_pending_balance_credit_counter value that was included in the last ApplyPendingBalance instruction. |
maximumPendingBalanceCreditCounter | bigint | The maximum number of Deposit and Transfer instructions that can credit pending_balance before the ApplyPendingBalance instruction is executed. |
pendingBalanceCreditCounter | bigint | The total number of Deposit and Transfer instructions that have credited pending_balance . |
pendingBalanceHigh | EncryptedBalance | The high 48 bits of the pending balance (encrypted by elgamal_pubkey ). |
pendingBalanceLow | EncryptedBalance | The low 16 bits of the pending balance (encrypted by elgamal_pubkey ). |
Name | Type |
---|---|
__kind | "DefaultAccountState" |
state | AccountState |
Name | Type |
---|---|
__kind | "ImmutableOwner" |
Name | Type | Description |
---|---|---|
__kind | "MemoTransfer" | - |
requireIncomingTransferMemos | boolean | Require transfers into this account to be accompanied by a memo. |
Name | Type |
---|---|
__kind | "NonTransferable" |
Name | Type |
---|---|
__kind | "InterestBearingConfig" |
currentRate | number |
initializationTimestamp | bigint |
lastUpdateTimestamp | bigint |
preUpdateAverageRate | number |
rateAuthority | Address |
Name | Type | Description |
---|---|---|
__kind | "CpiGuard" | - |
lockCpi | boolean | Lock certain token operations from taking place within CPI for this account. |
Name | Type |
---|---|
__kind | "PermanentDelegate" |
delegate | Address |
Name | Type |
---|---|
__kind | "NonTransferableAccount" |
Name | Type | Description |
---|---|---|
__kind | "TransferHook" | - |
authority | Address | The transfer hook update authority. |
programId | Address | The transfer hook program account. |
Name | Type | Description |
---|---|---|
__kind | "TransferHookAccount" | - |
transferring | boolean | Whether or not this account is currently transferring tokens True during the transfer hook cpi, otherwise false. |
Name | Type | Description |
---|---|---|
__kind | "ConfidentialTransferFee" | - |
authority | Option <Address > | Optional authority to set the withdraw withheld authority ElGamal key. |
elgamalPubkey | Address | Withheld fees from accounts must be encrypted with this ElGamal key. Note that whoever holds the ElGamal private key for this ElGamal public key has the ability to decode any withheld fee amount that are associated with accounts. When combined with the fee parameters, the withheld fee amounts can reveal information about transfer amounts. |
harvestToMintEnabled | boolean | If false , the harvest of withheld tokens to mint is rejected. |
withheldAmount | EncryptedBalance | Withheld confidential transfer fee tokens that have been moved to the mint for withdrawal. |
Name | Type | Description |
---|---|---|
__kind | "ConfidentialTransferFeeAmount" | - |
withheldAmount | EncryptedBalance | Amount withheld during confidential transfers, to be harvest to the mint. |
Name | Type | Description |
---|---|---|
__kind | "MetadataPointer" | - |
authority | Option <Address > | Optional authority that can set the metadata address. |
metadataAddress | Option <Address > | Optional Account Address that holds the metadata. |
Name | Type | Description |
---|---|---|
__kind | "TokenMetadata" | - |
additionalMetadata | Map <string , string > | Any additional metadata about the token as key-value pairs. |
mint | Address | The associated mint, used to counter spoofing to be sure that metadata belongs to a particular mint. |
name | string | The longer name of the token. |
symbol | string | The shortened symbol for the token. |
updateAuthority | Option <Address > | The authority that can sign to update the metadata. |
uri | string | The URI pointing to richer metadata. |
Name | Type | Description |
---|---|---|
__kind | "GroupPointer" | - |
authority | Option <Address > | Optional authority that can set the group address. |
groupAddress | Option <Address > | Optional account address that holds the group. |
Name | Type | Description |
---|---|---|
__kind | "TokenGroup" | - |
maxSize | bigint | The maximum number of group members. |
mint | Address | The associated mint, used to counter spoofing to be sure that group belongs to a particular mint. |
size | bigint | The current number of group members. |
updateAuthority | Option <Address > | The authority that can sign to update the group. |
Name | Type | Description |
---|---|---|
__kind | "GroupMemberPointer" | - |
authority | Option <Address > | Optional authority that can set the member address. |
memberAddress | Option <Address > | Optional account address that holds the member. |
Name | Type | Description |
---|---|---|
__kind | "TokenGroupMember" | - |
group | Address | The pubkey of the TokenGroup . |
memberNumber | bigint | The member number. |
mint | Address | The associated mint, used to counter spoofing to be sure that member belongs to a particular mint. |
Name | Type |
---|---|
__kind | "ConfidentialMintBurn" |
Name | Type |
---|---|
__kind | "ScaledUiAmountConfig" |
authority | Address |
multiplier | number |
newMultiplier | number |
newMultiplierEffectiveTimestamp | bigint |