WalletAccountSolana
Defined in: wallet-solana/src/account.ts:34
Signing Solana account. The account never touches a private key: every
signature is one signer.sign(bytes, {scheme: 'ed25519', context}) call
over the compiled message bytes — a LocalSigner for seed wallets,
anything else (hardware, MPC, backend) through externalSigner(). No
WebCrypto anywhere, so it runs unchanged in Node and Hermes.
Every broadcast goes through the same plan: hard checks (fee payer, burn address, missing co-signers) → compute budget → simulation → fee guard → sign → send. A failing step throws before the signer is asked for anything.
Extends
Section titled “Extends”Implements
Section titled “Implements”IWalletAccount
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new WalletAccountSolana(
signer,publicKey,path,config?):WalletAccountSolana
Defined in: wallet-solana/src/account.ts:51
Parameters
Section titled “Parameters”signer
Section titled “signer”Signer
publicKey
Section titled “publicKey”Uint8Array
string
config?
Section titled “config?”SolanaConfig = {}
Returns
Section titled “Returns”WalletAccountSolana
Overrides
Section titled “Overrides”WalletAccountReadOnlySolana.constructor
Properties
Section titled “Properties”_commitment
Section titled “_commitment”
protectedreadonly_commitment:Commitment
Defined in: wallet-solana/src/read-only-account.ts:146
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana._commitment
_config
Section titled “_config”
protectedreadonly_config:SolanaConfig
Defined in: wallet-solana/src/read-only-account.ts:144
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana._config
protectedreadonly_rpc:Rpc<SolanaRpcApiForTestClusters> |undefined
Defined in: wallet-solana/src/read-only-account.ts:145
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana._rpc
address
Section titled “address”
readonlyaddress:Address
Defined in: wallet-solana/src/read-only-account.ts:141
Base58 address.
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.address
readonlychain:string
Defined in: wallet-solana/src/read-only-account.ts:143
CAIP-2 id of the cluster.
Implementation of
Section titled “Implementation of”IWalletAccount.chain
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.chain
needsNetwork
Section titled “needsNetwork”
readonlyneedsNetwork:true=true
Defined in: wallet-solana/src/account.ts:36
Blockhash and fee come from the network before signing.
Implementation of
Section titled “Implementation of”IWalletAccount.needsNetwork
readonlypath:string
Defined in: wallet-solana/src/account.ts:38
Derivation path, or external for an external signer.
publicKey
Section titled “publicKey”
readonlypublicKey:Uint8Array
Defined in: wallet-solana/src/account.ts:40
The signer’s 32-byte ed25519 public key (needed synchronously for the address).
signerKind
Section titled “signerKind”
readonlysignerKind:"seed"|"key"|"external"
Defined in: wallet-solana/src/account.ts:48
What holds the key: seed, key (one imported key) or external.
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get index():
number|undefined
Defined in: wallet-solana/src/account.ts:65
Account index for the standard m/44’/501’/i’/0’ path.
Returns
Section titled “Returns”number | undefined
Methods
Section titled “Methods”assertWalletRecipient()
Section titled “assertWalletRecipient()”
protectedassertWalletRecipient(recipient):Promise<void>
Defined in: wallet-solana/src/read-only-account.ts:337
A transfer’s recipient must be a wallet (round 3, M10). A token account or a mint as recipient gets an associated token account nobody can sign for, and SOL or tokens sent to a program are lost: an account owned by Token / Token-2022, or an executable one, is refused. An address with no account yet is an ordinary wallet.
Parameters
Section titled “Parameters”recipient
Section titled “recipient”string
Returns
Section titled “Returns”Promise<void>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.assertWalletRecipient
protectedata(mint,owner,tokenProgram?):Promise<Address>
Defined in: wallet-solana/src/read-only-account.ts:262
Parameters
Section titled “Parameters”Address
Address
tokenProgram?
Section titled “tokenProgram?”Address = TOKEN_PROGRAM_ADDRESS
Returns
Section titled “Returns”Promise<Address>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.ata
buildNativeTransfer()
Section titled “buildNativeTransfer()”
protectedbuildNativeTransfer(to,value):Promise<TransactionMessage>
Defined in: wallet-solana/src/read-only-account.ts:326
Parameters
Section titled “Parameters”string
string | number | bigint
Returns
Section titled “Returns”Promise<TransactionMessage>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.buildNativeTransfer
buildTokenTransfer()
Section titled “buildTokenTransfer()”
protectedbuildTokenTransfer(token,recipient,amount):Promise<{message:TransactionMessage;tokenFee:bigint; }>
Defined in: wallet-solana/src/read-only-account.ts:348
SPL / Token-2022 transfer via transferChecked (mint + decimals verified on chain); the recipient ATA is created when missing.
Parameters
Section titled “Parameters”string
recipient
Section titled “recipient”string
amount
Section titled “amount”string | number | bigint
Returns
Section titled “Returns”Promise<{ message: TransactionMessage; tokenFee: bigint; }>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.buildTokenTransfer
checkSerialized()
Section titled “checkSerialized()”checkSerialized(
base64,guard,options?):Promise<SerializedCheck>
Defined in: wallet-solana/src/read-only-account.ts:793
Prove what a provider-built transaction does before anyone signs it (see
serialized.ts). Throws UnsafeTransactionError (allowlist, authority
changes, balance violations), MissingSignersError or
SimulationError; returns the evidence otherwise. Nothing is signed.
Parameters
Section titled “Parameters”base64
Section titled “base64”string
options?
Section titled “options?”PlanOptions = {}
Returns
Section titled “Returns”Promise<SerializedCheck>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.checkSerialized
describeTransaction()
Section titled “describeTransaction()”describeTransaction(
tx):TransactionDescription
Defined in: wallet-solana/src/read-only-account.ts:998
Decode without the network: what the transaction does and what to be wary of.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.describeTransaction
dispose()
Section titled “dispose()”dispose():
void
Defined in: wallet-solana/src/account.ts:187
Dispose the signer (zeroizes a local key). Idempotent.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”IWalletAccount.dispose
enforce()
Section titled “enforce()”
protectedenforce(description,options?):void
Defined in: wallet-solana/src/read-only-account.ts:530
Hard checks shared by every signing path. options carries the per-call opt-ins (SolanaWriteOptions).
Parameters
Section titled “Parameters”description
Section titled “description”options?
Section titled “options?”allowDurableNonce?
Section titled “allowDurableNonce?”boolean
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.enforce
enforceAuthorities()
Section titled “enforceAuthorities()”
protectedenforceAuthorities(description):void
Defined in: wallet-solana/src/read-only-account.ts:552
The drainer shapes a wallet never signs by default: this wallet’s account reassigned, allocated
or created under a program; a nonce, token, metadata or group authority handed away; lamports
moved out by an instruction the description does not show as a transfer (a token account
closed, excess or wrapped lamports withdrawn, a nonce or seed account emptied) to anyone but
this wallet; a token Batch (it can carry any of these); an undecodable System / Token
instruction. Instructions whose accounts sit in unresolved lookup tables are judged by their
identified name (this wallet, a signer, is always a static key). A program this wallet signs
for can still do any of this by CPI; sendSerialized proves the outcome by simulation instead.
Parameters
Section titled “Parameters”description
Section titled “description”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.enforceAuthorities
enforceCompiledSigners()
Section titled “enforceCompiledSigners()”
protectedenforceCompiledSigners(description,options?):void
Defined in: wallet-solana/src/read-only-account.ts:709
Signer checks shared by every compiled-transaction path: this wallet must be a required signer and nobody else may still be missing.
Parameters
Section titled “Parameters”description
Section titled “description”options?
Section titled “options?”PlanOptions = {}
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.enforceCompiledSigners
feeForBase64()
Section titled “feeForBase64()”
protectedfeeForBase64(messageBase64):Promise<bigint>
Defined in: wallet-solana/src/read-only-account.ts:981
Parameters
Section titled “Parameters”messageBase64
Section titled “messageBase64”string
Returns
Section titled “Returns”Promise<bigint>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.feeForBase64
feeForMessage()
Section titled “feeForMessage()”
protectedfeeForMessage(msg):Promise<bigint>
Defined in: wallet-solana/src/read-only-account.ts:976
Parameters
Section titled “Parameters”TransactionMessage
Returns
Section titled “Returns”Promise<bigint>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.feeForMessage
getAccountInfos()
Section titled “getAccountInfos()”getAccountInfos(
addresses):Promise<(SolanaAccountData|null)[]>
Defined in: wallet-solana/src/read-only-account.ts:767
Raw accounts in the order asked (null where none exists), batched 100 per getMultipleAccounts:
for modules that check a provider’s figures against the chain state they claim to describe.
Parameters
Section titled “Parameters”addresses
Section titled “addresses”readonly string[]
Returns
Section titled “Returns”Promise<(SolanaAccountData | null)[]>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.getAccountInfos
getAddress()
Section titled “getAddress()”getAddress():
Promise<string>
Defined in: wallet-solana/src/read-only-account.ts:163
The base58 address.
Returns
Section titled “Returns”Promise<string>
Implementation of
Section titled “Implementation of”IWalletAccount.getAddress
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.getAddress
getBalance()
Section titled “getBalance()”getBalance():
Promise<bigint>
Defined in: wallet-solana/src/read-only-account.ts:166
Native balance in lamports.
Returns
Section titled “Returns”Promise<bigint>
Implementation of
Section titled “Implementation of”IWalletAccount.getBalance
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.getBalance
getMintInfo()
Section titled “getMintInfo()”getMintInfo(
mint):Promise<MintInfo>
Defined in: wallet-solana/src/read-only-account.ts:174
Mint owner program, decimals and (Token-2022) the transfer fee in force this epoch.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<MintInfo>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.getMintInfo
getTokenAccountOwner()
Section titled “getTokenAccountOwner()”getTokenAccountOwner(
tokenAccount):Promise<string|undefined>
Defined in: wallet-solana/src/read-only-account.ts:201
The owner of a Token / Token-2022 token account — whom an SPL transfer into it pays — or undefined when the address holds no initialized token account (a wallet, a mint, nothing). Network errors throw. The kit’s policies read SPL transfer recipients through it.
Parameters
Section titled “Parameters”tokenAccount
Section titled “tokenAccount”string
Returns
Section titled “Returns”Promise<string | undefined>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.getTokenAccountOwner
getTokenBalance()
Section titled “getTokenBalance()”getTokenBalance(
token):Promise<bigint>
Defined in: wallet-solana/src/read-only-account.ts:272
Balance of a mint in this wallet’s associated token account (Token or Token-2022, whichever owns the mint), in base units; 0 when that account does not exist or the address is not a mint. A network error throws: it is never read as a zero balance (round 3, L10).
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<bigint>
Implementation of
Section titled “Implementation of”IWalletAccount.getTokenBalance
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.getTokenBalance
getTokenBalances()
Section titled “getTokenBalances()”getTokenBalances(
tokens):Promise<Record<string,bigint>>
Defined in: wallet-solana/src/read-only-account.ts:287
Batched over getMultipleAccounts (100 addresses per call). Both programs’ associated token accounts are read for every mint, so Token-2022 balances count (round 3, L10); the amount comes from the token-account layout (offset 64) of the account that holds that mint.
Parameters
Section titled “Parameters”tokens
Section titled “tokens”string[]
Returns
Section titled “Returns”Promise<Record<string, bigint>>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.getTokenBalances
getTokenInfo()
Section titled “getTokenInfo()”getTokenInfo(
token):Promise<TokenInfo>
Defined in: wallet-solana/src/read-only-account.ts:222
Decimals, symbol, name, supply and the holder-relevant flags of a mint, read from the chain: a live mint or freeze authority, and the Token-2022 extensions that let someone take, tax, hook, freeze or pause holders’ tokens. Name and symbol come from the Token-2022 metadata extension, else from the Metaplex metadata account (“” when there is neither). Throws NotATokenError when the address is not an initialized Token / Token-2022 mint.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<TokenInfo>
Implementation of
Section titled “Implementation of”IWalletAccount.getTokenInfo
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.getTokenInfo
getTransactionReceipt()
Section titled “getTransactionReceipt()”getTransactionReceipt(
hash):Promise<SolanaReceipt|undefined>
Defined in: wallet-solana/src/read-only-account.ts:1003
The receipt, or undefined while the transaction has not landed.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<SolanaReceipt | undefined>
Implementation of
Section titled “Implementation of”IWalletAccount.getTransactionReceipt
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.getTransactionReceipt
latestBlockhash()
Section titled “latestBlockhash()”
protectedlatestBlockhash():Promise<Readonly<{ }>>
Defined in: wallet-solana/src/read-only-account.ts:311
Returns
Section titled “Returns”Promise<Readonly<{ }>>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.latestBlockhash
lookupAddresses()
Section titled “lookupAddresses()”
protectedlookupAddresses(tables):Promise<Record<string, readonlystring[]> |undefined>
Defined in: wallet-solana/src/read-only-account.ts:756
Addresses of a lookup-table set, fetched once; undefined when the message uses none.
Parameters
Section titled “Parameters”tables
Section titled “tables”readonly string[]
Returns
Section titled “Returns”Promise<Record<string, readonly string[]> | undefined>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.lookupAddresses
plan()
Section titled “plan()”
protectedplan(tx,opts?):Promise<SolanaPlan>
Defined in: wallet-solana/src/read-only-account.ts:960
Plan any accepted input.
Parameters
Section titled “Parameters”PlanOptions = {}
Returns
Section titled “Returns”Promise<SolanaPlan>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.plan
planCompiled()
Section titled “planCompiled()”
protectedplanCompiled(input,opts?):Promise<SolanaPlan>
Defined in: wallet-solana/src/read-only-account.ts:717
Plan a compiled transaction (kit Transaction or base64 wire): hard checks, simulation, fee quote. The bytes are never altered.
Parameters
Section titled “Parameters”string | Readonly<{ }>
PlanOptions = {}
Returns
Section titled “Returns”Promise<SolanaPlan>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.planCompiled
planMessage()
Section titled “planMessage()”
protectedplanMessage(input,opts?):Promise<SolanaPlan>
Defined in: wallet-solana/src/read-only-account.ts:664
Plan a message-based transaction: lookup tables, compute budget (priority price + unit limit), simulation and the fee quote. Shared by quote / sign / send so the network is consulted once per fact.
Parameters
Section titled “Parameters”TransactionMessage
PlanOptions & object = {}
Returns
Section titled “Returns”Promise<SolanaPlan>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.planMessage
planTransfer()
Section titled “planTransfer()”
protectedplanTransfer(o,opts?):Promise<SolanaPlan>
Defined in: wallet-solana/src/read-only-account.ts:965
Parameters
Section titled “Parameters”PlanOptions = {}
Returns
Section titled “Returns”Promise<SolanaPlan>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.planTransfer
prepareMessage()
Section titled “prepareMessage()”
protectedprepareMessage(tx):Promise<TransactionMessage>
Defined in: wallet-solana/src/read-only-account.ts:372
Normalise {to, value} or a kit message into a message with lifetime + this account as fee payer.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<TransactionMessage>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.prepareMessage
quoteCompiled()
Section titled “quoteCompiled()”
protectedquoteCompiled(transaction,description):Promise<SolanaFeeQuote>
Defined in: wallet-solana/src/read-only-account.ts:736
Fee of a compiled transaction: signatures + the compute budget it carries, floored by the RPC’s own quote.
Parameters
Section titled “Parameters”transaction
Section titled “transaction”Transaction
description
Section titled “description”Returns
Section titled “Returns”Promise<SolanaFeeQuote>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.quoteCompiled
quoteSendTransaction()
Section titled “quoteSendTransaction()”quoteSendTransaction(
tx):Promise<SolanaFeeQuote>
Defined in: wallet-solana/src/read-only-account.ts:988
Full fee breakdown (base + priority, Token-2022 fee for transfers). Simulation runs too, so a reverting tx is reported here.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<SolanaFeeQuote>
Implementation of
Section titled “Implementation of”IWalletAccount.quoteSendTransaction
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.quoteSendTransaction
quoteTransfer()
Section titled “quoteTransfer()”quoteTransfer(
o):Promise<SolanaFeeQuote>
Defined in: wallet-solana/src/read-only-account.ts:993
Fee breakdown of a transfer, including the compute budget and any Token-2022 transfer fee.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<SolanaFeeQuote>
Implementation of
Section titled “Implementation of”IWalletAccount.quoteTransfer
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.quoteTransfer
requireRpc()
Section titled “requireRpc()”
protectedrequireRpc(what):SolanaRpc
Defined in: wallet-solana/src/read-only-account.ts:157
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.requireRpc
sendSerialized()
Section titled “sendSerialized()”sendSerialized(
base64,guard,options?):Promise<SolanaSendResult&object>
Defined in: wallet-solana/src/account.ts:171
Sign and broadcast a provider-built transaction (base64 wire) after
checkSerialized proved it only does what guard.expect allows.
Signatures already present (other parties) are preserved. The checked fee is held to the
tighter of transactionMaxFee and options.maxFee.
Parameters
Section titled “Parameters”base64
Section titled “base64”string
options?
Section titled “options?”SolanaWriteOptions = {}
Returns
Section titled “Returns”Promise<SolanaSendResult & object>
sendTransaction()
Section titled “sendTransaction()”sendTransaction(
tx,options?):Promise<SolanaSendResult>
Defined in: wallet-solana/src/account.ts:148
Sign and broadcast.
Parameters
Section titled “Parameters”options?
Section titled “options?”SolanaWriteOptions = {}
Returns
Section titled “Returns”Promise<SolanaSendResult>
Implementation of
Section titled “Implementation of”IWalletAccount.sendTransaction
sign()
Section titled “sign()”sign(
message):Promise<string>
Defined in: wallet-solana/src/account.ts:77
Hex ed25519 signature over the raw message bytes (UTF-8 for a string; context solana-offchain).
Throws MessageIsTransactionError when the bytes are a Solana transaction this account
would sign for (see isSolanaTransactionPayload): that must go through signTransaction.
On an external signer (path ‘external’) a 32-byte message is refused too: the same ed25519
key may also be a TON or NEAR wallet, whose transactions are signed over a 32-byte digest.
Parameters
Section titled “Parameters”message
Section titled “message”string | Uint8Array<ArrayBufferLike>
Returns
Section titled “Returns”Promise<string>
Implementation of
Section titled “Implementation of”IWalletAccount.sign
signCompiled()
Section titled “signCompiled()”signCompiled(
tx,options?):Promise<Readonly<{ }>>
Defined in: wallet-solana/src/account.ts:89
Add this wallet’s signature to a compiled transaction (other signatures are preserved). Runs the
same checks as every signing path (round 3): a drainer shape, a burn or a durable nonce is
refused unless the config or options opt in. No simulation and no fee quote: it is a primitive.
Parameters
Section titled “Parameters”Transaction
options?
Section titled “options?”SolanaWriteOptions = {}
Returns
Section titled “Returns”Promise<Readonly<{ }>>
signTransaction()
Section titled “signTransaction()”signTransaction(
tx,options?):Promise<string>
Defined in: wallet-solana/src/account.ts:120
Sign without broadcasting. Returns the base64 wire transaction. Simulation still runs (a reverting tx is refused).
Parameters
Section titled “Parameters”options?
Section titled “options?”SolanaWriteOptions = {}
Returns
Section titled “Returns”Promise<string>
Implementation of
Section titled “Implementation of”IWalletAccount.signTransaction
signTransactionMessage()
Section titled “signTransactionMessage()”signTransactionMessage(
msg,options?):Promise<Readonly<{ }>>
Defined in: wallet-solana/src/account.ts:95
Compile and sign a message; returns the kit Transaction (for callers that want to inspect or co-sign). Checked like signCompiled.
Parameters
Section titled “Parameters”TransactionMessage
options?
Section titled “options?”SolanaWriteOptions = {}
Returns
Section titled “Returns”Promise<Readonly<{ }>>
simulateSerialized()
Section titled “simulateSerialized()”simulateSerialized(
base64,guard):Promise<{check:SerializedCheck;ok:true; } | {code?:string;ok:false;reason:string; }>
Defined in: wallet-solana/src/read-only-account.ts:949
checkSerialized without throwing for a refusal: the check or the reason.
Parameters
Section titled “Parameters”base64
Section titled “base64”string
Returns
Section titled “Returns”Promise<{ check: SerializedCheck; ok: true; } | { code?: string; ok: false; reason: string; }>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.simulateSerialized
simulateTransaction()
Section titled “simulateTransaction()”simulateTransaction(
tx):Promise<SimulationResult>
Defined in: wallet-solana/src/read-only-account.ts:522
simulateTransaction for any accepted input; never throws for an on-chain failure, only for transport errors.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<SimulationResult>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.simulateTransaction
toReadOnlyAccount()
Section titled “toReadOnlyAccount()”toReadOnlyAccount():
IWalletAccountReadOnly
Defined in: wallet-solana/src/account.ts:181
The same address as a WalletAccountReadOnlySolana.
Returns
Section titled “Returns”IWalletAccountReadOnly
Implementation of
Section titled “Implementation of”IWalletAccount.toReadOnlyAccount
transfer()
Section titled “transfer()”transfer(
o,writeOptions?):Promise<SolanaSendResult>
Defined in: wallet-solana/src/account.ts:157
SOL (no token), SPL or Token-2022 transfer; the recipient’s ATA is created when missing.
Parameters
Section titled “Parameters”writeOptions?
Section titled “writeOptions?”WriteOptions = {}
Returns
Section titled “Returns”Promise<SolanaSendResult>
Implementation of
Section titled “Implementation of”IWalletAccount.transfer
verify()
Section titled “verify()”verify(
message,signature):Promise<boolean>
Defined in: wallet-solana/src/read-only-account.ts:1012
ed25519 over the UTF-8 message; signature hex.
Parameters
Section titled “Parameters”message
Section titled “message”string | Uint8Array<ArrayBufferLike>
signature
Section titled “signature”string
Returns
Section titled “Returns”Promise<boolean>
Implementation of
Section titled “Implementation of”IWalletAccount.verify
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.verify
withLookupTables()
Section titled “withLookupTables()”
protectedwithLookupTables(msg,tables):Promise<TransactionMessage>
Defined in: wallet-solana/src/read-only-account.ts:389
Compress a v0 message with the given address lookup tables (fetched from the RPC).
Parameters
Section titled “Parameters”TransactionMessage
tables
Section titled “tables”string[] | undefined
Returns
Section titled “Returns”Promise<TransactionMessage>
Inherited from
Section titled “Inherited from”WalletAccountReadOnlySolana.withLookupTables
fromPrivateKey()
Section titled “fromPrivateKey()”
staticfromPrivateKey(privateKey,publicKey,path,config?):WalletAccountSolana
Defined in: wallet-solana/src/account.ts:60
Back-compat: wrap a raw derived key in a LocalSigner (the account takes ownership; it cannot derive).
Parameters
Section titled “Parameters”privateKey
Section titled “privateKey”Uint8Array
publicKey
Section titled “publicKey”Uint8Array
string
config?
Section titled “config?”SolanaConfig = {}
Returns
Section titled “Returns”WalletAccountSolana
transferFeeFor()
Section titled “transferFeeFor()”
statictransferFeeFor(info,amount):bigint
Defined in: wallet-solana/src/read-only-account.ts:256
Token-2022 transfer fee for amount under info (0 for plain mints).
Parameters
Section titled “Parameters”amount
Section titled “amount”bigint
Returns
Section titled “Returns”bigint