- Preparing search index...
- The search index is not available
API References
Properties
Protected
Readonly
metaplex
Protected
Optional
defaultFeePayer
Methods
Protected
prepareTransaction
- prepareTransaction(transaction: TransactionBuilder<object> | Transaction, signers: Signer[]): Promise<{
transaction: Transaction;
signers: Signer[];
blockhashWithExpiryBlockHeight: Readonly<{
blockhash: string;
lastValidBlockHeight: number;
}>;
}>
-
Returns Promise<{
transaction: Transaction;
signers: Signer[];
blockhashWithExpiryBlockHeight: Readonly<{
blockhash: string;
lastValidBlockHeight: number;
}>;
}>
signTransaction
- signTransaction(transaction: Transaction, signers: Signer[]): Promise<Transaction>
-
Returns Promise<Transaction>
sendTransaction
- sendTransaction(transaction: TransactionBuilder<object> | Transaction, sendOptions?: SendOptions, signers?: Signer[]): Promise<string>
-
Parameters
-
-
sendOptions: SendOptions = {}
-
signers: Signer[] = []
Returns Promise<string>
confirmTransaction
- confirmTransaction(signature: string, blockhashWithExpiryBlockHeight: Readonly<{
blockhash: string;
lastValidBlockHeight: number;
}>, commitment?: Commitment): Promise<ConfirmTransactionResponse>
-
Parameters
-
signature: string
-
blockhashWithExpiryBlockHeight: Readonly<{
blockhash: string;
lastValidBlockHeight: number;
}>
-
Optional
commitment: Commitment
sendAndConfirmTransaction
accountExists
- accountExists(publicKey: PublicKey, commitment?: Commitment): Promise<boolean>
-
Parameters
-
-
Optional
commitment: Commitment
Returns Promise<boolean>
getMultipleAccounts
- getMultipleAccounts(publicKeys: PublicKey[], commitment?: Commitment): Promise<UnparsedMaybeAccount[]>
-
Parameters
-
-
Optional
commitment: Commitment
getProgramAccounts
- getProgramAccounts(programId: PublicKey, configOrCommitment?: Commitment | GetProgramAccountsConfig): Promise<UnparsedAccount[]>
-
Parameters
-
-
Optional
configOrCommitment: Commitment | GetProgramAccountsConfig
getBalance
- getBalance(publicKey: PublicKey, commitment?: Commitment): Promise<SolAmount>
-
Parameters
-
-
Optional
commitment: Commitment
getRent
- getRent(bytes: number, commitment?: Commitment): Promise<SolAmount>
-
Parameters
-
bytes: number
-
Optional
commitment: Commitment
getLatestBlockhash
- getLatestBlockhash(commitmentOrConfig?: Commitment | GetLatestBlockhashConfig): Promise<Readonly<{
blockhash: string;
lastValidBlockHeight: number;
}>>
-
Parameters
-
commitmentOrConfig: Commitment | GetLatestBlockhashConfig = 'finalized'
Returns Promise<Readonly<{
blockhash: string;
lastValidBlockHeight: number;
}>>
getSolanaExporerUrl
- getSolanaExporerUrl(signature: string): string
-
Returns string
Protected
getUnparsedMaybeAccount
- getUnparsedMaybeAccount(publicKey: PublicKey, accountInfo: null | AccountInfo<Buffer>): UnparsedMaybeAccount
-
Parameters
-
-
accountInfo: null | AccountInfo<Buffer>
Protected
parseProgramError
- parseProgramError(error: unknown, transaction: Transaction): MetaplexError
-
Parameters
-
error: unknown
-
transaction: Transaction