@thru/thru-sdk 0.2.0 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Pubkey as Pubkey$1, TaPubkey, Signature as Signature$1, TsSignature, TransactionVmError, Transaction as Transaction$1, TransactionExecutionResult, ConsensusStatus, TransactionStatus, AccountFlags as AccountFlags$1, AccountMeta as AccountMeta$1, AccountData as AccountData$1, Account as Account$1, FilterParamValue as FilterParamValue$1, Filter as Filter$1, PageRequest as PageRequest$1, PageResponse as PageResponse$1, AccountView, VersionContext, DataSlice, RawAccount, ExecutionStatus, BlockFooter as BlockFooter$1, BlockHeader as BlockHeader$1, Block as Block$1, BlockView, RawBlock, Event, StreamEventsResponse, StateProof as StateProof$1, StateProofType, TransactionView, RawTransaction, BatchSendTransactionsResponse, GetVersionResponse } from '@thru/proto';
1
+ import { Pubkey as Pubkey$1, TaPubkey, Signature as Signature$1, TsSignature, TransactionVmError, Transaction as Transaction$1, TransactionExecutionResult, ConsensusStatus, TransactionStatus, AccountFlags as AccountFlags$1, AccountMeta as AccountMeta$1, AccountData as AccountData$1, Account as Account$1, FilterParamValue as FilterParamValue$1, Filter as Filter$1, PageRequest as PageRequest$1, PageResponse as PageResponse$1, AccountView, VersionContext, DataSlice, RawAccount, ExecutionStatus, BlockFooter as BlockFooter$1, BlockHeader as BlockHeader$1, Block as Block$1, BlockView, RawBlock, GetChainInfoResponse, Event, StreamEventsResponse, GetNodePubkeyResponse, GetNodeRecordsResponse, StateProof as StateProof$1, StateProofType, GetStateRootsResponse, GetSlotMetricsResponse, ListSlotMetricsResponse, NodeRecord, TransactionView, RawTransaction, BatchSendTransactionsResponse, SubmissionStatus, GetVersionResponse } from '@thru/proto';
2
2
  import { Timestamp } from '@bufbuild/protobuf/wkt';
3
3
  import { Transport, createClient, CallOptions, Interceptor } from '@connectrpc/connect';
4
4
  import { GrpcWebTransportOptions } from '@connectrpc/connect-web';
@@ -533,12 +533,27 @@ declare class Block {
533
533
  });
534
534
  static fromProto(proto: Block$1): Block;
535
535
  static fromWire(data: Uint8Array): Block;
536
+ private static tryParseWireWithHeaderSize;
536
537
  toWire(): Uint8Array;
537
538
  getTransactions(): Transaction[];
538
539
  private static extractTransactionBody;
540
+ private static extractWithHeaderSize;
541
+ /**
542
+ * Checks if the data looks like a valid transaction body.
543
+ * Uses heuristics to detect if we've correctly offset into the block data.
544
+ * Wire format: header (112 bytes) + body + signature (64 bytes at end)
545
+ * This is a lenient heuristic for format detection - version/flag validation
546
+ * happens in Transaction.parseWire.
547
+ */
548
+ private static looksLikeValidTransactionBody;
539
549
  private serializeHeader;
540
550
  private serializeFooter;
541
551
  private static parseHeader;
552
+ /**
553
+ * Parses a block header with a specific expected size.
554
+ * Handles both current (168 bytes with weight_slot) and legacy (160 bytes without weight_slot) formats.
555
+ */
556
+ private static parseHeaderWithSize;
542
557
  private static parseFooter;
543
558
  private static parseTransactionsFromBody;
544
559
  }
@@ -608,6 +623,15 @@ declare namespace blocks {
608
623
  export { type blocks_BlockList as BlockList, type blocks_BlockQueryOptions as BlockQueryOptions, type blocks_ListBlocksOptions as ListBlocksOptions, type blocks_RawBlockQueryOptions as RawBlockQueryOptions, blocks_getBlock as getBlock, blocks_getRawBlock as getRawBlock, blocks_listBlocks as listBlocks };
609
624
  }
610
625
 
626
+ declare function getChainInfo(ctx: ThruClientContext): Promise<GetChainInfoResponse>;
627
+ declare function getChainId(ctx: ThruClientContext): Promise<number>;
628
+
629
+ declare const chain_getChainId: typeof getChainId;
630
+ declare const chain_getChainInfo: typeof getChainInfo;
631
+ declare namespace chain {
632
+ export { chain_getChainId as getChainId, chain_getChainInfo as getChainInfo };
633
+ }
634
+
611
635
  declare function consensusStatusToString(status: ConsensusStatus): string;
612
636
 
613
637
  type VersionContextInput = VersionContext | {
@@ -739,6 +763,15 @@ declare namespace keys {
739
763
  export { type keys_GeneratedKeyPair as GeneratedKeyPair, keys_fromPrivateKey as fromPrivateKey, keys_generateKeyPair as generateKeyPair };
740
764
  }
741
765
 
766
+ declare function getNodePubkey(ctx: ThruClientContext): Promise<GetNodePubkeyResponse>;
767
+ declare function getNodeRecords(ctx: ThruClientContext): Promise<GetNodeRecordsResponse>;
768
+
769
+ declare const node_getNodePubkey: typeof getNodePubkey;
770
+ declare const node_getNodeRecords: typeof getNodeRecords;
771
+ declare namespace node {
772
+ export { node_getNodePubkey as getNodePubkey, node_getNodeRecords as getNodeRecords };
773
+ }
774
+
742
775
  declare class StateProof {
743
776
  readonly proof: Uint8Array;
744
777
  readonly slot: bigint;
@@ -756,10 +789,31 @@ type GenerateStateProofOptions = {
756
789
  };
757
790
 
758
791
  declare function generateStateProof(ctx: ThruClientContext, options: GenerateStateProofOptions): Promise<StateProof>;
792
+ interface GetStateRootsOptions {
793
+ slot?: bigint;
794
+ }
795
+ declare function getStateRoots(ctx: ThruClientContext, options?: GetStateRootsOptions): Promise<GetStateRootsResponse>;
759
796
 
797
+ type proofs_GetStateRootsOptions = GetStateRootsOptions;
760
798
  declare const proofs_generateStateProof: typeof generateStateProof;
799
+ declare const proofs_getStateRoots: typeof getStateRoots;
761
800
  declare namespace proofs {
762
- export { proofs_generateStateProof as generateStateProof };
801
+ export { type proofs_GetStateRootsOptions as GetStateRootsOptions, proofs_generateStateProof as generateStateProof, proofs_getStateRoots as getStateRoots };
802
+ }
803
+
804
+ interface ListSlotMetricsOptions {
805
+ startSlot: bigint;
806
+ endSlot?: bigint;
807
+ limit?: number;
808
+ }
809
+ declare function getSlotMetrics(ctx: ThruClientContext, slot: bigint): Promise<GetSlotMetricsResponse>;
810
+ declare function listSlotMetrics(ctx: ThruClientContext, options: ListSlotMetricsOptions): Promise<ListSlotMetricsResponse>;
811
+
812
+ type slots_ListSlotMetricsOptions = ListSlotMetricsOptions;
813
+ declare const slots_getSlotMetrics: typeof getSlotMetrics;
814
+ declare const slots_listSlotMetrics: typeof listSlotMetrics;
815
+ declare namespace slots {
816
+ export { type slots_ListSlotMetricsOptions as ListSlotMetricsOptions, slots_getSlotMetrics as getSlotMetrics, slots_listSlotMetrics as listSlotMetrics };
763
817
  }
764
818
 
765
819
  interface TrackTransactionOptions {
@@ -809,6 +863,28 @@ interface StreamHeightResult {
809
863
  height: HeightSnapshot;
810
864
  }
811
865
  declare function streamHeight(ctx: ThruClientContext, options?: StreamHeightOptions): AsyncIterable<StreamHeightResult>;
866
+ interface StreamSlotMetricsOptions {
867
+ startSlot?: bigint;
868
+ signal?: AbortSignal;
869
+ }
870
+ interface StreamSlotMetricsResult {
871
+ slot: bigint;
872
+ collectedFees: bigint;
873
+ globalActivatedStateCounter: bigint;
874
+ globalDeactivatedStateCounter: bigint;
875
+ blockTimestamp?: Timestamp;
876
+ }
877
+ declare function streamSlotMetrics(ctx: ThruClientContext, options?: StreamSlotMetricsOptions): AsyncIterable<StreamSlotMetricsResult>;
878
+ type StreamNodeRecordsResult = {
879
+ type: "record";
880
+ record: NodeRecord;
881
+ } | {
882
+ type: "finished";
883
+ };
884
+ interface StreamNodeRecordsOptions {
885
+ signal?: AbortSignal;
886
+ }
887
+ declare function streamNodeRecords(ctx: ThruClientContext, options?: StreamNodeRecordsOptions): AsyncIterable<StreamNodeRecordsResult>;
812
888
  interface CollectStreamOptions {
813
889
  limit?: number;
814
890
  signal?: AbortSignal;
@@ -830,6 +906,10 @@ type streaming_StreamEventsOptions = StreamEventsOptions;
830
906
  type streaming_StreamEventsResult = StreamEventsResult;
831
907
  type streaming_StreamHeightOptions = StreamHeightOptions;
832
908
  type streaming_StreamHeightResult = StreamHeightResult;
909
+ type streaming_StreamNodeRecordsOptions = StreamNodeRecordsOptions;
910
+ type streaming_StreamNodeRecordsResult = StreamNodeRecordsResult;
911
+ type streaming_StreamSlotMetricsOptions = StreamSlotMetricsOptions;
912
+ type streaming_StreamSlotMetricsResult = StreamSlotMetricsResult;
833
913
  type streaming_StreamTransactionUpdate = StreamTransactionUpdate;
834
914
  type streaming_StreamTransactionsOptions = StreamTransactionsOptions;
835
915
  type streaming_StreamTransactionsResult = StreamTransactionsResult;
@@ -842,10 +922,12 @@ declare const streaming_streamAccountUpdates: typeof streamAccountUpdates;
842
922
  declare const streaming_streamBlocks: typeof streamBlocks;
843
923
  declare const streaming_streamEvents: typeof streamEvents;
844
924
  declare const streaming_streamHeight: typeof streamHeight;
925
+ declare const streaming_streamNodeRecords: typeof streamNodeRecords;
926
+ declare const streaming_streamSlotMetrics: typeof streamSlotMetrics;
845
927
  declare const streaming_streamTransactions: typeof streamTransactions;
846
928
  declare const streaming_trackTransaction: typeof trackTransaction;
847
929
  declare namespace streaming {
848
- export { type streaming_CollectStreamOptions as CollectStreamOptions, type streaming_StreamAccountUpdatesOptions as StreamAccountUpdatesOptions, type streaming_StreamAccountUpdatesResult as StreamAccountUpdatesResult, type streaming_StreamBlocksOptions as StreamBlocksOptions, type streaming_StreamBlocksResult as StreamBlocksResult, type streaming_StreamEventsOptions as StreamEventsOptions, type streaming_StreamEventsResult as StreamEventsResult, type streaming_StreamHeightOptions as StreamHeightOptions, type streaming_StreamHeightResult as StreamHeightResult, type streaming_StreamTransactionUpdate as StreamTransactionUpdate, type streaming_StreamTransactionsOptions as StreamTransactionsOptions, type streaming_StreamTransactionsResult as StreamTransactionsResult, type streaming_TrackTransactionOptions as TrackTransactionOptions, type streaming_TrackTransactionUpdate as TrackTransactionUpdate, streaming_collectStream as collectStream, streaming_firstStreamValue as firstStreamValue, streaming_forEachStreamValue as forEachStreamValue, streaming_streamAccountUpdates as streamAccountUpdates, streaming_streamBlocks as streamBlocks, streaming_streamEvents as streamEvents, streaming_streamHeight as streamHeight, streaming_streamTransactions as streamTransactions, streaming_trackTransaction as trackTransaction };
930
+ export { type streaming_CollectStreamOptions as CollectStreamOptions, type streaming_StreamAccountUpdatesOptions as StreamAccountUpdatesOptions, type streaming_StreamAccountUpdatesResult as StreamAccountUpdatesResult, type streaming_StreamBlocksOptions as StreamBlocksOptions, type streaming_StreamBlocksResult as StreamBlocksResult, type streaming_StreamEventsOptions as StreamEventsOptions, type streaming_StreamEventsResult as StreamEventsResult, type streaming_StreamHeightOptions as StreamHeightOptions, type streaming_StreamHeightResult as StreamHeightResult, type streaming_StreamNodeRecordsOptions as StreamNodeRecordsOptions, type streaming_StreamNodeRecordsResult as StreamNodeRecordsResult, type streaming_StreamSlotMetricsOptions as StreamSlotMetricsOptions, type streaming_StreamSlotMetricsResult as StreamSlotMetricsResult, type streaming_StreamTransactionUpdate as StreamTransactionUpdate, type streaming_StreamTransactionsOptions as StreamTransactionsOptions, type streaming_StreamTransactionsResult as StreamTransactionsResult, type streaming_TrackTransactionOptions as TrackTransactionOptions, type streaming_TrackTransactionUpdate as TrackTransactionUpdate, streaming_collectStream as collectStream, streaming_firstStreamValue as firstStreamValue, streaming_forEachStreamValue as forEachStreamValue, streaming_streamAccountUpdates as streamAccountUpdates, streaming_streamBlocks as streamBlocks, streaming_streamEvents as streamEvents, streaming_streamHeight as streamHeight, streaming_streamNodeRecords as streamNodeRecords, streaming_streamSlotMetrics as streamSlotMetrics, streaming_streamTransactions as streamTransactions, streaming_trackTransaction as trackTransaction };
849
931
  }
850
932
 
851
933
  interface TransactionFeePayerConfig {
@@ -924,6 +1006,23 @@ interface BatchSendTransactionsOptions {
924
1006
  numRetries?: number;
925
1007
  }
926
1008
  declare function batchSendTransactions(ctx: ThruClientContext, transactions: (Transaction | Uint8Array)[], options?: BatchSendTransactionsOptions): Promise<BatchSendTransactionsResponse>;
1009
+ interface SendAndTrackTxnOptions {
1010
+ timeoutMs?: number;
1011
+ signal?: AbortSignal;
1012
+ }
1013
+ interface SendAndTrackTxnUpdate {
1014
+ status: SubmissionStatus;
1015
+ signature?: {
1016
+ value: Uint8Array;
1017
+ };
1018
+ consensusStatus: number;
1019
+ executionResult?: {
1020
+ vmError: number;
1021
+ consumedComputeUnits: number;
1022
+ userErrorCode: bigint;
1023
+ };
1024
+ }
1025
+ declare function sendAndTrackTxn(ctx: ThruClientContext, transaction: Transaction | Uint8Array, options?: SendAndTrackTxnOptions): AsyncIterable<SendAndTrackTxnUpdate>;
927
1026
 
928
1027
  type transactions_BatchSendTransactionsOptions = BatchSendTransactionsOptions;
929
1028
  type transactions_BuildAndSignTransactionOptions = BuildAndSignTransactionOptions;
@@ -932,6 +1031,8 @@ type transactions_InstructionData = InstructionData;
932
1031
  type transactions_ListTransactionsForAccountOptions = ListTransactionsForAccountOptions;
933
1032
  type transactions_ListTransactionsOptions = ListTransactionsOptions;
934
1033
  type transactions_RawTransactionQueryOptions = RawTransactionQueryOptions;
1034
+ type transactions_SendAndTrackTxnOptions = SendAndTrackTxnOptions;
1035
+ type transactions_SendAndTrackTxnUpdate = SendAndTrackTxnUpdate;
935
1036
  type transactions_TransactionAccountsConfig = TransactionAccountsConfig;
936
1037
  type transactions_TransactionFeePayerConfig = TransactionFeePayerConfig;
937
1038
  type transactions_TransactionHeaderConfig = TransactionHeaderConfig;
@@ -945,9 +1046,10 @@ declare const transactions_getTransaction: typeof getTransaction;
945
1046
  declare const transactions_getTransactionStatus: typeof getTransactionStatus;
946
1047
  declare const transactions_listTransactions: typeof listTransactions;
947
1048
  declare const transactions_listTransactionsForAccount: typeof listTransactionsForAccount;
1049
+ declare const transactions_sendAndTrackTxn: typeof sendAndTrackTxn;
948
1050
  declare const transactions_sendTransaction: typeof sendTransaction;
949
1051
  declare namespace transactions {
950
- export { type transactions_BatchSendTransactionsOptions as BatchSendTransactionsOptions, type transactions_BuildAndSignTransactionOptions as BuildAndSignTransactionOptions, type transactions_BuildTransactionOptions as BuildTransactionOptions, type transactions_InstructionData as InstructionData, type transactions_ListTransactionsForAccountOptions as ListTransactionsForAccountOptions, type transactions_ListTransactionsOptions as ListTransactionsOptions, type transactions_RawTransactionQueryOptions as RawTransactionQueryOptions, type transactions_TransactionAccountsConfig as TransactionAccountsConfig, type transactions_TransactionFeePayerConfig as TransactionFeePayerConfig, type transactions_TransactionHeaderConfig as TransactionHeaderConfig, type transactions_TransactionList as TransactionList, type transactions_TransactionQueryOptions as TransactionQueryOptions, transactions_batchSendTransactions as batchSendTransactions, transactions_buildAndSignTransaction as buildAndSignTransaction, transactions_buildTransaction as buildTransaction, transactions_getRawTransaction as getRawTransaction, transactions_getTransaction as getTransaction, transactions_getTransactionStatus as getTransactionStatus, transactions_listTransactions as listTransactions, transactions_listTransactionsForAccount as listTransactionsForAccount, transactions_sendTransaction as sendTransaction };
1052
+ export { type transactions_BatchSendTransactionsOptions as BatchSendTransactionsOptions, type transactions_BuildAndSignTransactionOptions as BuildAndSignTransactionOptions, type transactions_BuildTransactionOptions as BuildTransactionOptions, type transactions_InstructionData as InstructionData, type transactions_ListTransactionsForAccountOptions as ListTransactionsForAccountOptions, type transactions_ListTransactionsOptions as ListTransactionsOptions, type transactions_RawTransactionQueryOptions as RawTransactionQueryOptions, type transactions_SendAndTrackTxnOptions as SendAndTrackTxnOptions, type transactions_SendAndTrackTxnUpdate as SendAndTrackTxnUpdate, type transactions_TransactionAccountsConfig as TransactionAccountsConfig, type transactions_TransactionFeePayerConfig as TransactionFeePayerConfig, type transactions_TransactionHeaderConfig as TransactionHeaderConfig, type transactions_TransactionList as TransactionList, type transactions_TransactionQueryOptions as TransactionQueryOptions, transactions_batchSendTransactions as batchSendTransactions, transactions_buildAndSignTransaction as buildAndSignTransaction, transactions_buildTransaction as buildTransaction, transactions_getRawTransaction as getRawTransaction, transactions_getTransaction as getTransaction, transactions_getTransactionStatus as getTransactionStatus, transactions_listTransactions as listTransactions, transactions_listTransactionsForAccount as listTransactionsForAccount, transactions_sendAndTrackTxn as sendAndTrackTxn, transactions_sendTransaction as sendTransaction };
951
1053
  }
952
1054
 
953
1055
  declare class VersionInfo {
@@ -957,4 +1059,4 @@ declare class VersionInfo {
957
1059
  get(component: string): string | undefined;
958
1060
  }
959
1061
 
960
- export { type StreamAccountUpdatesOptions as $, Account as A, type BuildTransactionParams as B, ChainEvent as C, type VersionContextInput as D, type AccountQueryOptions as E, Filter as F, type CreateAccountOptions as G, HeightSnapshot as H, type BlockList as I, type BlockQueryOptions as J, type ListBlocksOptions as K, type ListAccountsOptions as L, type RawBlockQueryOptions as M, type GetEventOptions as N, type BlockSelector as O, PageRequest as P, type DeriveAddressInput as Q, type RawAccountQueryOptions as R, type SignedTransactionResult as S, Transaction as T, type DeriveAddressResult as U, VersionInfo as V, type DeriveProgramAddressOptions as W, type DeriveProgramAddressResult as X, type GeneratedKeyPair as Y, type StreamAccountUpdate as Z, type HeightSnapshotParams as _, type ThruClientContext as a, type StreamAccountUpdatesResult as a0, type StreamBlocksOptions as a1, type StreamBlocksResult as a2, type StreamEventsOptions as a3, type StreamEventsResult as a4, type StreamTransactionsOptions as a5, type StreamTransactionsResult as a6, type StreamTransactionUpdate as a7, type TrackTransactionOptions as a8, type TrackTransactionUpdate as a9, getTransaction as aA, getRawTransaction as aB, getTransactionStatus as aC, listTransactions as aD, listTransactionsForAccount as aE, streamTransactions as aF, buildTransaction as aG, buildAndSignTransaction as aH, sendTransaction as aI, batchSendTransactions as aJ, trackTransaction as aK, getEvent as aL, listEvents as aM, streamEvents as aN, generateStateProof as aO, generateKeyPair as aP, fromPrivateKey as aQ, consensusStatusToString as aR, versionContext as aS, currentVersionContext as aT, currentOrHistoricalVersionContext as aU, slotVersionContext as aV, timestampVersionContext as aW, seqVersionContext as aX, type ThruClientConfig as aY, type TransactionExecutionEvent as aa, type TransactionExecutionResultData as ab, type InstructionContext as ac, type BatchSendTransactionsOptions as ad, type BuildAndSignTransactionOptions as ae, type BuildTransactionOptions as af, type InstructionData as ag, type ListTransactionsForAccountOptions as ah, type RawTransactionQueryOptions as ai, type TransactionAccountsConfig as aj, type TransactionFeePayerConfig as ak, type TransactionHeaderConfig as al, type TransactionList as am, type TransactionQueryOptions as an, type GenerateStateProofOptions as ao, getBlock as ap, getRawBlock as aq, listBlocks as ar, streamBlocks as as, getBlockHeight as at, streamHeight as au, getAccount as av, getRawAccount as aw, listAccounts as ax, streamAccountUpdates as ay, createAccount as az, accounts as b, blocks as c, consensus as d, events as e, Block as f, FilterParamValue as g, height as h, PageResponse as i, Pubkey as j, keys as k, Signature as l, StateProof as m, TransactionStatusSnapshot as n, deriveAddress as o, proofs as p, deriveProgramAddress as q, collectStream as r, streaming as s, transactions as t, firstStreamValue as u, forEachStreamValue as v, type PageRequestParams as w, type PageResponseParams as x, type PubkeyInput as y, type SignatureInput as z };
1062
+ export { type ListSlotMetricsOptions as $, Account as A, type BuildTransactionParams as B, ChainEvent as C, type PubkeyInput as D, type SignatureInput as E, Filter as F, type VersionContextInput as G, HeightSnapshot as H, type AccountQueryOptions as I, type CreateAccountOptions as J, type BlockList as K, type ListAccountsOptions as L, type BlockQueryOptions as M, type ListBlocksOptions as N, type RawBlockQueryOptions as O, PageRequest as P, type GetEventOptions as Q, type RawAccountQueryOptions as R, type SignedTransactionResult as S, Transaction as T, type BlockSelector as U, VersionInfo as V, type DeriveAddressInput as W, type DeriveAddressResult as X, type DeriveProgramAddressOptions as Y, type DeriveProgramAddressResult as Z, type GeneratedKeyPair as _, accounts as a, listSlotMetrics as a$, type StreamAccountUpdate as a0, type HeightSnapshotParams as a1, type StreamAccountUpdatesOptions as a2, type StreamAccountUpdatesResult as a3, type StreamBlocksOptions as a4, type StreamBlocksResult as a5, type StreamEventsOptions as a6, type StreamEventsResult as a7, type StreamNodeRecordsOptions as a8, type StreamNodeRecordsResult as a9, getBlock as aA, getRawBlock as aB, listBlocks as aC, streamBlocks as aD, getBlockHeight as aE, streamHeight as aF, getAccount as aG, getRawAccount as aH, listAccounts as aI, streamAccountUpdates as aJ, createAccount as aK, getTransaction as aL, getRawTransaction as aM, getTransactionStatus as aN, listTransactions as aO, listTransactionsForAccount as aP, streamTransactions as aQ, buildTransaction as aR, buildAndSignTransaction as aS, sendTransaction as aT, batchSendTransactions as aU, sendAndTrackTxn as aV, trackTransaction as aW, getEvent as aX, listEvents as aY, streamEvents as aZ, getSlotMetrics as a_, type StreamSlotMetricsOptions as aa, type StreamSlotMetricsResult as ab, type StreamTransactionsOptions as ac, type StreamTransactionsResult as ad, type StreamTransactionUpdate as ae, type TrackTransactionOptions as af, type TrackTransactionUpdate as ag, type TransactionExecutionEvent as ah, type TransactionExecutionResultData as ai, type InstructionContext as aj, type BatchSendTransactionsOptions as ak, type BuildAndSignTransactionOptions as al, type BuildTransactionOptions as am, type InstructionData as an, type ListTransactionsForAccountOptions as ao, type RawTransactionQueryOptions as ap, type SendAndTrackTxnOptions as aq, type SendAndTrackTxnUpdate as ar, type TransactionAccountsConfig as as, type TransactionFeePayerConfig as at, type TransactionHeaderConfig as au, type TransactionList as av, type TransactionQueryOptions as aw, type GenerateStateProofOptions as ax, type GetStateRootsOptions as ay, type ThruClientContext as az, blocks as b, streamSlotMetrics as b0, generateStateProof as b1, getStateRoots as b2, generateKeyPair as b3, fromPrivateKey as b4, consensusStatusToString as b5, versionContext as b6, currentVersionContext as b7, currentOrHistoricalVersionContext as b8, slotVersionContext as b9, timestampVersionContext as ba, seqVersionContext as bb, getNodePubkey as bc, getNodeRecords as bd, streamNodeRecords as be, getChainInfo as bf, getChainId as bg, type ThruClientConfig as bh, chain as c, consensus as d, events as e, streaming as f, Block as g, height as h, FilterParamValue as i, PageResponse as j, keys as k, Pubkey as l, Signature as m, node as n, StateProof as o, proofs as p, TransactionStatusSnapshot as q, deriveAddress as r, slots as s, transactions as t, deriveProgramAddress as u, collectStream as v, firstStreamValue as w, forEachStreamValue as x, type PageRequestParams as y, type PageResponseParams as z };