|
@@ -11,6 +11,7 @@ import {
|
|
SendOptions,
|
|
SendOptions,
|
|
VersionedTransaction,
|
|
VersionedTransaction,
|
|
RpcResponseAndContext,
|
|
RpcResponseAndContext,
|
|
|
|
+ Keypair,
|
|
} from "@solana/web3.js";
|
|
} from "@solana/web3.js";
|
|
import { bs58 } from "./utils/bytes/index.js";
|
|
import { bs58 } from "./utils/bytes/index.js";
|
|
import { isBrowser, isVersionedTransaction } from "./utils/common.js";
|
|
import { isBrowser, isVersionedTransaction } from "./utils/common.js";
|
|
@@ -22,6 +23,7 @@ import {
|
|
export default interface Provider {
|
|
export default interface Provider {
|
|
readonly connection: Connection;
|
|
readonly connection: Connection;
|
|
readonly publicKey?: PublicKey;
|
|
readonly publicKey?: PublicKey;
|
|
|
|
+ readonly wallet?: Wallet;
|
|
|
|
|
|
send?(
|
|
send?(
|
|
tx: Transaction | VersionedTransaction,
|
|
tx: Transaction | VersionedTransaction,
|
|
@@ -360,6 +362,8 @@ export interface Wallet {
|
|
txs: T[]
|
|
txs: T[]
|
|
): Promise<T[]>;
|
|
): Promise<T[]>;
|
|
publicKey: PublicKey;
|
|
publicKey: PublicKey;
|
|
|
|
+ /** Keypair of the configured payer (Node only) */
|
|
|
|
+ payer?: Keypair;
|
|
}
|
|
}
|
|
|
|
|
|
// Copy of Connection.sendAndConfirmRawTransaction that throws
|
|
// Copy of Connection.sendAndConfirmRawTransaction that throws
|