feat: add getConfirmedTransaction and getConfirmedSignaturesForAddress
This commit is contained in:
		
				
					committed by
					
						 Michael Vines
						Michael Vines
					
				
			
			
				
	
			
			
			
						parent
						
							7f182d22cd
						
					
				
				
					commit
					ae53742e1a
				
			| @@ -111,6 +111,17 @@ declare module '@solana/web3.js' { | ||||
|     }>, | ||||
|   }; | ||||
|  | ||||
|   declare export type ConfirmedTransaction = { | ||||
|     slot: number, | ||||
|     transaction: Transaction, | ||||
|     meta: { | ||||
|       fee: number, | ||||
|       preBalances: Array<number>, | ||||
|       postBalances: Array<number>, | ||||
|       err: TransactionError | null, | ||||
|     } | null, | ||||
|   }; | ||||
|  | ||||
|   declare export type KeyedAccountInfo = { | ||||
|     accountId: PublicKey, | ||||
|     accountInfo: AccountInfo, | ||||
| @@ -197,6 +208,14 @@ declare module '@solana/web3.js' { | ||||
|     getBalance(publicKey: PublicKey, commitment: ?Commitment): Promise<number>; | ||||
|     getClusterNodes(): Promise<Array<ContactInfo>>; | ||||
|     getConfirmedBlock(slot: number): Promise<ConfirmedBlock>; | ||||
|     getConfirmedTransaction( | ||||
|       signature: TransactionSignature, | ||||
|     ): Promise<ConfirmedTransaction | null>; | ||||
|     getConfirmedSignaturesForAddress( | ||||
|       address: PublicKey, | ||||
|       startSlot: number, | ||||
|       endSlot: number, | ||||
|     ): Promise<Array<TransactionSignature>>; | ||||
|     getVoteAccounts(commitment: ?Commitment): Promise<VoteAccountStatus>; | ||||
|     confirmTransactionAndContext( | ||||
|       signature: TransactionSignature, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user