@proofchain/sdk 2.0.0 → 2.1.1

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.
package/dist/index.d.mts CHANGED
@@ -1051,6 +1051,25 @@ interface WalletStats {
1051
1051
  by_type: Record<string, number>;
1052
1052
  by_network: Record<string, number>;
1053
1053
  }
1054
+ interface Transaction {
1055
+ hash: string;
1056
+ type: 'sent' | 'received';
1057
+ from: string;
1058
+ to: string;
1059
+ value: number | string;
1060
+ asset: string;
1061
+ category: string;
1062
+ block_num: string;
1063
+ timestamp: string;
1064
+ }
1065
+ interface TransactionHistory {
1066
+ address: string;
1067
+ network: string;
1068
+ total_sent: number;
1069
+ total_received: number;
1070
+ transactions: Transaction[];
1071
+ error?: string;
1072
+ }
1054
1073
  interface ComprehensiveWalletInfo {
1055
1074
  wallet_id: string;
1056
1075
  address: string;
@@ -1153,6 +1172,23 @@ interface TransferResult {
1153
1172
  network: string;
1154
1173
  status: string;
1155
1174
  }
1175
+ interface UserWithWallets {
1176
+ user_id: string;
1177
+ wallets: Array<{
1178
+ wallet_id: string;
1179
+ address: string;
1180
+ wallet_type: string;
1181
+ network: string;
1182
+ name?: string;
1183
+ status: string;
1184
+ }>;
1185
+ }
1186
+ interface UsersWithWalletsResponse {
1187
+ users: UserWithWallets[];
1188
+ total: number;
1189
+ limit: number;
1190
+ offset: number;
1191
+ }
1156
1192
  declare class WalletClient {
1157
1193
  private http;
1158
1194
  constructor(http: HttpClient);
@@ -1172,6 +1208,14 @@ declare class WalletClient {
1172
1208
  * Get wallet statistics
1173
1209
  */
1174
1210
  stats(): Promise<WalletStats>;
1211
+ /**
1212
+ * List all users who have wallets, grouped by user_id.
1213
+ *
1214
+ * @param limit - Maximum number of users to return (default 50)
1215
+ * @param offset - Offset for pagination (default 0)
1216
+ * @returns List of users with their wallets
1217
+ */
1218
+ listUsersWithWallets(limit?: number, offset?: number): Promise<UsersWithWalletsResponse>;
1175
1219
  /**
1176
1220
  * Create dual wallets (EOA asset wallet + Smart Account) for a user
1177
1221
  */
@@ -1259,6 +1303,21 @@ declare class WalletClient {
1259
1303
  * Add an NFT to wallet tracking
1260
1304
  */
1261
1305
  addNFT(walletId: string, nft: AddNFTRequest): Promise<NFT>;
1306
+ /**
1307
+ * Get transaction history for a wallet.
1308
+ *
1309
+ * Returns both sent and received transactions including:
1310
+ * - Token transfers (ETH, ERC20)
1311
+ * - NFT transfers
1312
+ * - Contract interactions
1313
+ *
1314
+ * @param walletId - Wallet ID to query
1315
+ * @param options - Pagination options
1316
+ */
1317
+ getTransactions(walletId: string, options?: {
1318
+ limit?: number;
1319
+ offset?: number;
1320
+ }): Promise<TransactionHistory>;
1262
1321
  }
1263
1322
 
1264
1323
  /**
@@ -2550,4 +2609,4 @@ declare class TimeoutError extends ProofChainError {
2550
2609
  constructor(message?: string);
2551
2610
  }
2552
2611
 
2553
- export { type Achievement, type ActivitySummaryView, type AddNFTRequest, type ApiKey, type AttestRequest, type AttestationMode, type AttestationResult, AuthenticationError, AuthorizationError, type AvailableView, type Badge, type BatchIngestRequest, type BatchIngestResponse, type BatchVerifyResult, type BlockchainProof, type BlockchainStats, type Certificate, type CertificateVerifyResult, CertificatesResource, type Channel, type ChannelState, type ChannelStatus, ChannelsResource, type ComprehensiveWalletInfo, type CreateAchievementRequest, type CreateApiKeyRequest, type CreateBadgeRequest, type CreateChannelRequest, type CreateDataViewRequest, type CreateDualWalletsRequest, type CreateEndUserRequest, type CreateEventRequest, type CreatePassportDefinitionRequest, type CreatePassportRequest, type CreateQuestRequest, type CreateQuestStepRequest, type CreateRewardDefinitionRequest, type CreateSchemaRequest, type CreateTemplateFieldRequest, type CreateTemplateRequest, type CreateWalletRequest, type CreateWebhookRequest, type DataViewColumn, type DataViewComputation, type DataViewDetail, type DataViewExecuteResult, type DataViewInfo, type DataViewListResponse, type DataViewPreviewRequest, type DataViewPreviewResult, type DataViewSummary, DataViewsClient, DocumentsResource, type DualWallets, type EarnedReward, type EndUser, type EndUserListResponse, EndUsersClient, type Event, type EventBatchProof, type EventMetadata, type EventStatus, EventsResource, type ExecuteSwapRequest, type Facet, type FacetsResponse, type FanProfileView, type FieldValue, type IngestEventRequest, type IngestEventResponse, IngestionClient, type IngestionClientOptions, type IssueCertificateRequest, type LinkWalletRequest, type ListCertificatesRequest, type ListEndUsersOptions, type ListEventsRequest, type ListQuestsOptions, type ListRewardsOptions, type ListSchemasOptions, type ManualRewardRequest, type MergeUsersRequest, type Milestone, type NFT, NetworkError, NotFoundError, type Passport, PassportClient, type PassportDefinition, type PassportFieldValue, type PassportHistory, type PassportTemplate, type PassportV2Data, type PassportWithFields, ProofChain, ProofChainError, type ProofChainOptions, type ProofVerifyResult, type Quest, type QuestStep, type QuestWithProgress, QuestsClient, RateLimitError, type RewardAsset, type RewardDefinition, RewardsClient, type Schema, type SchemaDetail, type SchemaField, type SchemaListResponse, type ValidationError$1 as SchemaValidationError, SchemasClient, type SearchFilters, type SearchQueryRequest, type SearchRequest, SearchResource, type SearchResponse, type SearchResult, type SearchStats, ServerError, type Settlement, type StepProgress, type StreamAck, type StreamEventRequest, type SwapQuote, type SwapQuoteRequest, type SwapResult, type TemplateField, type TenantInfo, TenantResource, type TierDefinition, TimeoutError, type TokenBalance, type TransferRequest, type TransferResult, type UpdateDataViewRequest, type UpdateEndUserRequest, type UpdatePassportRequest, type UpdateWebhookRequest, type UsageStats, type UserAchievement, type UserActivity, type UserActivityResponse, type UserBadge, type UserQuestProgress, type UserWalletSummary, type ValidateDataRequest, ValidationError, type ValidationErrorDetail, type ValidationResult, type VaultFile, type VaultFolder, type VaultListResponse, VaultResource, type VaultStats, type VaultUploadRequest, type VerificationResult, VerifyResource, type ViewColumn, type ViewTemplate, type Wallet, type WalletBalance, WalletClient, type WalletStats, type Webhook, WebhooksResource };
2612
+ export { type Achievement, type ActivitySummaryView, type AddNFTRequest, type ApiKey, type AttestRequest, type AttestationMode, type AttestationResult, AuthenticationError, AuthorizationError, type AvailableView, type Badge, type BatchIngestRequest, type BatchIngestResponse, type BatchVerifyResult, type BlockchainProof, type BlockchainStats, type Certificate, type CertificateVerifyResult, CertificatesResource, type Channel, type ChannelState, type ChannelStatus, ChannelsResource, type ComprehensiveWalletInfo, type CreateAchievementRequest, type CreateApiKeyRequest, type CreateBadgeRequest, type CreateChannelRequest, type CreateDataViewRequest, type CreateDualWalletsRequest, type CreateEndUserRequest, type CreateEventRequest, type CreatePassportDefinitionRequest, type CreatePassportRequest, type CreateQuestRequest, type CreateQuestStepRequest, type CreateRewardDefinitionRequest, type CreateSchemaRequest, type CreateTemplateFieldRequest, type CreateTemplateRequest, type CreateWalletRequest, type CreateWebhookRequest, type DataViewColumn, type DataViewComputation, type DataViewDetail, type DataViewExecuteResult, type DataViewInfo, type DataViewListResponse, type DataViewPreviewRequest, type DataViewPreviewResult, type DataViewSummary, DataViewsClient, DocumentsResource, type DualWallets, type EarnedReward, type EndUser, type EndUserListResponse, EndUsersClient, type Event, type EventBatchProof, type EventMetadata, type EventStatus, EventsResource, type ExecuteSwapRequest, type Facet, type FacetsResponse, type FanProfileView, type FieldValue, type IngestEventRequest, type IngestEventResponse, IngestionClient, type IngestionClientOptions, type IssueCertificateRequest, type LinkWalletRequest, type ListCertificatesRequest, type ListEndUsersOptions, type ListEventsRequest, type ListQuestsOptions, type ListRewardsOptions, type ListSchemasOptions, type ManualRewardRequest, type MergeUsersRequest, type Milestone, type NFT, NetworkError, NotFoundError, type Passport, PassportClient, type PassportDefinition, type PassportFieldValue, type PassportHistory, type PassportTemplate, type PassportV2Data, type PassportWithFields, ProofChain, ProofChainError, type ProofChainOptions, type ProofVerifyResult, type Quest, type QuestStep, type QuestWithProgress, QuestsClient, RateLimitError, type RewardAsset, type RewardDefinition, RewardsClient, type Schema, type SchemaDetail, type SchemaField, type SchemaListResponse, type ValidationError$1 as SchemaValidationError, SchemasClient, type SearchFilters, type SearchQueryRequest, type SearchRequest, SearchResource, type SearchResponse, type SearchResult, type SearchStats, ServerError, type Settlement, type StepProgress, type StreamAck, type StreamEventRequest, type SwapQuote, type SwapQuoteRequest, type SwapResult, type TemplateField, type TenantInfo, TenantResource, type TierDefinition, TimeoutError, type TokenBalance, type TransferRequest, type TransferResult, type UpdateDataViewRequest, type UpdateEndUserRequest, type UpdatePassportRequest, type UpdateWebhookRequest, type UsageStats, type UserAchievement, type UserActivity, type UserActivityResponse, type UserBadge, type UserQuestProgress, type UserWalletSummary, type UserWithWallets, type UsersWithWalletsResponse, type ValidateDataRequest, ValidationError, type ValidationErrorDetail, type ValidationResult, type VaultFile, type VaultFolder, type VaultListResponse, VaultResource, type VaultStats, type VaultUploadRequest, type VerificationResult, VerifyResource, type ViewColumn, type ViewTemplate, type Wallet, type WalletBalance, WalletClient, type WalletStats, type Webhook, WebhooksResource };
package/dist/index.d.ts CHANGED
@@ -1051,6 +1051,25 @@ interface WalletStats {
1051
1051
  by_type: Record<string, number>;
1052
1052
  by_network: Record<string, number>;
1053
1053
  }
1054
+ interface Transaction {
1055
+ hash: string;
1056
+ type: 'sent' | 'received';
1057
+ from: string;
1058
+ to: string;
1059
+ value: number | string;
1060
+ asset: string;
1061
+ category: string;
1062
+ block_num: string;
1063
+ timestamp: string;
1064
+ }
1065
+ interface TransactionHistory {
1066
+ address: string;
1067
+ network: string;
1068
+ total_sent: number;
1069
+ total_received: number;
1070
+ transactions: Transaction[];
1071
+ error?: string;
1072
+ }
1054
1073
  interface ComprehensiveWalletInfo {
1055
1074
  wallet_id: string;
1056
1075
  address: string;
@@ -1153,6 +1172,23 @@ interface TransferResult {
1153
1172
  network: string;
1154
1173
  status: string;
1155
1174
  }
1175
+ interface UserWithWallets {
1176
+ user_id: string;
1177
+ wallets: Array<{
1178
+ wallet_id: string;
1179
+ address: string;
1180
+ wallet_type: string;
1181
+ network: string;
1182
+ name?: string;
1183
+ status: string;
1184
+ }>;
1185
+ }
1186
+ interface UsersWithWalletsResponse {
1187
+ users: UserWithWallets[];
1188
+ total: number;
1189
+ limit: number;
1190
+ offset: number;
1191
+ }
1156
1192
  declare class WalletClient {
1157
1193
  private http;
1158
1194
  constructor(http: HttpClient);
@@ -1172,6 +1208,14 @@ declare class WalletClient {
1172
1208
  * Get wallet statistics
1173
1209
  */
1174
1210
  stats(): Promise<WalletStats>;
1211
+ /**
1212
+ * List all users who have wallets, grouped by user_id.
1213
+ *
1214
+ * @param limit - Maximum number of users to return (default 50)
1215
+ * @param offset - Offset for pagination (default 0)
1216
+ * @returns List of users with their wallets
1217
+ */
1218
+ listUsersWithWallets(limit?: number, offset?: number): Promise<UsersWithWalletsResponse>;
1175
1219
  /**
1176
1220
  * Create dual wallets (EOA asset wallet + Smart Account) for a user
1177
1221
  */
@@ -1259,6 +1303,21 @@ declare class WalletClient {
1259
1303
  * Add an NFT to wallet tracking
1260
1304
  */
1261
1305
  addNFT(walletId: string, nft: AddNFTRequest): Promise<NFT>;
1306
+ /**
1307
+ * Get transaction history for a wallet.
1308
+ *
1309
+ * Returns both sent and received transactions including:
1310
+ * - Token transfers (ETH, ERC20)
1311
+ * - NFT transfers
1312
+ * - Contract interactions
1313
+ *
1314
+ * @param walletId - Wallet ID to query
1315
+ * @param options - Pagination options
1316
+ */
1317
+ getTransactions(walletId: string, options?: {
1318
+ limit?: number;
1319
+ offset?: number;
1320
+ }): Promise<TransactionHistory>;
1262
1321
  }
1263
1322
 
1264
1323
  /**
@@ -2550,4 +2609,4 @@ declare class TimeoutError extends ProofChainError {
2550
2609
  constructor(message?: string);
2551
2610
  }
2552
2611
 
2553
- export { type Achievement, type ActivitySummaryView, type AddNFTRequest, type ApiKey, type AttestRequest, type AttestationMode, type AttestationResult, AuthenticationError, AuthorizationError, type AvailableView, type Badge, type BatchIngestRequest, type BatchIngestResponse, type BatchVerifyResult, type BlockchainProof, type BlockchainStats, type Certificate, type CertificateVerifyResult, CertificatesResource, type Channel, type ChannelState, type ChannelStatus, ChannelsResource, type ComprehensiveWalletInfo, type CreateAchievementRequest, type CreateApiKeyRequest, type CreateBadgeRequest, type CreateChannelRequest, type CreateDataViewRequest, type CreateDualWalletsRequest, type CreateEndUserRequest, type CreateEventRequest, type CreatePassportDefinitionRequest, type CreatePassportRequest, type CreateQuestRequest, type CreateQuestStepRequest, type CreateRewardDefinitionRequest, type CreateSchemaRequest, type CreateTemplateFieldRequest, type CreateTemplateRequest, type CreateWalletRequest, type CreateWebhookRequest, type DataViewColumn, type DataViewComputation, type DataViewDetail, type DataViewExecuteResult, type DataViewInfo, type DataViewListResponse, type DataViewPreviewRequest, type DataViewPreviewResult, type DataViewSummary, DataViewsClient, DocumentsResource, type DualWallets, type EarnedReward, type EndUser, type EndUserListResponse, EndUsersClient, type Event, type EventBatchProof, type EventMetadata, type EventStatus, EventsResource, type ExecuteSwapRequest, type Facet, type FacetsResponse, type FanProfileView, type FieldValue, type IngestEventRequest, type IngestEventResponse, IngestionClient, type IngestionClientOptions, type IssueCertificateRequest, type LinkWalletRequest, type ListCertificatesRequest, type ListEndUsersOptions, type ListEventsRequest, type ListQuestsOptions, type ListRewardsOptions, type ListSchemasOptions, type ManualRewardRequest, type MergeUsersRequest, type Milestone, type NFT, NetworkError, NotFoundError, type Passport, PassportClient, type PassportDefinition, type PassportFieldValue, type PassportHistory, type PassportTemplate, type PassportV2Data, type PassportWithFields, ProofChain, ProofChainError, type ProofChainOptions, type ProofVerifyResult, type Quest, type QuestStep, type QuestWithProgress, QuestsClient, RateLimitError, type RewardAsset, type RewardDefinition, RewardsClient, type Schema, type SchemaDetail, type SchemaField, type SchemaListResponse, type ValidationError$1 as SchemaValidationError, SchemasClient, type SearchFilters, type SearchQueryRequest, type SearchRequest, SearchResource, type SearchResponse, type SearchResult, type SearchStats, ServerError, type Settlement, type StepProgress, type StreamAck, type StreamEventRequest, type SwapQuote, type SwapQuoteRequest, type SwapResult, type TemplateField, type TenantInfo, TenantResource, type TierDefinition, TimeoutError, type TokenBalance, type TransferRequest, type TransferResult, type UpdateDataViewRequest, type UpdateEndUserRequest, type UpdatePassportRequest, type UpdateWebhookRequest, type UsageStats, type UserAchievement, type UserActivity, type UserActivityResponse, type UserBadge, type UserQuestProgress, type UserWalletSummary, type ValidateDataRequest, ValidationError, type ValidationErrorDetail, type ValidationResult, type VaultFile, type VaultFolder, type VaultListResponse, VaultResource, type VaultStats, type VaultUploadRequest, type VerificationResult, VerifyResource, type ViewColumn, type ViewTemplate, type Wallet, type WalletBalance, WalletClient, type WalletStats, type Webhook, WebhooksResource };
2612
+ export { type Achievement, type ActivitySummaryView, type AddNFTRequest, type ApiKey, type AttestRequest, type AttestationMode, type AttestationResult, AuthenticationError, AuthorizationError, type AvailableView, type Badge, type BatchIngestRequest, type BatchIngestResponse, type BatchVerifyResult, type BlockchainProof, type BlockchainStats, type Certificate, type CertificateVerifyResult, CertificatesResource, type Channel, type ChannelState, type ChannelStatus, ChannelsResource, type ComprehensiveWalletInfo, type CreateAchievementRequest, type CreateApiKeyRequest, type CreateBadgeRequest, type CreateChannelRequest, type CreateDataViewRequest, type CreateDualWalletsRequest, type CreateEndUserRequest, type CreateEventRequest, type CreatePassportDefinitionRequest, type CreatePassportRequest, type CreateQuestRequest, type CreateQuestStepRequest, type CreateRewardDefinitionRequest, type CreateSchemaRequest, type CreateTemplateFieldRequest, type CreateTemplateRequest, type CreateWalletRequest, type CreateWebhookRequest, type DataViewColumn, type DataViewComputation, type DataViewDetail, type DataViewExecuteResult, type DataViewInfo, type DataViewListResponse, type DataViewPreviewRequest, type DataViewPreviewResult, type DataViewSummary, DataViewsClient, DocumentsResource, type DualWallets, type EarnedReward, type EndUser, type EndUserListResponse, EndUsersClient, type Event, type EventBatchProof, type EventMetadata, type EventStatus, EventsResource, type ExecuteSwapRequest, type Facet, type FacetsResponse, type FanProfileView, type FieldValue, type IngestEventRequest, type IngestEventResponse, IngestionClient, type IngestionClientOptions, type IssueCertificateRequest, type LinkWalletRequest, type ListCertificatesRequest, type ListEndUsersOptions, type ListEventsRequest, type ListQuestsOptions, type ListRewardsOptions, type ListSchemasOptions, type ManualRewardRequest, type MergeUsersRequest, type Milestone, type NFT, NetworkError, NotFoundError, type Passport, PassportClient, type PassportDefinition, type PassportFieldValue, type PassportHistory, type PassportTemplate, type PassportV2Data, type PassportWithFields, ProofChain, ProofChainError, type ProofChainOptions, type ProofVerifyResult, type Quest, type QuestStep, type QuestWithProgress, QuestsClient, RateLimitError, type RewardAsset, type RewardDefinition, RewardsClient, type Schema, type SchemaDetail, type SchemaField, type SchemaListResponse, type ValidationError$1 as SchemaValidationError, SchemasClient, type SearchFilters, type SearchQueryRequest, type SearchRequest, SearchResource, type SearchResponse, type SearchResult, type SearchStats, ServerError, type Settlement, type StepProgress, type StreamAck, type StreamEventRequest, type SwapQuote, type SwapQuoteRequest, type SwapResult, type TemplateField, type TenantInfo, TenantResource, type TierDefinition, TimeoutError, type TokenBalance, type TransferRequest, type TransferResult, type UpdateDataViewRequest, type UpdateEndUserRequest, type UpdatePassportRequest, type UpdateWebhookRequest, type UsageStats, type UserAchievement, type UserActivity, type UserActivityResponse, type UserBadge, type UserQuestProgress, type UserWalletSummary, type UserWithWallets, type UsersWithWalletsResponse, type ValidateDataRequest, ValidationError, type ValidationErrorDetail, type ValidationResult, type VaultFile, type VaultFolder, type VaultListResponse, VaultResource, type VaultStats, type VaultUploadRequest, type VerificationResult, VerifyResource, type ViewColumn, type ViewTemplate, type Wallet, type WalletBalance, WalletClient, type WalletStats, type Webhook, WebhooksResource };
package/dist/index.js CHANGED
@@ -855,6 +855,16 @@ var WalletClient = class {
855
855
  async stats() {
856
856
  return this.http.get("/wallets/stats");
857
857
  }
858
+ /**
859
+ * List all users who have wallets, grouped by user_id.
860
+ *
861
+ * @param limit - Maximum number of users to return (default 50)
862
+ * @param offset - Offset for pagination (default 0)
863
+ * @returns List of users with their wallets
864
+ */
865
+ async listUsersWithWallets(limit = 50, offset = 0) {
866
+ return this.http.get(`/wallets/users-with-wallets?limit=${limit}&offset=${offset}`);
867
+ }
858
868
  // ---------------------------------------------------------------------------
859
869
  // Dual Wallets (EOA + Smart Account)
860
870
  // ---------------------------------------------------------------------------
@@ -997,6 +1007,33 @@ var WalletClient = class {
997
1007
  async addNFT(walletId, nft) {
998
1008
  return this.http.post(`/wallets/${walletId}/nfts`, nft);
999
1009
  }
1010
+ // ---------------------------------------------------------------------------
1011
+ // Transaction History
1012
+ // ---------------------------------------------------------------------------
1013
+ /**
1014
+ * Get transaction history for a wallet.
1015
+ *
1016
+ * Returns both sent and received transactions including:
1017
+ * - Token transfers (ETH, ERC20)
1018
+ * - NFT transfers
1019
+ * - Contract interactions
1020
+ *
1021
+ * @param walletId - Wallet ID to query
1022
+ * @param options - Pagination options
1023
+ */
1024
+ async getTransactions(walletId, options = {}) {
1025
+ const params = new URLSearchParams();
1026
+ if (options.limit !== void 0) {
1027
+ params.set("limit", String(options.limit));
1028
+ }
1029
+ if (options.offset !== void 0) {
1030
+ params.set("offset", String(options.offset));
1031
+ }
1032
+ const query = params.toString();
1033
+ return this.http.get(
1034
+ `/wallets/${walletId}/transactions${query ? `?${query}` : ""}`
1035
+ );
1036
+ }
1000
1037
  };
1001
1038
 
1002
1039
  // src/users.ts
package/dist/index.mjs CHANGED
@@ -803,6 +803,16 @@ var WalletClient = class {
803
803
  async stats() {
804
804
  return this.http.get("/wallets/stats");
805
805
  }
806
+ /**
807
+ * List all users who have wallets, grouped by user_id.
808
+ *
809
+ * @param limit - Maximum number of users to return (default 50)
810
+ * @param offset - Offset for pagination (default 0)
811
+ * @returns List of users with their wallets
812
+ */
813
+ async listUsersWithWallets(limit = 50, offset = 0) {
814
+ return this.http.get(`/wallets/users-with-wallets?limit=${limit}&offset=${offset}`);
815
+ }
806
816
  // ---------------------------------------------------------------------------
807
817
  // Dual Wallets (EOA + Smart Account)
808
818
  // ---------------------------------------------------------------------------
@@ -945,6 +955,33 @@ var WalletClient = class {
945
955
  async addNFT(walletId, nft) {
946
956
  return this.http.post(`/wallets/${walletId}/nfts`, nft);
947
957
  }
958
+ // ---------------------------------------------------------------------------
959
+ // Transaction History
960
+ // ---------------------------------------------------------------------------
961
+ /**
962
+ * Get transaction history for a wallet.
963
+ *
964
+ * Returns both sent and received transactions including:
965
+ * - Token transfers (ETH, ERC20)
966
+ * - NFT transfers
967
+ * - Contract interactions
968
+ *
969
+ * @param walletId - Wallet ID to query
970
+ * @param options - Pagination options
971
+ */
972
+ async getTransactions(walletId, options = {}) {
973
+ const params = new URLSearchParams();
974
+ if (options.limit !== void 0) {
975
+ params.set("limit", String(options.limit));
976
+ }
977
+ if (options.offset !== void 0) {
978
+ params.set("offset", String(options.offset));
979
+ }
980
+ const query = params.toString();
981
+ return this.http.get(
982
+ `/wallets/${walletId}/transactions${query ? `?${query}` : ""}`
983
+ );
984
+ }
948
985
  };
949
986
 
950
987
  // src/users.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proofchain/sdk",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "description": "Official JavaScript/TypeScript SDK for ProofChain - blockchain-anchored document attestation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",