@ecency/sdk 2.0.40 → 2.1.0

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,9 +1,7 @@
1
1
  import * as _tanstack_react_query from '@tanstack/react-query';
2
2
  import { InfiniteData, UseMutationOptions, MutationKey, QueryClient, QueryKey, UseQueryOptions, UseInfiniteQueryOptions, useMutation } from '@tanstack/react-query';
3
- import * as _hiveio_dhive from '@hiveio/dhive';
4
- import { Operation, TransactionConfirmation, Authority as Authority$1, SMTAsset, PrivateKey, AuthorityType, PublicKey, Client, OperationName, VirtualOperationName } from '@hiveio/dhive';
5
- import * as _hiveio_dhive_lib_chain_rc from '@hiveio/dhive/lib/chain/rc';
6
- import { RCAccount } from '@hiveio/dhive/lib/chain/rc';
3
+ import { Operation, PrivateKey, Authority as Authority$1, PublicKey, OperationName, utils } from '@ecency/hive-tx';
4
+ export { AccountCreateOperation, AssetSymbol, BroadcastResult, CustomJsonOperation, Memo, Operation, OperationName, PrivateKey, PublicKey, Signature, callREST, callRPC, callRPCBroadcast, callWithQuorum, config as hiveTxConfig, utils as hiveTxUtils } from '@ecency/hive-tx';
7
5
 
8
6
  interface AiGenerationPrice {
9
7
  aspect_ratio: string;
@@ -98,6 +96,79 @@ interface DynamicProps$1 {
98
96
  };
99
97
  }
100
98
 
99
+ /**
100
+ * Compatibility layer for migrating from @hiveio/dhive to @ecency/hive-tx.
101
+ *
102
+ * Re-exports hive-tx APIs and provides helper functions that bridge the
103
+ * API differences between dhive and hive-tx.
104
+ */
105
+
106
+ /** Compatible with dhive's TransactionConfirmation from broadcast_transaction_synchronous */
107
+ interface TransactionConfirmation {
108
+ id: string;
109
+ block_num: number;
110
+ trx_num: number;
111
+ expired: boolean;
112
+ }
113
+ /** Authority role type used in key management */
114
+ type AuthorityType = "owner" | "active" | "posting" | "memo";
115
+ /** SMT asset format (NAI representation) used in transaction history */
116
+ interface SMTAsset {
117
+ amount: string;
118
+ precision: number;
119
+ nai: string;
120
+ }
121
+ /** RC account data from rc_api.find_rc_accounts */
122
+ interface RCAccount {
123
+ account: string;
124
+ rc_manabar: {
125
+ current_mana: string | number;
126
+ last_update_time: number;
127
+ };
128
+ max_rc: string | number;
129
+ max_rc_creation_adjustment: {
130
+ amount: string;
131
+ precision: number;
132
+ nai: string;
133
+ };
134
+ delegated_rc: number;
135
+ received_delegated_rc: number;
136
+ }
137
+ /**
138
+ * Compute SHA-256 hash of a string or Uint8Array.
139
+ * Drop-in replacement for dhive's `cryptoUtils.sha256()`.
140
+ */
141
+ declare function sha256(input: string | Uint8Array): Uint8Array;
142
+ /** Check if a string is a valid WIF-encoded private key. */
143
+ declare function isWif(key: string): boolean;
144
+ /**
145
+ * Sign and broadcast operations, returning a dhive-compatible TransactionConfirmation.
146
+ *
147
+ * Uses broadcast_transaction_synchronous so the response includes block_num/trx_num,
148
+ * matching the shape that the rest of the codebase expects from dhive's
149
+ * `client.broadcast.sendOperations()`.
150
+ */
151
+ declare function broadcastOperations(ops: Operation[], key: PrivateKey): Promise<TransactionConfirmation>;
152
+ interface ManaResult {
153
+ current_mana: number;
154
+ max_mana: number;
155
+ percentage: number;
156
+ }
157
+ /** Calculate voting power mana (equivalent to dhive client.rc.calculateVPMana) */
158
+ declare function calculateVPMana(account: any): ManaResult;
159
+ /** Calculate RC mana (equivalent to dhive client.rc.calculateRCMana) */
160
+ declare function calculateRCMana(rcAccount: RCAccount): ManaResult;
161
+ /**
162
+ * Configure hive-tx nodes. Call this from ConfigManager.setHiveNodes().
163
+ * Replaces dhive's `new Client(nodes, options)`.
164
+ */
165
+ declare function setHiveTxNodes(nodes: string[], timeout?: number): void;
166
+ /**
167
+ * Initialize hive-tx with default node configuration.
168
+ * Called once during SDK init.
169
+ */
170
+ declare function initHiveTx(nodes: string[], timeout?: number): void;
171
+
101
172
  /**
102
173
  * Platform-specific adapter for SDK mutations.
103
174
  * Enables SDK to work across React Native (mobile) and Next.js (web).
@@ -1166,1789 +1237,1788 @@ interface Payload$2 {
1166
1237
  keysToRevoke?: string[];
1167
1238
  keysToRevokeByAuthority?: Partial<Record<keyof Keys, string[]>>;
1168
1239
  }
1169
- declare function dedupeAndSortKeyAuths(existing: AuthorityType["key_auths"], additions: [string, number][]): AuthorityType["key_auths"];
1240
+ declare function dedupeAndSortKeyAuths(existing: Authority$1["key_auths"], additions: [string, number][]): Authority$1["key_auths"];
1170
1241
  type UpdateKeyAuthsOptions = Pick<UseMutationOptions<unknown, Error, Payload$2>, "onSuccess" | "onError">;
1171
- declare function useAccountUpdateKeyAuths(username: string, options?: UpdateKeyAuthsOptions): _tanstack_react_query.UseMutationResult<_hiveio_dhive.TransactionConfirmation, Error, Payload$2, unknown>;
1242
+ declare function useAccountUpdateKeyAuths(username: string, options?: UpdateKeyAuthsOptions): _tanstack_react_query.UseMutationResult<TransactionConfirmation, Error, Payload$2, unknown>;
1172
1243
 
1173
- interface Payload$1 {
1174
- newPassword: string;
1175
- currentPassword: string;
1176
- keepCurrent?: boolean;
1177
- }
1178
1244
  /**
1179
- * Only native Hive and custom passwords could be updated here
1180
- * Seed based password cannot be updated here, it will be in an account always for now
1245
+ * Authority levels for Hive blockchain operations.
1246
+ * - posting: Social operations (voting, commenting, reblogging)
1247
+ * - active: Financial and account management operations
1248
+ * - owner: Critical security operations (key changes, account recovery)
1249
+ * - memo: Memo encryption/decryption (rarely used for signing)
1181
1250
  */
1182
- type UpdatePasswordOptions = Pick<UseMutationOptions<unknown, Error, Payload$1>, "onSuccess" | "onError">;
1183
- declare function useAccountUpdatePassword(username: string, options?: UpdatePasswordOptions): _tanstack_react_query.UseMutationResult<_hiveio_dhive.TransactionConfirmation, Error, Payload$1, unknown>;
1184
-
1185
- type SignType$1 = "key" | "keychain" | "hivesigner";
1186
- interface CommonPayload$1 {
1187
- accountName: string;
1188
- type: SignType$1;
1189
- key?: PrivateKey;
1190
- }
1191
- type RevokePostingOptions = Pick<UseMutationOptions<unknown, Error, CommonPayload$1>, "onSuccess" | "onError"> & {
1192
- hsCallbackUrl?: string;
1193
- };
1194
- declare function useAccountRevokePosting(username: string | undefined, options: RevokePostingOptions, auth?: AuthContext): _tanstack_react_query.UseMutationResult<unknown, Error, CommonPayload$1, unknown>;
1195
-
1196
- type SignType = "key" | "keychain" | "hivesigner" | "ecency";
1197
- interface CommonPayload {
1198
- accountName: string;
1199
- type: SignType;
1200
- key?: PrivateKey;
1201
- email?: string;
1202
- }
1203
- type UpdateRecoveryOptions = Pick<UseMutationOptions<unknown, Error, CommonPayload>, "onSuccess" | "onError"> & {
1204
- hsCallbackUrl?: string;
1205
- };
1206
- declare function useAccountUpdateRecovery(username: string | undefined, code: string | undefined, options: UpdateRecoveryOptions, auth?: AuthContext): _tanstack_react_query.UseMutationResult<unknown, Error, CommonPayload, unknown>;
1207
-
1208
- interface Payload {
1209
- currentKey: PrivateKey;
1210
- /** Keys to revoke. Accepts a single key or an array. */
1211
- revokingKey: PublicKey | PublicKey[];
1212
- }
1251
+ type AuthorityLevel = 'posting' | 'active' | 'owner' | 'memo';
1213
1252
  /**
1214
- * Revoke one or more keys from an account on the Hive blockchain.
1253
+ * Maps operation types to their required authority level.
1215
1254
  *
1216
- * When revoking keys that exist only in active/posting authorities,
1217
- * the owner field is omitted from the operation so active-level
1218
- * signing is sufficient.
1219
- */
1220
- type RevokeKeyOptions = Pick<UseMutationOptions<unknown, Error, Payload>, "onSuccess" | "onError">;
1221
- declare function useAccountRevokeKey(username: string | undefined, options?: RevokeKeyOptions): _tanstack_react_query.UseMutationResult<_hiveio_dhive.TransactionConfirmation, Error, Payload, unknown>;
1222
-
1223
- /**
1224
- * Check whether an authority would still meet its weight_threshold
1225
- * after removing the given keys. This prevents revoking keys that
1226
- * would leave an authority unable to sign (especially for multisig).
1255
+ * This mapping is used to determine which key is needed to sign a transaction,
1256
+ * enabling smart auth fallback and auth upgrade UI.
1257
+ *
1258
+ * @remarks
1259
+ * - Most social operations (vote, comment, reblog) require posting authority
1260
+ * - Financial operations (transfer, withdraw) require active authority
1261
+ * - Account management operations require active authority
1262
+ * - Security operations (password change, account recovery) require owner authority
1263
+ * - custom_json requires dynamic detection based on required_auths vs required_posting_auths
1227
1264
  */
1228
- declare function canRevokeFromAuthority(auth: AuthorityType, revokingKeyStrs: Set<string>): boolean;
1265
+ declare const OPERATION_AUTHORITY_MAP: Record<string, AuthorityLevel>;
1229
1266
  /**
1230
- * Build an account_update operation that removes the given public keys
1231
- * from the relevant authorities.
1267
+ * Determines authority required for a custom_json operation.
1232
1268
  *
1233
- * Only includes the `owner` field when a revoking key actually exists
1234
- * in the owner authority - omitting it allows active-level signing.
1269
+ * Custom JSON operations can require either posting or active authority
1270
+ * depending on which field is populated:
1271
+ * - required_auths (active authority)
1272
+ * - required_posting_auths (posting authority)
1235
1273
  *
1236
- * Returns the operation payload (without the "account_update" tag) so
1237
- * callers can wrap it as needed for their broadcast method.
1274
+ * @param customJsonOp - The custom_json operation to inspect
1275
+ * @returns 'active' if requires active authority, 'posting' if requires posting authority
1276
+ *
1277
+ * @example
1278
+ * ```typescript
1279
+ * // Reblog operation (posting authority)
1280
+ * const reblogOp: Operation = ['custom_json', {
1281
+ * required_auths: [],
1282
+ * required_posting_auths: ['alice'],
1283
+ * id: 'reblog',
1284
+ * json: '...'
1285
+ * }];
1286
+ * getCustomJsonAuthority(reblogOp); // Returns 'posting'
1287
+ *
1288
+ * // Some active authority custom_json
1289
+ * const activeOp: Operation = ['custom_json', {
1290
+ * required_auths: ['alice'],
1291
+ * required_posting_auths: [],
1292
+ * id: 'some_active_op',
1293
+ * json: '...'
1294
+ * }];
1295
+ * getCustomJsonAuthority(activeOp); // Returns 'active'
1296
+ * ```
1238
1297
  */
1239
- declare function buildRevokeKeysOp(accountData: FullAccount, revokingKeys: PublicKey[]): {
1240
- account: string;
1241
- json_metadata: string;
1242
- owner: AuthorityType | undefined;
1243
- active: AuthorityType;
1244
- posting: AuthorityType;
1245
- memo_key: string;
1246
- };
1247
-
1298
+ declare function getCustomJsonAuthority(customJsonOp: Operation): AuthorityLevel;
1248
1299
  /**
1249
- * Payload for claiming account creation tokens.
1300
+ * Determines authority required for a proposal operation.
1301
+ *
1302
+ * Proposal operations (create_proposal, update_proposal) typically require
1303
+ * active authority as they involve financial commitments and funding allocations.
1304
+ *
1305
+ * @param proposalOp - The proposal operation to inspect
1306
+ * @returns 'active' authority requirement
1307
+ *
1308
+ * @remarks
1309
+ * Unlike custom_json, proposal operations don't have explicit required_auths fields.
1310
+ * They always use the creator's authority, which defaults to active for financial
1311
+ * operations involving the DAO treasury.
1312
+ *
1313
+ * @example
1314
+ * ```typescript
1315
+ * const proposalOp: Operation = ['create_proposal', {
1316
+ * creator: 'alice',
1317
+ * receiver: 'bob',
1318
+ * subject: 'My Proposal',
1319
+ * permlink: 'my-proposal',
1320
+ * start: '2026-03-01T00:00:00',
1321
+ * end: '2026-04-01T00:00:00',
1322
+ * daily_pay: '100.000 HBD',
1323
+ * extensions: []
1324
+ * }];
1325
+ * getProposalAuthority(proposalOp); // Returns 'active'
1326
+ * ```
1250
1327
  */
1251
- interface ClaimAccountPayload {
1252
- /** Creator account claiming the token */
1253
- creator: string;
1254
- /** Fee for claiming (usually "0.000 HIVE" for RC-based claims) */
1255
- fee?: string;
1256
- }
1328
+ declare function getProposalAuthority(proposalOp: Operation): AuthorityLevel;
1257
1329
  /**
1258
- * React Query mutation hook for claiming account creation tokens.
1330
+ * Determines the required authority level for any operation.
1259
1331
  *
1260
- * This mutation broadcasts a claim_account operation to claim an account
1261
- * creation token using Resource Credits (RC). The claimed token can later
1262
- * be used to create a new account for free using the create_claimed_account
1263
- * operation.
1332
+ * Uses the OPERATION_AUTHORITY_MAP for standard operations, and dynamic
1333
+ * detection for custom_json operations.
1264
1334
  *
1265
- * @param username - The username claiming the account token (required for broadcast)
1266
- * @param auth - Authentication context with platform adapter and fallback configuration
1335
+ * @param op - The operation to check
1336
+ * @returns 'posting' or 'active' authority requirement
1267
1337
  *
1268
- * @returns React Query mutation result
1338
+ * @example
1339
+ * ```typescript
1340
+ * const voteOp: Operation = ['vote', { voter: 'alice', author: 'bob', permlink: 'post', weight: 10000 }];
1341
+ * getOperationAuthority(voteOp); // Returns 'posting'
1269
1342
  *
1270
- * @remarks
1271
- * **Post-Broadcast Actions:**
1272
- * - Invalidates account cache to update pending_claimed_accounts count
1273
- * - Updates account query data to set pending_claimed_accounts = 0 optimistically
1343
+ * const transferOp: Operation = ['transfer', { from: 'alice', to: 'bob', amount: '1.000 HIVE', memo: '' }];
1344
+ * getOperationAuthority(transferOp); // Returns 'active'
1345
+ * ```
1346
+ */
1347
+ declare function getOperationAuthority(op: Operation): AuthorityLevel;
1348
+ /**
1349
+ * Determines the highest authority level required for a list of operations.
1274
1350
  *
1275
- * **Operation Details:**
1276
- * - Uses native claim_account operation
1277
- * - Fee: "0.000 HIVE" (uses RC instead of HIVE)
1278
- * - Authority: Active key (required for claiming)
1351
+ * Useful when broadcasting multiple operations together - the highest authority
1352
+ * level required by any operation determines what key is needed for the batch.
1279
1353
  *
1280
- * **RC Requirements:**
1281
- * - Requires sufficient Resource Credits (RC)
1282
- * - RC amount varies based on network conditions
1283
- * - Claiming without sufficient RC will fail
1354
+ * Authority hierarchy: owner > active > posting > memo
1284
1355
  *
1285
- * **Use Case:**
1286
- * - Claim tokens in advance when RC is available
1287
- * - Create accounts later without paying HIVE fee
1288
- * - Useful for onboarding services and apps
1356
+ * @param ops - Array of operations
1357
+ * @returns Highest authority level required ('owner', 'active', or 'posting')
1289
1358
  *
1290
1359
  * @example
1291
1360
  * ```typescript
1292
- * const claimMutation = useClaimAccount(username, {
1293
- * adapter: myAdapter,
1294
- * enableFallback: true,
1295
- * fallbackChain: ['keychain', 'key', 'hivesigner']
1296
- * });
1361
+ * const ops: Operation[] = [
1362
+ * ['vote', { ... }], // posting
1363
+ * ['comment', { ... }], // posting
1364
+ * ];
1365
+ * getRequiredAuthority(ops); // Returns 'posting'
1297
1366
  *
1298
- * // Claim account token using RC
1299
- * claimMutation.mutate({
1300
- * creator: 'alice',
1301
- * fee: '0.000 HIVE'
1302
- * });
1367
+ * const mixedOps: Operation[] = [
1368
+ * ['comment', { ... }], // posting
1369
+ * ['transfer', { ... }], // active
1370
+ * ];
1371
+ * getRequiredAuthority(mixedOps); // Returns 'active'
1372
+ *
1373
+ * const securityOps: Operation[] = [
1374
+ * ['transfer', { ... }], // active
1375
+ * ['change_recovery_account', { ... }], // owner
1376
+ * ];
1377
+ * getRequiredAuthority(securityOps); // Returns 'owner'
1303
1378
  * ```
1304
1379
  */
1305
- declare function useClaimAccount(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, ClaimAccountPayload, unknown>;
1380
+ declare function getRequiredAuthority(ops: Operation[]): AuthorityLevel;
1306
1381
 
1307
1382
  /**
1308
- * Content Operations
1309
- * Operations for creating, voting, and managing content on Hive blockchain
1310
- */
1311
- /**
1312
- * Builds a vote operation.
1313
- * @param voter - Account casting the vote
1314
- * @param author - Author of the post/comment
1315
- * @param permlink - Permlink of the post/comment
1316
- * @param weight - Vote weight (-10000 to 10000, where 10000 = 100% upvote, -10000 = 100% downvote)
1317
- * @returns Vote operation
1318
- */
1319
- declare function buildVoteOp(voter: string, author: string, permlink: string, weight: number): Operation;
1320
- /**
1321
- * Builds a comment operation (for posts or replies).
1322
- * @param author - Author of the comment/post
1323
- * @param permlink - Permlink of the comment/post
1324
- * @param parentAuthor - Parent author (empty string for top-level posts)
1325
- * @param parentPermlink - Parent permlink (category/tag for top-level posts)
1326
- * @param title - Title of the post (empty for comments)
1327
- * @param body - Content body (required - cannot be empty)
1328
- * @param jsonMetadata - JSON metadata object
1329
- * @returns Comment operation
1383
+ * React Query mutation hook for broadcasting Hive operations.
1384
+ * Supports multiple authentication methods with automatic fallback.
1385
+ *
1386
+ * @template T - Type of the mutation payload
1387
+ * @param mutationKey - React Query mutation key for cache management
1388
+ * @param username - Hive username (required for broadcast)
1389
+ * @param operations - Function that converts payload to Hive operations
1390
+ * @param onSuccess - Success callback after broadcast completes
1391
+ * @param auth - Authentication context (supports both legacy AuthContext and new AuthContextV2)
1392
+ * @param authority - Key authority to use ('posting' | 'active' | 'owner' | 'memo'), defaults to 'posting'
1393
+ *
1394
+ * @returns React Query mutation result
1395
+ *
1396
+ * @remarks
1397
+ * **Authentication Flow:**
1398
+ *
1399
+ * 1. **With AuthContextV2 + adapter + enableFallback** (recommended for new code):
1400
+ * - Tries auth methods in fallbackChain order
1401
+ * - Smart fallback: only retries on auth errors, not RC/network errors
1402
+ * - Uses platform adapter for storage, UI, and broadcasting
1403
+ *
1404
+ * 2. **With legacy AuthContext** (backward compatible):
1405
+ * - Tries auth.broadcast() first (custom implementation)
1406
+ * - Falls back to postingKey if available
1407
+ * - Falls back to accessToken (HiveSigner) if available
1408
+ * - Throws if no auth method available
1409
+ *
1410
+ * **Backward Compatibility:**
1411
+ * - All existing code using AuthContext will continue to work
1412
+ * - AuthContextV2 extends AuthContext, so it's a drop-in replacement
1413
+ * - enableFallback defaults to false if no adapter provided
1414
+ *
1415
+ * @example
1416
+ * ```typescript
1417
+ * // New pattern with platform adapter and fallback
1418
+ * const mutation = useBroadcastMutation(
1419
+ * ['vote'],
1420
+ * username,
1421
+ * (payload) => [voteOperation(payload)],
1422
+ * () => console.log('Success!'),
1423
+ * {
1424
+ * adapter: myAdapter,
1425
+ * enableFallback: true,
1426
+ * fallbackChain: ['keychain', 'key', 'hivesigner']
1427
+ * },
1428
+ * 'posting'
1429
+ * );
1430
+ *
1431
+ * // Legacy pattern (still works)
1432
+ * const mutation = useBroadcastMutation(
1433
+ * ['vote'],
1434
+ * username,
1435
+ * (payload) => [voteOperation(payload)],
1436
+ * () => console.log('Success!'),
1437
+ * { postingKey: 'wif-key' }
1438
+ * );
1439
+ * ```
1330
1440
  */
1331
- declare function buildCommentOp(author: string, permlink: string, parentAuthor: string, parentPermlink: string, title: string, body: string, jsonMetadata: Record<string, any>): Operation;
1441
+ declare function useBroadcastMutation<T>(mutationKey: MutationKey | undefined, username: string | undefined, operations: (payload: T) => Operation[], onSuccess?: UseMutationOptions<unknown, Error, T>["onSuccess"], auth?: AuthContextV2, authority?: AuthorityLevel, options?: {
1442
+ onMutate?: UseMutationOptions<unknown, Error, T>["onMutate"];
1443
+ onError?: UseMutationOptions<unknown, Error, T>["onError"];
1444
+ onSettled?: UseMutationOptions<unknown, Error, T>["onSettled"];
1445
+ }): _tanstack_react_query.UseMutationResult<unknown, Error, T, unknown>;
1446
+
1447
+ declare function broadcastJson<T>(username: string | undefined, id: string, payload: T, auth?: AuthContext): Promise<any>;
1448
+
1449
+ declare const CONFIG: {
1450
+ privateApiHost: string;
1451
+ imageHost: string;
1452
+ hiveNodes: string[];
1453
+ heliusApiKey: string | undefined;
1454
+ queryClient: QueryClient;
1455
+ plausibleHost: string;
1456
+ spkNode: string;
1457
+ dmcaAccounts: string[];
1458
+ dmcaTags: string[];
1459
+ dmcaPatterns: string[];
1460
+ dmcaTagRegexes: RegExp[];
1461
+ dmcaPatternRegexes: RegExp[];
1462
+ _dmcaInitialized: boolean;
1463
+ };
1464
+ type DmcaListsInput = {
1465
+ accounts?: string[];
1466
+ tags?: string[];
1467
+ posts?: string[];
1468
+ };
1469
+ declare namespace ConfigManager {
1470
+ function setQueryClient(client: QueryClient): void;
1471
+ /**
1472
+ * Set the private API host
1473
+ * @param host - The private API host URL (e.g., "https://ecency.com" or "" for relative URLs)
1474
+ */
1475
+ function setPrivateApiHost(host: string): void;
1476
+ /**
1477
+ * Get a validated base URL for API requests
1478
+ * Returns a valid base URL that can be used with new URL(path, baseUrl)
1479
+ *
1480
+ * Priority:
1481
+ * 1. CONFIG.privateApiHost if set (dev/staging or explicit config)
1482
+ * 2. window.location.origin if in browser (production with relative URLs)
1483
+ * 3. 'https://ecency.com' as fallback for SSR (production default)
1484
+ *
1485
+ * @returns A valid base URL string
1486
+ * @throws Never throws - always returns a valid URL
1487
+ */
1488
+ function getValidatedBaseUrl(): string;
1489
+ /**
1490
+ * Set the image host
1491
+ * @param host - The image host URL (e.g., "https://images.ecency.com")
1492
+ */
1493
+ function setImageHost(host: string): void;
1494
+ /**
1495
+ * Set Hive RPC nodes, replacing the default list and updating hive-tx config.
1496
+ * @param nodes - Array of Hive RPC node URLs
1497
+ */
1498
+ function setHiveNodes(nodes: string[]): void;
1499
+ /**
1500
+ * Set DMCA filtering lists
1501
+ * @param lists - DMCA lists object containing accounts/tags/posts arrays
1502
+ */
1503
+ function setDmcaLists(lists?: DmcaListsInput): void;
1504
+ }
1505
+
1332
1506
  /**
1333
- * Builds a comment options operation (for setting beneficiaries, rewards, etc.).
1334
- * @param author - Author of the comment/post
1335
- * @param permlink - Permlink of the comment/post
1336
- * @param maxAcceptedPayout - Maximum accepted payout (e.g., "1000000.000 HBD")
1337
- * @param percentHbd - Percent of payout in HBD (10000 = 100%)
1338
- * @param allowVotes - Allow votes on this content
1339
- * @param allowCurationRewards - Allow curation rewards
1340
- * @param extensions - Extensions array (for beneficiaries, etc.)
1341
- * @returns Comment options operation
1507
+ * Chain error handling utilities
1508
+ * Extracted from web's operations.ts and mobile's dhive.ts error handling patterns
1342
1509
  */
1343
- declare function buildCommentOptionsOp(author: string, permlink: string, maxAcceptedPayout: string, percentHbd: number, allowVotes: boolean, allowCurationRewards: boolean, extensions: any[]): Operation;
1510
+ declare enum ErrorType {
1511
+ COMMON = "common",
1512
+ INFO = "info",
1513
+ INSUFFICIENT_RESOURCE_CREDITS = "insufficient_resource_credits",
1514
+ MISSING_AUTHORITY = "missing_authority",
1515
+ TOKEN_EXPIRED = "token_expired",
1516
+ NETWORK = "network",
1517
+ TIMEOUT = "timeout",
1518
+ VALIDATION = "validation"
1519
+ }
1520
+ interface ParsedChainError {
1521
+ message: string;
1522
+ type: ErrorType;
1523
+ originalError?: any;
1524
+ }
1344
1525
  /**
1345
- * Builds a delete comment operation.
1346
- * @param author - Author of the comment/post to delete
1347
- * @param permlink - Permlink of the comment/post to delete
1348
- * @returns Delete comment operation
1526
+ * Parses Hive blockchain errors into standardized format.
1527
+ * Extracted from web's operations.ts and mobile's dhive.ts error handling.
1528
+ *
1529
+ * @param error - The error object or string from a blockchain operation
1530
+ * @returns Parsed error with user-friendly message and categorized type
1531
+ *
1532
+ * @example
1533
+ * ```typescript
1534
+ * try {
1535
+ * await vote(...);
1536
+ * } catch (error) {
1537
+ * const parsed = parseChainError(error);
1538
+ * console.log(parsed.message); // "Insufficient Resource Credits. Please wait or power up."
1539
+ * console.log(parsed.type); // ErrorType.INSUFFICIENT_RESOURCE_CREDITS
1540
+ * }
1541
+ * ```
1349
1542
  */
1350
- declare function buildDeleteCommentOp(author: string, permlink: string): Operation;
1543
+ declare function parseChainError(error: any): ParsedChainError;
1351
1544
  /**
1352
- * Builds a reblog operation (custom_json).
1353
- * @param account - Account performing the reblog
1354
- * @param author - Original post author
1355
- * @param permlink - Original post permlink
1356
- * @param deleteReblog - If true, removes the reblog
1357
- * @returns Custom JSON operation for reblog
1545
+ * Formats error for display to user.
1546
+ * Returns tuple of [message, type] for backward compatibility with existing code.
1547
+ *
1548
+ * This function maintains compatibility with the old formatError signature from
1549
+ * web's operations.ts (line 59-84) and mobile's dhive.ts error handling.
1550
+ *
1551
+ * @param error - The error object or string
1552
+ * @returns Tuple of [user-friendly message, error type]
1553
+ *
1554
+ * @example
1555
+ * ```typescript
1556
+ * try {
1557
+ * await transfer(...);
1558
+ * } catch (error) {
1559
+ * const [message, type] = formatError(error);
1560
+ * showToast(message, type);
1561
+ * }
1562
+ * ```
1358
1563
  */
1359
- declare function buildReblogOp(account: string, author: string, permlink: string, deleteReblog?: boolean): Operation;
1360
-
1564
+ declare function formatError(error: any): [string, ErrorType];
1361
1565
  /**
1362
- * Wallet Operations
1363
- * Operations for managing tokens, savings, vesting, and conversions
1566
+ * Checks if error indicates missing authority and should trigger auth fallback.
1567
+ * Used by the SDK's useBroadcastMutation to determine if it should retry with
1568
+ * an alternate authentication method.
1569
+ *
1570
+ * @param error - The error object or string
1571
+ * @returns true if auth fallback should be attempted
1572
+ *
1573
+ * @example
1574
+ * ```typescript
1575
+ * try {
1576
+ * await broadcast(operations);
1577
+ * } catch (error) {
1578
+ * if (shouldTriggerAuthFallback(error)) {
1579
+ * // Try with alternate auth method
1580
+ * await broadcastWithHiveAuth(operations);
1581
+ * }
1582
+ * }
1583
+ * ```
1364
1584
  */
1585
+ declare function shouldTriggerAuthFallback(error: any): boolean;
1365
1586
  /**
1366
- * Builds a transfer operation.
1367
- * @param from - Sender account
1368
- * @param to - Receiver account
1369
- * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
1370
- * @param memo - Transfer memo
1371
- * @returns Transfer operation
1587
+ * Checks if error is a resource credits (RC) error.
1588
+ * Useful for showing specific UI feedback about RC issues.
1589
+ *
1590
+ * @param error - The error object or string
1591
+ * @returns true if the error is related to insufficient RC
1592
+ *
1593
+ * @example
1594
+ * ```typescript
1595
+ * try {
1596
+ * await vote(...);
1597
+ * } catch (error) {
1598
+ * if (isResourceCreditsError(error)) {
1599
+ * showRCWarning(); // Show specific RC education/power up UI
1600
+ * }
1601
+ * }
1602
+ * ```
1372
1603
  */
1373
- declare function buildTransferOp(from: string, to: string, amount: string, memo: string): Operation;
1604
+ declare function isResourceCreditsError(error: any): boolean;
1374
1605
  /**
1375
- * Builds multiple transfer operations for multiple recipients.
1376
- * @param from - Sender account
1377
- * @param destinations - Comma or space separated list of recipient accounts
1378
- * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
1379
- * @param memo - Transfer memo
1380
- * @returns Array of transfer operations
1381
- */
1382
- declare function buildMultiTransferOps(from: string, destinations: string, amount: string, memo: string): Operation[];
1383
- /**
1384
- * Builds a recurrent transfer operation.
1385
- * @param from - Sender account
1386
- * @param to - Receiver account
1387
- * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
1388
- * @param memo - Transfer memo
1389
- * @param recurrence - Recurrence in hours
1390
- * @param executions - Number of executions (2 = executes twice)
1391
- * @returns Recurrent transfer operation
1392
- */
1393
- declare function buildRecurrentTransferOp(from: string, to: string, amount: string, memo: string, recurrence: number, executions: number): Operation;
1394
- /**
1395
- * Builds a transfer to savings operation.
1396
- * @param from - Sender account
1397
- * @param to - Receiver account
1398
- * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
1399
- * @param memo - Transfer memo
1400
- * @returns Transfer to savings operation
1401
- */
1402
- declare function buildTransferToSavingsOp(from: string, to: string, amount: string, memo: string): Operation;
1403
- /**
1404
- * Builds a transfer from savings operation.
1405
- * @param from - Sender account
1406
- * @param to - Receiver account
1407
- * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
1408
- * @param memo - Transfer memo
1409
- * @param requestId - Unique request ID (use timestamp)
1410
- * @returns Transfer from savings operation
1411
- */
1412
- declare function buildTransferFromSavingsOp(from: string, to: string, amount: string, memo: string, requestId: number): Operation;
1413
- /**
1414
- * Builds a cancel transfer from savings operation.
1415
- * @param from - Account that initiated the savings withdrawal
1416
- * @param requestId - Request ID to cancel
1417
- * @returns Cancel transfer from savings operation
1418
- */
1419
- declare function buildCancelTransferFromSavingsOp(from: string, requestId: number): Operation;
1420
- /**
1421
- * Builds operations to claim savings interest.
1422
- * Creates a transfer_from_savings and immediately cancels it to claim interest.
1423
- * @param from - Account claiming interest
1424
- * @param to - Receiver account
1425
- * @param amount - Amount with asset symbol (e.g., "0.001 HIVE")
1426
- * @param memo - Transfer memo
1427
- * @param requestId - Unique request ID
1428
- * @returns Array of operations [transfer_from_savings, cancel_transfer_from_savings]
1429
- */
1430
- declare function buildClaimInterestOps(from: string, to: string, amount: string, memo: string, requestId: number): Operation[];
1431
- /**
1432
- * Builds a transfer to vesting operation (power up).
1433
- * @param from - Account sending HIVE
1434
- * @param to - Account receiving Hive Power
1435
- * @param amount - Amount with HIVE symbol (e.g., "1.000 HIVE")
1436
- * @returns Transfer to vesting operation
1437
- */
1438
- declare function buildTransferToVestingOp(from: string, to: string, amount: string): Operation;
1439
- /**
1440
- * Builds a withdraw vesting operation (power down).
1441
- * @param account - Account withdrawing vesting
1442
- * @param vestingShares - Amount of VESTS to withdraw (e.g., "1.000000 VESTS")
1443
- * @returns Withdraw vesting operation
1444
- */
1445
- declare function buildWithdrawVestingOp(account: string, vestingShares: string): Operation;
1446
- /**
1447
- * Builds a delegate vesting shares operation (HP delegation).
1448
- * @param delegator - Account delegating HP
1449
- * @param delegatee - Account receiving HP delegation
1450
- * @param vestingShares - Amount of VESTS to delegate (e.g., "1000.000000 VESTS")
1451
- * @returns Delegate vesting shares operation
1452
- */
1453
- declare function buildDelegateVestingSharesOp(delegator: string, delegatee: string, vestingShares: string): Operation;
1454
- /**
1455
- * Builds a set withdraw vesting route operation.
1456
- * @param fromAccount - Account withdrawing vesting
1457
- * @param toAccount - Account receiving withdrawn vesting
1458
- * @param percent - Percentage to route (0-10000, where 10000 = 100%)
1459
- * @param autoVest - Auto convert to vesting
1460
- * @returns Set withdraw vesting route operation
1461
- */
1462
- declare function buildSetWithdrawVestingRouteOp(fromAccount: string, toAccount: string, percent: number, autoVest: boolean): Operation;
1463
- /**
1464
- * Builds a convert operation (HBD to HIVE).
1465
- * @param owner - Account converting HBD
1466
- * @param amount - Amount of HBD to convert (e.g., "1.000 HBD")
1467
- * @param requestId - Unique request ID (use timestamp)
1468
- * @returns Convert operation
1469
- */
1470
- declare function buildConvertOp(owner: string, amount: string, requestId: number): Operation;
1471
- /**
1472
- * Builds a collateralized convert operation (HIVE to HBD via collateral).
1473
- * @param owner - Account converting HIVE
1474
- * @param amount - Amount of HIVE to convert (e.g., "1.000 HIVE")
1475
- * @param requestId - Unique request ID (use timestamp)
1476
- * @returns Collateralized convert operation
1477
- */
1478
- declare function buildCollateralizedConvertOp(owner: string, amount: string, requestId: number): Operation;
1479
- /**
1480
- * Builds a delegate RC operation (custom_json).
1481
- * @param from - Account delegating RC
1482
- * @param delegatees - Single delegatee or comma-separated list
1483
- * @param maxRc - Maximum RC to delegate (in mana units)
1484
- * @returns Custom JSON operation for RC delegation
1485
- */
1486
- /**
1487
- * Builds a SPK Network custom_json operation.
1488
- * @param from - Account performing the operation
1489
- * @param id - SPK operation ID (e.g., "spkcc_spk_send", "spkcc_gov_up")
1490
- * @param amount - Amount (multiplied by 1000 internally)
1491
- * @returns Custom JSON operation
1492
- */
1493
- declare function buildSpkCustomJsonOp(from: string, id: string, amount: number): Operation;
1494
- /**
1495
- * Builds a Hive Engine custom_json operation.
1496
- * @param from - Account performing the operation
1497
- * @param contractAction - Engine contract action (e.g., "transfer", "stake")
1498
- * @param contractPayload - Payload for the contract action
1499
- * @param contractName - Engine contract name (defaults to "tokens")
1500
- * @returns Custom JSON operation
1606
+ * Checks if error is informational (not critical).
1607
+ * Informational errors typically don't need retry logic.
1608
+ *
1609
+ * @param error - The error object or string
1610
+ * @returns true if the error is informational
1501
1611
  */
1502
- declare function buildEngineOp(from: string, contractAction: string, contractPayload: Record<string, string>, contractName?: string): Operation;
1612
+ declare function isInfoError(error: any): boolean;
1503
1613
  /**
1504
- * Builds a scot_claim_token operation (posting authority).
1505
- * @param account - Account claiming rewards
1506
- * @param tokens - Array of token symbols to claim
1507
- * @returns Custom JSON operation
1614
+ * Checks if error is network-related and should be retried.
1615
+ *
1616
+ * @param error - The error object or string
1617
+ * @returns true if the error is network-related
1508
1618
  */
1509
- declare function buildEngineClaimOp(account: string, tokens: string[]): Operation;
1510
- declare function buildDelegateRcOp(from: string, delegatees: string, maxRc: string | number): Operation;
1619
+ declare function isNetworkError(error: any): boolean;
1511
1620
 
1512
- /**
1513
- * Social Operations
1514
- * Operations for following, muting, and managing social relationships
1515
- */
1516
- /**
1517
- * Builds a follow operation (custom_json).
1518
- * @param follower - Account following
1519
- * @param following - Account to follow
1520
- * @returns Custom JSON operation for follow
1521
- */
1522
- declare function buildFollowOp(follower: string, following: string): Operation;
1523
- /**
1524
- * Builds an unfollow operation (custom_json).
1525
- * @param follower - Account unfollowing
1526
- * @param following - Account to unfollow
1527
- * @returns Custom JSON operation for unfollow
1528
- */
1529
- declare function buildUnfollowOp(follower: string, following: string): Operation;
1530
- /**
1531
- * Builds an ignore/mute operation (custom_json).
1532
- * @param follower - Account ignoring
1533
- * @param following - Account to ignore
1534
- * @returns Custom JSON operation for ignore
1535
- */
1536
- declare function buildIgnoreOp(follower: string, following: string): Operation;
1537
- /**
1538
- * Builds an unignore/unmute operation (custom_json).
1539
- * @param follower - Account unignoring
1540
- * @param following - Account to unignore
1541
- * @returns Custom JSON operation for unignore
1542
- */
1543
- declare function buildUnignoreOp(follower: string, following: string): Operation;
1544
- /**
1545
- * Builds a Hive Notify set last read operation (custom_json).
1546
- * @param username - Account setting last read
1547
- * @param date - ISO date string (defaults to now)
1548
- * @returns Array of custom JSON operations for setting last read
1549
- */
1550
- declare function buildSetLastReadOps(username: string, date?: string): Operation[];
1621
+ declare function makeQueryClient(): QueryClient;
1622
+ declare const getQueryClient: () => QueryClient;
1623
+ declare namespace EcencyQueriesManager {
1624
+ function getQueryData<T>(queryKey: QueryKey): T | undefined;
1625
+ function getInfiniteQueryData<T>(queryKey: QueryKey): InfiniteData<T, unknown> | undefined;
1626
+ function prefetchQuery<T>(options: UseQueryOptions<T>): Promise<T | undefined>;
1627
+ function prefetchInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): Promise<InfiniteData<T, unknown> | undefined>;
1628
+ function generateClientServerQuery<T>(options: UseQueryOptions<T>): {
1629
+ prefetch: () => Promise<T | undefined>;
1630
+ getData: () => T | undefined;
1631
+ useClientQuery: () => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<T>, Error>;
1632
+ fetchAndGet: () => Promise<T>;
1633
+ };
1634
+ function generateClientServerInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): {
1635
+ prefetch: () => Promise<InfiniteData<T, unknown> | undefined>;
1636
+ getData: () => InfiniteData<T, unknown> | undefined;
1637
+ useClientQuery: () => _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<T, unknown>, Error>;
1638
+ fetchAndGet: () => Promise<InfiniteData<T, P>>;
1639
+ };
1640
+ }
1551
1641
 
1552
- /**
1553
- * Governance Operations
1554
- * Operations for witness voting, proposals, and proxy management
1555
- */
1556
- /**
1557
- * Builds an account witness vote operation.
1558
- * @param account - Account voting
1559
- * @param witness - Witness account name
1560
- * @param approve - True to approve, false to disapprove
1561
- * @returns Account witness vote operation
1562
- */
1563
- declare function buildWitnessVoteOp(account: string, witness: string, approve: boolean): Operation;
1564
- /**
1565
- * Builds an account witness proxy operation.
1566
- * @param account - Account setting proxy
1567
- * @param proxy - Proxy account name (empty string to remove proxy)
1568
- * @returns Account witness proxy operation
1569
- */
1570
- declare function buildWitnessProxyOp(account: string, proxy: string): Operation;
1571
- /**
1572
- * Payload for proposal creation
1573
- */
1574
- interface ProposalCreatePayload {
1575
- receiver: string;
1576
- subject: string;
1577
- permlink: string;
1578
- start: string;
1579
- end: string;
1580
- dailyPay: string;
1642
+ declare function getDynamicPropsQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<DynamicProps$1, Error, DynamicProps$1, string[]>, "queryFn"> & {
1643
+ queryFn?: _tanstack_react_query.QueryFunction<DynamicProps$1, string[], never> | undefined;
1644
+ } & {
1645
+ queryKey: string[] & {
1646
+ [dataTagSymbol]: DynamicProps$1;
1647
+ [dataTagErrorSymbol]: Error;
1648
+ };
1649
+ };
1650
+
1651
+ interface RewardFund {
1652
+ id: number;
1653
+ name: string;
1654
+ reward_balance: string;
1655
+ recent_claims: string;
1656
+ last_update: string;
1657
+ content_constant: string;
1658
+ percent_curation_rewards: number;
1659
+ percent_content_rewards: number;
1660
+ author_reward_curve: string;
1661
+ curation_reward_curve: string;
1581
1662
  }
1582
1663
  /**
1583
- * Builds a create proposal operation.
1584
- * @param creator - Account creating the proposal
1585
- * @param payload - Proposal details (must include start, end, and dailyPay)
1586
- * @returns Create proposal operation
1664
+ * Get reward fund information from the blockchain
1665
+ * @param fundName - Name of the reward fund (default: 'post')
1587
1666
  */
1588
- declare function buildProposalCreateOp(creator: string, payload: ProposalCreatePayload): Operation;
1589
- /**
1590
- * Builds an update proposal votes operation.
1591
- * @param voter - Account voting
1592
- * @param proposalIds - Array of proposal IDs
1593
- * @param approve - True to approve, false to disapprove
1594
- * @returns Update proposal votes operation
1595
- */
1596
- declare function buildProposalVoteOp(voter: string, proposalIds: number[], approve: boolean): Operation;
1667
+ declare function getRewardFundQueryOptions(fundName?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<RewardFund, Error, RewardFund, string[]>, "queryFn"> & {
1668
+ queryFn?: _tanstack_react_query.QueryFunction<RewardFund, string[], never> | undefined;
1669
+ } & {
1670
+ queryKey: string[] & {
1671
+ [dataTagSymbol]: RewardFund;
1672
+ [dataTagErrorSymbol]: Error;
1673
+ };
1674
+ };
1675
+
1676
+ declare const QueryKeys: {
1677
+ readonly posts: {
1678
+ readonly entry: (entryPath: string) => string[];
1679
+ readonly postHeader: (author: string, permlink?: string) => (string | undefined)[];
1680
+ readonly content: (author: string, permlink: string) => string[];
1681
+ readonly contentReplies: (author: string, permlink: string) => string[];
1682
+ readonly accountPosts: (username: string, filter: string, limit: number, observer: string) => (string | number)[];
1683
+ readonly accountPostsPage: (username: string, filter: string, startAuthor: string, startPermlink: string, limit: number, observer: string) => (string | number)[];
1684
+ readonly userPostVote: (username: string, author: string, permlink: string) => string[];
1685
+ readonly reblogs: (username: string, limit: number) => (string | number)[];
1686
+ readonly entryActiveVotes: (author?: string, permlink?: string) => (string | undefined)[];
1687
+ readonly rebloggedBy: (author: string, permlink: string) => string[];
1688
+ readonly tips: (author: string, permlink: string) => string[];
1689
+ readonly normalize: (author: string, permlink: string) => string[];
1690
+ readonly drafts: (activeUsername?: string) => (string | undefined)[];
1691
+ readonly draftsInfinite: (activeUsername?: string, limit?: number) => unknown[];
1692
+ readonly schedules: (activeUsername?: string) => (string | undefined)[];
1693
+ readonly schedulesInfinite: (activeUsername?: string, limit?: number) => unknown[];
1694
+ readonly fragments: (username?: string) => (string | undefined)[];
1695
+ readonly fragmentsInfinite: (username?: string, limit?: number) => unknown[];
1696
+ readonly images: (username?: string) => (string | undefined)[];
1697
+ readonly galleryImages: (activeUsername?: string) => (string | undefined)[];
1698
+ readonly imagesInfinite: (username?: string, limit?: number) => unknown[];
1699
+ readonly promoted: (type: string) => string[];
1700
+ readonly _promotedPrefix: readonly ["posts", "promoted"];
1701
+ readonly accountPostsBlogPrefix: (username: string) => readonly ["posts", "account-posts", string, "blog"];
1702
+ readonly postsRanked: (sort: string, tag: string, limit: number, observer: string) => (string | number)[];
1703
+ readonly postsRankedPage: (sort: string, startAuthor: string, startPermlink: string, limit: number, tag: string, observer: string) => (string | number)[];
1704
+ readonly discussions: (author: string, permlink: string, order: string, observer: string) => string[];
1705
+ readonly discussion: (author: string, permlink: string, observer: string) => string[];
1706
+ readonly deletedEntry: (entryPath: string) => string[];
1707
+ readonly commentHistory: (author: string, permlink: string, onlyMeta: boolean) => (string | boolean)[];
1708
+ readonly trendingTags: () => string[];
1709
+ readonly trendingTagsWithStats: (limit: number) => (string | number)[];
1710
+ readonly wavesByHost: (host: string) => string[];
1711
+ readonly wavesByTag: (host: string, tag: string) => string[];
1712
+ readonly wavesFollowing: (host: string, username: string) => string[];
1713
+ readonly wavesTrendingTags: (host: string, hours: number) => (string | number)[];
1714
+ readonly wavesByAccount: (host: string, username: string) => string[];
1715
+ readonly wavesTrendingAuthors: (host: string) => string[];
1716
+ readonly _prefix: readonly ["posts"];
1717
+ };
1718
+ readonly accounts: {
1719
+ readonly full: (username?: string) => (string | undefined)[];
1720
+ readonly list: (...usernames: string[]) => string[];
1721
+ readonly friends: (following: string, mode: string, followType: string, limit: number) => (string | number)[];
1722
+ readonly searchFriends: (username: string, mode: string, query: string) => string[];
1723
+ readonly subscriptions: (username: string) => string[];
1724
+ readonly followCount: (username: string) => string[];
1725
+ readonly recoveries: (username: string) => string[];
1726
+ readonly pendingRecovery: (username: string) => string[];
1727
+ readonly checkWalletPending: (username: string, code: string | null) => (string | null)[];
1728
+ readonly mutedUsers: (username: string) => string[];
1729
+ readonly following: (follower: string, startFollowing: string, followType: string, limit: number) => (string | number)[];
1730
+ readonly followers: (following: string, startFollower: string, followType: string, limit: number) => (string | number)[];
1731
+ readonly search: (query: string, excludeList?: string[]) => (string | string[] | undefined)[];
1732
+ readonly profiles: (accounts: string[], observer: string) => (string | string[])[];
1733
+ readonly lookup: (query: string, limit: number) => (string | number)[];
1734
+ readonly transactions: (username: string, group: string, limit: number) => (string | number)[];
1735
+ readonly favorites: (activeUsername?: string) => (string | undefined)[];
1736
+ readonly favoritesInfinite: (activeUsername?: string, limit?: number) => unknown[];
1737
+ readonly checkFavorite: (activeUsername: string, targetUsername: string) => string[];
1738
+ readonly relations: (reference: string, target: string) => string[];
1739
+ readonly bots: () => string[];
1740
+ readonly voteHistory: (username: string, limit: number) => (string | number)[];
1741
+ readonly reputations: (query: string, limit: number) => (string | number)[];
1742
+ readonly bookmarks: (activeUsername?: string) => (string | undefined)[];
1743
+ readonly bookmarksInfinite: (activeUsername?: string, limit?: number) => unknown[];
1744
+ readonly referrals: (username: string) => string[];
1745
+ readonly referralsStats: (username: string) => string[];
1746
+ readonly _prefix: readonly ["accounts"];
1747
+ };
1748
+ readonly notifications: {
1749
+ readonly announcements: () => string[];
1750
+ readonly list: (activeUsername?: string, filter?: string) => (string | undefined)[];
1751
+ readonly unreadCount: (activeUsername?: string) => (string | undefined)[];
1752
+ readonly settings: (activeUsername?: string) => (string | undefined)[];
1753
+ readonly _prefix: readonly ["notifications"];
1754
+ };
1755
+ readonly core: {
1756
+ readonly rewardFund: (fundName: string) => string[];
1757
+ readonly dynamicProps: () => string[];
1758
+ readonly chainProperties: () => string[];
1759
+ readonly _prefix: readonly ["core"];
1760
+ };
1761
+ readonly communities: {
1762
+ readonly single: (name?: string, observer?: string) => (string | undefined)[];
1763
+ /** Prefix key for matching all observer variants of a community */
1764
+ readonly singlePrefix: (name: string) => readonly ["community", "single", string];
1765
+ readonly context: (username: string, communityName: string) => string[];
1766
+ readonly rewarded: () => string[];
1767
+ readonly list: (sort: string, query: string, limit: number) => (string | number)[];
1768
+ readonly subscribers: (communityName: string) => string[];
1769
+ readonly accountNotifications: (account: string, limit: number) => (string | number)[];
1770
+ };
1771
+ readonly proposals: {
1772
+ readonly list: () => string[];
1773
+ readonly proposal: (id: number) => (string | number)[];
1774
+ readonly votes: (proposalId: number, voter: string, limit: number) => (string | number)[];
1775
+ readonly votesPrefix: (proposalId: number) => readonly ["proposals", "votes", number];
1776
+ readonly votesByUser: (voter: string) => string[];
1777
+ };
1778
+ readonly search: {
1779
+ readonly topics: (q: string, limit: number) => (string | number)[];
1780
+ readonly path: (q: string) => string[];
1781
+ readonly account: (q: string, limit: number) => (string | number)[];
1782
+ readonly results: (q: string, sort: string, hideLow: boolean, since?: string, scrollId?: string, votes?: number) => (string | number | boolean | undefined)[];
1783
+ readonly controversialRising: (what: string, tag: string) => string[];
1784
+ readonly similarEntries: (author: string, permlink: string, query: string) => string[];
1785
+ readonly api: (q: string, sort: string, hideLow: boolean, since?: string, votes?: number) => (string | number | boolean | undefined)[];
1786
+ };
1787
+ readonly witnesses: {
1788
+ readonly list: (limit: number) => (string | number)[];
1789
+ readonly votes: (username: string | undefined) => (string | undefined)[];
1790
+ readonly proxy: () => string[];
1791
+ };
1792
+ readonly wallet: {
1793
+ readonly outgoingRcDelegations: (username: string, limit: number) => (string | number)[];
1794
+ readonly vestingDelegations: (username: string, limit: number) => (string | number)[];
1795
+ readonly withdrawRoutes: (account: string) => string[];
1796
+ readonly incomingRc: (username: string) => string[];
1797
+ readonly conversionRequests: (account: string) => string[];
1798
+ readonly receivedVestingShares: (username: string) => string[];
1799
+ readonly savingsWithdraw: (account: string) => string[];
1800
+ readonly openOrders: (user: string) => string[];
1801
+ readonly collateralizedConversionRequests: (account: string) => string[];
1802
+ readonly recurrentTransfers: (username: string) => string[];
1803
+ readonly portfolio: (username: string, onlyEnabled: string, currency: string) => string[];
1804
+ };
1805
+ readonly assets: {
1806
+ readonly hiveGeneralInfo: (username: string) => string[];
1807
+ readonly hiveTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
1808
+ readonly hiveWithdrawalRoutes: (username: string) => string[];
1809
+ readonly hiveMetrics: (bucketSeconds: number) => (string | number)[];
1810
+ readonly hbdGeneralInfo: (username: string) => string[];
1811
+ readonly hbdTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
1812
+ readonly hivePowerGeneralInfo: (username: string) => string[];
1813
+ readonly hivePowerDelegates: (username: string) => string[];
1814
+ readonly hivePowerDelegatings: (username: string) => string[];
1815
+ readonly hivePowerTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
1816
+ readonly pointsGeneralInfo: (username: string) => string[];
1817
+ readonly pointsTransactions: (username: string, type: string) => string[];
1818
+ readonly ecencyAssetInfo: (username: string, asset: string, currency: string) => string[];
1819
+ };
1820
+ readonly market: {
1821
+ readonly statistics: () => string[];
1822
+ readonly orderBook: (limit: number) => (string | number)[];
1823
+ readonly history: (seconds: number, startDate: number, endDate: number) => (string | number)[];
1824
+ readonly feedHistory: () => string[];
1825
+ readonly hiveHbdStats: () => string[];
1826
+ readonly data: (coin: string, vsCurrency: string, fromTs: number, toTs: number) => (string | number)[];
1827
+ readonly tradeHistory: (limit: number, start: number, end: number) => (string | number)[];
1828
+ readonly currentMedianHistoryPrice: () => string[];
1829
+ };
1830
+ readonly analytics: {
1831
+ readonly discoverCuration: (duration: string) => string[];
1832
+ readonly pageStats: (url: string, dimensions: string, metrics: string, dateRange: string) => string[];
1833
+ readonly discoverLeaderboard: (duration: string) => string[];
1834
+ };
1835
+ readonly promotions: {
1836
+ readonly promotePrice: () => string[];
1837
+ readonly boostPlusPrices: () => string[];
1838
+ readonly boostPlusAccounts: (account: string) => string[];
1839
+ };
1840
+ readonly resourceCredits: {
1841
+ readonly account: (username: string) => string[];
1842
+ readonly stats: () => string[];
1843
+ };
1844
+ readonly points: {
1845
+ readonly points: (username: string, filter: number) => (string | number)[];
1846
+ readonly _prefix: (username: string) => string[];
1847
+ };
1848
+ readonly operations: {
1849
+ readonly chainProperties: () => string[];
1850
+ };
1851
+ readonly games: {
1852
+ readonly statusCheck: (gameType: string, username: string) => string[];
1853
+ };
1854
+ readonly badActors: {
1855
+ readonly list: () => string[];
1856
+ readonly _prefix: readonly ["bad-actors"];
1857
+ };
1858
+ readonly ai: {
1859
+ readonly prices: () => readonly ["ai", "prices"];
1860
+ readonly assistPrices: (username?: string) => readonly ["ai", "assist-prices", string | undefined];
1861
+ readonly _prefix: readonly ["ai"];
1862
+ };
1863
+ };
1864
+
1865
+ declare function encodeObj(o: any): string;
1866
+ declare function decodeObj(o: any): any;
1867
+
1868
+ declare enum Symbol {
1869
+ HIVE = "HIVE",
1870
+ HBD = "HBD",
1871
+ VESTS = "VESTS",
1872
+ SPK = "SPK"
1873
+ }
1874
+ declare enum NaiMap {
1875
+ "@@000000021" = "HIVE",
1876
+ "@@000000013" = "HBD",
1877
+ "@@000000037" = "VESTS"
1878
+ }
1879
+ interface Asset {
1880
+ amount: number;
1881
+ symbol: Symbol;
1882
+ }
1883
+ declare function parseAsset(sval: string | SMTAsset): Asset;
1884
+
1885
+ declare function getBoundFetch(): typeof fetch;
1886
+
1887
+ declare function isCommunity(value: unknown): boolean;
1888
+
1597
1889
  /**
1598
- * Builds a remove proposal operation.
1599
- * @param proposalOwner - Owner of the proposal
1600
- * @param proposalIds - Array of proposal IDs to remove
1601
- * @returns Remove proposal operation
1890
+ * Type guard to check if response is wrapped with pagination metadata
1602
1891
  */
1603
- declare function buildRemoveProposalOp(proposalOwner: string, proposalIds: number[]): Operation;
1892
+ declare function isWrappedResponse<T>(response: any): response is WrappedResponse<T>;
1604
1893
  /**
1605
- * Builds an update proposal operation.
1606
- * @param proposalId - Proposal ID to update (must be a valid number, including 0)
1607
- * @param creator - Account that created the proposal
1608
- * @param dailyPay - New daily pay amount
1609
- * @param subject - New subject
1610
- * @param permlink - New permlink
1611
- * @returns Update proposal operation
1894
+ * Normalize response to wrapped format for backwards compatibility
1895
+ * If the backend returns old format (array), convert it to wrapped format
1612
1896
  */
1613
- declare function buildUpdateProposalOp(proposalId: number, creator: string, dailyPay: string, subject: string, permlink: string): Operation;
1897
+ declare function normalizeToWrappedResponse<T>(response: T[] | WrappedResponse<T>, limit: number): WrappedResponse<T>;
1898
+
1899
+ declare function vestsToHp(vests: number, hivePerMVests: number): number;
1900
+
1901
+ declare function isEmptyDate(s: string | undefined): boolean;
1614
1902
 
1903
+ interface Payload$1 {
1904
+ newPassword: string;
1905
+ currentPassword: string;
1906
+ keepCurrent?: boolean;
1907
+ }
1615
1908
  /**
1616
- * Community Operations
1617
- * Operations for managing Hive communities
1909
+ * Only native Hive and custom passwords could be updated here
1910
+ * Seed based password cannot be updated here, it will be in an account always for now
1618
1911
  */
1912
+ type UpdatePasswordOptions = Pick<UseMutationOptions<unknown, Error, Payload$1>, "onSuccess" | "onError">;
1913
+ declare function useAccountUpdatePassword(username: string, options?: UpdatePasswordOptions): _tanstack_react_query.UseMutationResult<TransactionConfirmation, Error, Payload$1, unknown>;
1914
+
1915
+ type SignType$1 = "key" | "keychain" | "hivesigner";
1916
+ interface CommonPayload$1 {
1917
+ accountName: string;
1918
+ type: SignType$1;
1919
+ key?: PrivateKey;
1920
+ }
1921
+ type RevokePostingOptions = Pick<UseMutationOptions<unknown, Error, CommonPayload$1>, "onSuccess" | "onError"> & {
1922
+ hsCallbackUrl?: string;
1923
+ };
1924
+ declare function useAccountRevokePosting(username: string | undefined, options: RevokePostingOptions, auth?: AuthContext): _tanstack_react_query.UseMutationResult<unknown, Error, CommonPayload$1, unknown>;
1925
+
1926
+ type SignType = "key" | "keychain" | "hivesigner" | "ecency";
1927
+ interface CommonPayload {
1928
+ accountName: string;
1929
+ type: SignType;
1930
+ key?: PrivateKey;
1931
+ email?: string;
1932
+ }
1933
+ type UpdateRecoveryOptions = Pick<UseMutationOptions<unknown, Error, CommonPayload>, "onSuccess" | "onError"> & {
1934
+ hsCallbackUrl?: string;
1935
+ };
1936
+ declare function useAccountUpdateRecovery(username: string | undefined, code: string | undefined, options: UpdateRecoveryOptions, auth?: AuthContext): _tanstack_react_query.UseMutationResult<unknown, Error, CommonPayload, unknown>;
1937
+
1938
+ interface Payload {
1939
+ currentKey: PrivateKey;
1940
+ /** Keys to revoke. Accepts a single key or an array. */
1941
+ revokingKey: PublicKey | PublicKey[];
1942
+ }
1619
1943
  /**
1620
- * Builds a subscribe to community operation (custom_json).
1621
- * @param username - Account subscribing
1622
- * @param community - Community name (e.g., "hive-123456")
1623
- * @returns Custom JSON operation for subscribe
1944
+ * Revoke one or more keys from an account on the Hive blockchain.
1945
+ *
1946
+ * When revoking keys that exist only in active/posting authorities,
1947
+ * the owner field is omitted from the operation so active-level
1948
+ * signing is sufficient.
1624
1949
  */
1625
- declare function buildSubscribeOp(username: string, community: string): Operation;
1950
+ type RevokeKeyOptions = Pick<UseMutationOptions<unknown, Error, Payload>, "onSuccess" | "onError">;
1951
+ declare function useAccountRevokeKey(username: string | undefined, options?: RevokeKeyOptions): _tanstack_react_query.UseMutationResult<TransactionConfirmation, Error, Payload, unknown>;
1952
+
1626
1953
  /**
1627
- * Builds an unsubscribe from community operation (custom_json).
1628
- * @param username - Account unsubscribing
1629
- * @param community - Community name (e.g., "hive-123456")
1630
- * @returns Custom JSON operation for unsubscribe
1954
+ * Check whether an authority would still meet its weight_threshold
1955
+ * after removing the given keys. This prevents revoking keys that
1956
+ * would leave an authority unable to sign (especially for multisig).
1631
1957
  */
1632
- declare function buildUnsubscribeOp(username: string, community: string): Operation;
1958
+ declare function canRevokeFromAuthority(auth: Authority$1, revokingKeyStrs: Set<string>): boolean;
1633
1959
  /**
1634
- * Builds a set user role in community operation (custom_json).
1635
- * @param username - Account setting the role (must have permission)
1636
- * @param community - Community name (e.g., "hive-123456")
1637
- * @param account - Account to set role for
1638
- * @param role - Role name (e.g., "admin", "mod", "member", "guest")
1639
- * @returns Custom JSON operation for setRole
1960
+ * Build an account_update operation that removes the given public keys
1961
+ * from the relevant authorities.
1962
+ *
1963
+ * Only includes the `owner` field when a revoking key actually exists
1964
+ * in the owner authority - omitting it allows active-level signing.
1965
+ *
1966
+ * Returns the operation payload (without the "account_update" tag) so
1967
+ * callers can wrap it as needed for their broadcast method.
1640
1968
  */
1641
- declare function buildSetRoleOp(username: string, community: string, account: string, role: string): Operation;
1969
+ declare function buildRevokeKeysOp(accountData: FullAccount, revokingKeys: PublicKey[]): {
1970
+ account: string;
1971
+ json_metadata: string;
1972
+ owner: Authority$1 | undefined;
1973
+ active: Authority$1;
1974
+ posting: Authority$1;
1975
+ memo_key: string;
1976
+ };
1977
+
1642
1978
  /**
1643
- * Community properties for update
1979
+ * Payload for claiming account creation tokens.
1644
1980
  */
1645
- interface CommunityProps {
1646
- title: string;
1647
- about: string;
1648
- lang: string;
1649
- description: string;
1650
- flag_text: string;
1651
- is_nsfw: boolean;
1981
+ interface ClaimAccountPayload {
1982
+ /** Creator account claiming the token */
1983
+ creator: string;
1984
+ /** Fee for claiming (usually "0.000 HIVE" for RC-based claims) */
1985
+ fee?: string;
1652
1986
  }
1653
1987
  /**
1654
- * Builds an update community properties operation (custom_json).
1655
- * @param username - Account updating (must be community admin)
1656
- * @param community - Community name (e.g., "hive-123456")
1657
- * @param props - Properties to update
1658
- * @returns Custom JSON operation for updateProps
1988
+ * React Query mutation hook for claiming account creation tokens.
1989
+ *
1990
+ * This mutation broadcasts a claim_account operation to claim an account
1991
+ * creation token using Resource Credits (RC). The claimed token can later
1992
+ * be used to create a new account for free using the create_claimed_account
1993
+ * operation.
1994
+ *
1995
+ * @param username - The username claiming the account token (required for broadcast)
1996
+ * @param auth - Authentication context with platform adapter and fallback configuration
1997
+ *
1998
+ * @returns React Query mutation result
1999
+ *
2000
+ * @remarks
2001
+ * **Post-Broadcast Actions:**
2002
+ * - Invalidates account cache to update pending_claimed_accounts count
2003
+ * - Updates account query data to set pending_claimed_accounts = 0 optimistically
2004
+ *
2005
+ * **Operation Details:**
2006
+ * - Uses native claim_account operation
2007
+ * - Fee: "0.000 HIVE" (uses RC instead of HIVE)
2008
+ * - Authority: Active key (required for claiming)
2009
+ *
2010
+ * **RC Requirements:**
2011
+ * - Requires sufficient Resource Credits (RC)
2012
+ * - RC amount varies based on network conditions
2013
+ * - Claiming without sufficient RC will fail
2014
+ *
2015
+ * **Use Case:**
2016
+ * - Claim tokens in advance when RC is available
2017
+ * - Create accounts later without paying HIVE fee
2018
+ * - Useful for onboarding services and apps
2019
+ *
2020
+ * @example
2021
+ * ```typescript
2022
+ * const claimMutation = useClaimAccount(username, {
2023
+ * adapter: myAdapter,
2024
+ * enableFallback: true,
2025
+ * fallbackChain: ['keychain', 'key', 'hivesigner']
2026
+ * });
2027
+ *
2028
+ * // Claim account token using RC
2029
+ * claimMutation.mutate({
2030
+ * creator: 'alice',
2031
+ * fee: '0.000 HIVE'
2032
+ * });
2033
+ * ```
1659
2034
  */
1660
- declare function buildUpdateCommunityOp(username: string, community: string, props: CommunityProps): Operation;
2035
+ declare function useClaimAccount(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, ClaimAccountPayload, unknown>;
2036
+
1661
2037
  /**
1662
- * Builds a pin/unpin post in community operation (custom_json).
1663
- * @param username - Account pinning (must have permission)
1664
- * @param community - Community name (e.g., "hive-123456")
1665
- * @param account - Post author
1666
- * @param permlink - Post permlink
1667
- * @param pin - True to pin, false to unpin
1668
- * @returns Custom JSON operation for pinPost/unpinPost
2038
+ * Content Operations
2039
+ * Operations for creating, voting, and managing content on Hive blockchain
1669
2040
  */
1670
- declare function buildPinPostOp(username: string, community: string, account: string, permlink: string, pin: boolean): Operation;
1671
2041
  /**
1672
- * Builds a mute/unmute post in community operation (custom_json).
1673
- * @param username - Account muting (must have permission)
1674
- * @param community - Community name (e.g., "hive-123456")
1675
- * @param account - Post author
1676
- * @param permlink - Post permlink
1677
- * @param notes - Mute reason/notes
1678
- * @param mute - True to mute, false to unmute
1679
- * @returns Custom JSON operation for mutePost/unmutePost
2042
+ * Builds a vote operation.
2043
+ * @param voter - Account casting the vote
2044
+ * @param author - Author of the post/comment
2045
+ * @param permlink - Permlink of the post/comment
2046
+ * @param weight - Vote weight (-10000 to 10000, where 10000 = 100% upvote, -10000 = 100% downvote)
2047
+ * @returns Vote operation
1680
2048
  */
1681
- declare function buildMutePostOp(username: string, community: string, account: string, permlink: string, notes: string, mute: boolean): Operation;
2049
+ declare function buildVoteOp(voter: string, author: string, permlink: string, weight: number): Operation;
1682
2050
  /**
1683
- * Builds a mute/unmute user in community operation (custom_json).
1684
- * @param username - Account performing mute (must have permission)
1685
- * @param community - Community name (e.g., "hive-123456")
1686
- * @param account - Account to mute/unmute
1687
- * @param notes - Mute reason/notes
1688
- * @param mute - True to mute, false to unmute
1689
- * @returns Custom JSON operation for muteUser/unmuteUser
2051
+ * Builds a comment operation (for posts or replies).
2052
+ * @param author - Author of the comment/post
2053
+ * @param permlink - Permlink of the comment/post
2054
+ * @param parentAuthor - Parent author (empty string for top-level posts)
2055
+ * @param parentPermlink - Parent permlink (category/tag for top-level posts)
2056
+ * @param title - Title of the post (empty for comments)
2057
+ * @param body - Content body (required - cannot be empty)
2058
+ * @param jsonMetadata - JSON metadata object
2059
+ * @returns Comment operation
1690
2060
  */
1691
- declare function buildMuteUserOp(username: string, community: string, account: string, notes: string, mute: boolean): Operation;
2061
+ declare function buildCommentOp(author: string, permlink: string, parentAuthor: string, parentPermlink: string, title: string, body: string, jsonMetadata: Record<string, any>): Operation;
1692
2062
  /**
1693
- * Builds a flag post in community operation (custom_json).
1694
- * @param username - Account flagging
1695
- * @param community - Community name (e.g., "hive-123456")
1696
- * @param account - Post author
1697
- * @param permlink - Post permlink
1698
- * @param notes - Flag reason/notes
1699
- * @returns Custom JSON operation for flagPost
2063
+ * Builds a comment options operation (for setting beneficiaries, rewards, etc.).
2064
+ * @param author - Author of the comment/post
2065
+ * @param permlink - Permlink of the comment/post
2066
+ * @param maxAcceptedPayout - Maximum accepted payout (e.g., "1000000.000 HBD")
2067
+ * @param percentHbd - Percent of payout in HBD (10000 = 100%)
2068
+ * @param allowVotes - Allow votes on this content
2069
+ * @param allowCurationRewards - Allow curation rewards
2070
+ * @param extensions - Extensions array (for beneficiaries, etc.)
2071
+ * @returns Comment options operation
1700
2072
  */
1701
- declare function buildFlagPostOp(username: string, community: string, account: string, permlink: string, notes: string): Operation;
1702
-
2073
+ declare function buildCommentOptionsOp(author: string, permlink: string, maxAcceptedPayout: string, percentHbd: number, allowVotes: boolean, allowCurationRewards: boolean, extensions: any[]): Operation;
1703
2074
  /**
1704
- * Market Operations
1705
- * Operations for trading on the internal Hive market
2075
+ * Builds a delete comment operation.
2076
+ * @param author - Author of the comment/post to delete
2077
+ * @param permlink - Permlink of the comment/post to delete
2078
+ * @returns Delete comment operation
1706
2079
  */
2080
+ declare function buildDeleteCommentOp(author: string, permlink: string): Operation;
1707
2081
  /**
1708
- * Transaction type for buy/sell operations
2082
+ * Builds a reblog operation (custom_json).
2083
+ * @param account - Account performing the reblog
2084
+ * @param author - Original post author
2085
+ * @param permlink - Original post permlink
2086
+ * @param deleteReblog - If true, removes the reblog
2087
+ * @returns Custom JSON operation for reblog
1709
2088
  */
1710
- declare enum BuySellTransactionType {
1711
- Buy = "buy",
1712
- Sell = "sell"
1713
- }
2089
+ declare function buildReblogOp(account: string, author: string, permlink: string, deleteReblog?: boolean): Operation;
2090
+
1714
2091
  /**
1715
- * Order ID prefix for different order types
2092
+ * Wallet Operations
2093
+ * Operations for managing tokens, savings, vesting, and conversions
1716
2094
  */
1717
- declare enum OrderIdPrefix {
1718
- EMPTY = "",
1719
- SWAP = "9"
1720
- }
1721
2095
  /**
1722
- * Builds a limit order create operation.
1723
- * @param owner - Account creating the order
1724
- * @param amountToSell - Amount and asset to sell
1725
- * @param minToReceive - Minimum amount and asset to receive
1726
- * @param fillOrKill - If true, order must be filled immediately or cancelled
1727
- * @param expiration - Expiration date (ISO string)
1728
- * @param orderId - Unique order ID
1729
- * @returns Limit order create operation
2096
+ * Builds a transfer operation.
2097
+ * @param from - Sender account
2098
+ * @param to - Receiver account
2099
+ * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
2100
+ * @param memo - Transfer memo
2101
+ * @returns Transfer operation
1730
2102
  */
1731
- declare function buildLimitOrderCreateOp(owner: string, amountToSell: string, minToReceive: string, fillOrKill: boolean, expiration: string, orderId: number): Operation;
2103
+ declare function buildTransferOp(from: string, to: string, amount: string, memo: string): Operation;
1732
2104
  /**
1733
- * Builds a limit order create operation with automatic formatting.
1734
- * This is a convenience method that handles buy/sell logic and formatting.
1735
- *
1736
- * For Buy orders: You're buying HIVE with HBD
1737
- * - amountToSell: HBD amount you're spending
1738
- * - minToReceive: HIVE amount you want to receive
1739
- *
1740
- * For Sell orders: You're selling HIVE for HBD
1741
- * - amountToSell: HIVE amount you're selling
1742
- * - minToReceive: HBD amount you want to receive
1743
- *
1744
- * @param owner - Account creating the order
1745
- * @param amountToSell - Amount to sell (number)
1746
- * @param minToReceive - Minimum to receive (number)
1747
- * @param orderType - Buy or Sell
1748
- * @param idPrefix - Order ID prefix
1749
- * @returns Limit order create operation
2105
+ * Builds multiple transfer operations for multiple recipients.
2106
+ * @param from - Sender account
2107
+ * @param destinations - Comma or space separated list of recipient accounts
2108
+ * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
2109
+ * @param memo - Transfer memo
2110
+ * @returns Array of transfer operations
1750
2111
  */
1751
- declare function buildLimitOrderCreateOpWithType(owner: string, amountToSell: number, minToReceive: number, orderType: BuySellTransactionType, idPrefix?: OrderIdPrefix): Operation;
2112
+ declare function buildMultiTransferOps(from: string, destinations: string, amount: string, memo: string): Operation[];
1752
2113
  /**
1753
- * Builds a limit order cancel operation.
1754
- * @param owner - Account cancelling the order
1755
- * @param orderId - Order ID to cancel
1756
- * @returns Limit order cancel operation
2114
+ * Builds a recurrent transfer operation.
2115
+ * @param from - Sender account
2116
+ * @param to - Receiver account
2117
+ * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
2118
+ * @param memo - Transfer memo
2119
+ * @param recurrence - Recurrence in hours
2120
+ * @param executions - Number of executions (2 = executes twice)
2121
+ * @returns Recurrent transfer operation
1757
2122
  */
1758
- declare function buildLimitOrderCancelOp(owner: string, orderId: number): Operation;
2123
+ declare function buildRecurrentTransferOp(from: string, to: string, amount: string, memo: string, recurrence: number, executions: number): Operation;
1759
2124
  /**
1760
- * Builds a claim reward balance operation.
1761
- * @param account - Account claiming rewards
1762
- * @param rewardHive - HIVE reward to claim (e.g., "0.000 HIVE")
1763
- * @param rewardHbd - HBD reward to claim (e.g., "0.000 HBD")
1764
- * @param rewardVests - VESTS reward to claim (e.g., "0.000000 VESTS")
1765
- * @returns Claim reward balance operation
2125
+ * Builds a transfer to savings operation.
2126
+ * @param from - Sender account
2127
+ * @param to - Receiver account
2128
+ * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
2129
+ * @param memo - Transfer memo
2130
+ * @returns Transfer to savings operation
1766
2131
  */
1767
- declare function buildClaimRewardBalanceOp(account: string, rewardHive: string, rewardHbd: string, rewardVests: string): Operation;
1768
-
2132
+ declare function buildTransferToSavingsOp(from: string, to: string, amount: string, memo: string): Operation;
1769
2133
  /**
1770
- * Account Operations
1771
- * Operations for managing accounts, keys, and permissions
2134
+ * Builds a transfer from savings operation.
2135
+ * @param from - Sender account
2136
+ * @param to - Receiver account
2137
+ * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
2138
+ * @param memo - Transfer memo
2139
+ * @param requestId - Unique request ID (use timestamp)
2140
+ * @returns Transfer from savings operation
1772
2141
  */
2142
+ declare function buildTransferFromSavingsOp(from: string, to: string, amount: string, memo: string, requestId: number): Operation;
1773
2143
  /**
1774
- * Authority structure for account operations
2144
+ * Builds a cancel transfer from savings operation.
2145
+ * @param from - Account that initiated the savings withdrawal
2146
+ * @param requestId - Request ID to cancel
2147
+ * @returns Cancel transfer from savings operation
1775
2148
  */
1776
- interface Authority {
1777
- weight_threshold: number;
1778
- account_auths: [string, number][];
1779
- key_auths: [string, number][];
1780
- }
2149
+ declare function buildCancelTransferFromSavingsOp(from: string, requestId: number): Operation;
1781
2150
  /**
1782
- * Builds an account update operation.
1783
- * @param account - Account name
1784
- * @param owner - Owner authority (optional)
1785
- * @param active - Active authority (optional)
1786
- * @param posting - Posting authority (optional)
1787
- * @param memoKey - Memo public key
1788
- * @param jsonMetadata - Account JSON metadata
1789
- * @returns Account update operation
2151
+ * Builds operations to claim savings interest.
2152
+ * Creates a transfer_from_savings and immediately cancels it to claim interest.
2153
+ * @param from - Account claiming interest
2154
+ * @param to - Receiver account
2155
+ * @param amount - Amount with asset symbol (e.g., "0.001 HIVE")
2156
+ * @param memo - Transfer memo
2157
+ * @param requestId - Unique request ID
2158
+ * @returns Array of operations [transfer_from_savings, cancel_transfer_from_savings]
1790
2159
  */
1791
- declare function buildAccountUpdateOp(account: string, owner: Authority | undefined, active: Authority | undefined, posting: Authority | undefined, memoKey: string, jsonMetadata: string): Operation;
2160
+ declare function buildClaimInterestOps(from: string, to: string, amount: string, memo: string, requestId: number): Operation[];
1792
2161
  /**
1793
- * Builds an account update2 operation (for posting_json_metadata).
1794
- * @param account - Account name
1795
- * @param jsonMetadata - Account JSON metadata (legacy, usually empty)
1796
- * @param postingJsonMetadata - Posting JSON metadata string
1797
- * @param extensions - Extensions array
1798
- * @returns Account update2 operation
2162
+ * Builds a transfer to vesting operation (power up).
2163
+ * @param from - Account sending HIVE
2164
+ * @param to - Account receiving Hive Power
2165
+ * @param amount - Amount with HIVE symbol (e.g., "1.000 HIVE")
2166
+ * @returns Transfer to vesting operation
1799
2167
  */
1800
- declare function buildAccountUpdate2Op(account: string, jsonMetadata: string, postingJsonMetadata: string, extensions: any[]): Operation;
2168
+ declare function buildTransferToVestingOp(from: string, to: string, amount: string): Operation;
1801
2169
  /**
1802
- * Public keys for account creation
2170
+ * Builds a withdraw vesting operation (power down).
2171
+ * @param account - Account withdrawing vesting
2172
+ * @param vestingShares - Amount of VESTS to withdraw (e.g., "1.000000 VESTS")
2173
+ * @returns Withdraw vesting operation
1803
2174
  */
1804
- interface AccountKeys {
1805
- ownerPublicKey: string;
1806
- activePublicKey: string;
1807
- postingPublicKey: string;
1808
- memoPublicKey: string;
1809
- }
2175
+ declare function buildWithdrawVestingOp(account: string, vestingShares: string): Operation;
1810
2176
  /**
1811
- * Builds an account create operation.
1812
- * @param creator - Creator account name
1813
- * @param newAccountName - New account name
1814
- * @param keys - Public keys for the new account
1815
- * @param fee - Creation fee (e.g., "3.000 HIVE")
1816
- * @returns Account create operation
2177
+ * Builds a delegate vesting shares operation (HP delegation).
2178
+ * @param delegator - Account delegating HP
2179
+ * @param delegatee - Account receiving HP delegation
2180
+ * @param vestingShares - Amount of VESTS to delegate (e.g., "1000.000000 VESTS")
2181
+ * @returns Delegate vesting shares operation
1817
2182
  */
1818
- declare function buildAccountCreateOp(creator: string, newAccountName: string, keys: AccountKeys, fee: string): Operation;
2183
+ declare function buildDelegateVestingSharesOp(delegator: string, delegatee: string, vestingShares: string): Operation;
1819
2184
  /**
1820
- * Builds a create claimed account operation (using account creation tokens).
1821
- * @param creator - Creator account name
1822
- * @param newAccountName - New account name
1823
- * @param keys - Public keys for the new account
1824
- * @returns Create claimed account operation
2185
+ * Builds a set withdraw vesting route operation.
2186
+ * @param fromAccount - Account withdrawing vesting
2187
+ * @param toAccount - Account receiving withdrawn vesting
2188
+ * @param percent - Percentage to route (0-10000, where 10000 = 100%)
2189
+ * @param autoVest - Auto convert to vesting
2190
+ * @returns Set withdraw vesting route operation
1825
2191
  */
1826
- declare function buildCreateClaimedAccountOp(creator: string, newAccountName: string, keys: AccountKeys): Operation;
2192
+ declare function buildSetWithdrawVestingRouteOp(fromAccount: string, toAccount: string, percent: number, autoVest: boolean): Operation;
1827
2193
  /**
1828
- * Builds a claim account operation.
1829
- * @param creator - Account claiming the token
1830
- * @param fee - Fee for claiming (usually "0.000 HIVE" for RC-based claims)
1831
- * @returns Claim account operation
2194
+ * Builds a convert operation (HBD to HIVE).
2195
+ * @param owner - Account converting HBD
2196
+ * @param amount - Amount of HBD to convert (e.g., "1.000 HBD")
2197
+ * @param requestId - Unique request ID (use timestamp)
2198
+ * @returns Convert operation
1832
2199
  */
1833
- declare function buildClaimAccountOp(creator: string, fee: string): Operation;
2200
+ declare function buildConvertOp(owner: string, amount: string, requestId: number): Operation;
1834
2201
  /**
1835
- * Builds an operation to grant posting permission to another account.
1836
- * Helper that modifies posting authority to add an account.
1837
- * @param account - Account granting permission
1838
- * @param currentPosting - Current posting authority
1839
- * @param grantedAccount - Account to grant permission to
1840
- * @param weightThreshold - Weight threshold of the granted account
1841
- * @param memoKey - Memo public key (required by Hive blockchain)
1842
- * @param jsonMetadata - Account JSON metadata (required by Hive blockchain)
1843
- * @returns Account update operation with modified posting authority
2202
+ * Builds a collateralized convert operation (HIVE to HBD via collateral).
2203
+ * @param owner - Account converting HIVE
2204
+ * @param amount - Amount of HIVE to convert (e.g., "1.000 HIVE")
2205
+ * @param requestId - Unique request ID (use timestamp)
2206
+ * @returns Collateralized convert operation
1844
2207
  */
1845
- declare function buildGrantPostingPermissionOp(account: string, currentPosting: Authority, grantedAccount: string, weightThreshold: number, memoKey: string, jsonMetadata: string): Operation;
2208
+ declare function buildCollateralizedConvertOp(owner: string, amount: string, requestId: number): Operation;
1846
2209
  /**
1847
- * Builds an operation to revoke posting permission from an account.
1848
- * Helper that modifies posting authority to remove an account.
1849
- * @param account - Account revoking permission
1850
- * @param currentPosting - Current posting authority
1851
- * @param revokedAccount - Account to revoke permission from
1852
- * @param memoKey - Memo public key (required by Hive blockchain)
1853
- * @param jsonMetadata - Account JSON metadata (required by Hive blockchain)
1854
- * @returns Account update operation with modified posting authority
2210
+ * Builds a delegate RC operation (custom_json).
2211
+ * @param from - Account delegating RC
2212
+ * @param delegatees - Single delegatee or comma-separated list
2213
+ * @param maxRc - Maximum RC to delegate (in mana units)
2214
+ * @returns Custom JSON operation for RC delegation
1855
2215
  */
1856
- declare function buildRevokePostingPermissionOp(account: string, currentPosting: Authority, revokedAccount: string, memoKey: string, jsonMetadata: string): Operation;
1857
2216
  /**
1858
- * Builds a change recovery account operation.
1859
- * @param accountToRecover - Account to change recovery account for
1860
- * @param newRecoveryAccount - New recovery account name
1861
- * @param extensions - Extensions array
1862
- * @returns Change recovery account operation
2217
+ * Builds a SPK Network custom_json operation.
2218
+ * @param from - Account performing the operation
2219
+ * @param id - SPK operation ID (e.g., "spkcc_spk_send", "spkcc_gov_up")
2220
+ * @param amount - Amount (multiplied by 1000 internally)
2221
+ * @returns Custom JSON operation
1863
2222
  */
1864
- declare function buildChangeRecoveryAccountOp(accountToRecover: string, newRecoveryAccount: string, extensions?: any[]): Operation;
2223
+ declare function buildSpkCustomJsonOp(from: string, id: string, amount: number): Operation;
1865
2224
  /**
1866
- * Builds a request account recovery operation.
1867
- * @param recoveryAccount - Recovery account performing the recovery
1868
- * @param accountToRecover - Account to recover
1869
- * @param newOwnerAuthority - New owner authority
1870
- * @param extensions - Extensions array
1871
- * @returns Request account recovery operation
2225
+ * Builds a Hive Engine custom_json operation.
2226
+ * @param from - Account performing the operation
2227
+ * @param contractAction - Engine contract action (e.g., "transfer", "stake")
2228
+ * @param contractPayload - Payload for the contract action
2229
+ * @param contractName - Engine contract name (defaults to "tokens")
2230
+ * @returns Custom JSON operation
1872
2231
  */
1873
- declare function buildRequestAccountRecoveryOp(recoveryAccount: string, accountToRecover: string, newOwnerAuthority: Authority, extensions?: any[]): Operation;
2232
+ declare function buildEngineOp(from: string, contractAction: string, contractPayload: Record<string, string>, contractName?: string): Operation;
1874
2233
  /**
1875
- * Builds a recover account operation.
1876
- * @param accountToRecover - Account to recover
1877
- * @param newOwnerAuthority - New owner authority
1878
- * @param recentOwnerAuthority - Recent owner authority (for proof)
1879
- * @param extensions - Extensions array
1880
- * @returns Recover account operation
2234
+ * Builds a scot_claim_token operation (posting authority).
2235
+ * @param account - Account claiming rewards
2236
+ * @param tokens - Array of token symbols to claim
2237
+ * @returns Custom JSON operation
1881
2238
  */
1882
- declare function buildRecoverAccountOp(accountToRecover: string, newOwnerAuthority: Authority, recentOwnerAuthority: Authority, extensions?: any[]): Operation;
2239
+ declare function buildEngineClaimOp(account: string, tokens: string[]): Operation;
2240
+ declare function buildDelegateRcOp(from: string, delegatees: string, maxRc: string | number): Operation;
1883
2241
 
1884
2242
  /**
1885
- * Ecency-Specific Operations
1886
- * Custom operations for Ecency platform features (Points, Boost, Promote, etc.)
2243
+ * Social Operations
2244
+ * Operations for following, muting, and managing social relationships
1887
2245
  */
1888
2246
  /**
1889
- * Builds an Ecency boost operation (custom_json with active authority).
1890
- * @param user - User account
1891
- * @param author - Post author
1892
- * @param permlink - Post permlink
1893
- * @param amount - Amount to boost (e.g., "1.000 POINT")
1894
- * @returns Custom JSON operation for boost
2247
+ * Builds a follow operation (custom_json).
2248
+ * @param follower - Account following
2249
+ * @param following - Account to follow
2250
+ * @returns Custom JSON operation for follow
1895
2251
  */
1896
- declare function buildBoostOp(user: string, author: string, permlink: string, amount: string): Operation;
2252
+ declare function buildFollowOp(follower: string, following: string): Operation;
1897
2253
  /**
1898
- * Builds an Ecency boost operation with numeric point value.
1899
- * @param user - User account
1900
- * @param author - Post author
1901
- * @param permlink - Post permlink
1902
- * @param points - Points to spend (will be formatted as "X.XXX POINT", must be a valid finite number)
1903
- * @returns Custom JSON operation for boost
2254
+ * Builds an unfollow operation (custom_json).
2255
+ * @param follower - Account unfollowing
2256
+ * @param following - Account to unfollow
2257
+ * @returns Custom JSON operation for unfollow
1904
2258
  */
1905
- declare function buildBoostOpWithPoints(user: string, author: string, permlink: string, points: number): Operation;
2259
+ declare function buildUnfollowOp(follower: string, following: string): Operation;
1906
2260
  /**
1907
- * Builds an Ecency Boost Plus subscription operation (custom_json).
1908
- * @param user - User account
1909
- * @param account - Account to subscribe
1910
- * @param duration - Subscription duration in days (must be a valid finite number)
1911
- * @returns Custom JSON operation for boost plus
2261
+ * Builds an ignore/mute operation (custom_json).
2262
+ * @param follower - Account ignoring
2263
+ * @param following - Account to ignore
2264
+ * @returns Custom JSON operation for ignore
1912
2265
  */
1913
- declare function buildBoostPlusOp(user: string, account: string, duration: number): Operation;
2266
+ declare function buildIgnoreOp(follower: string, following: string): Operation;
1914
2267
  /**
1915
- * Builds an Ecency promote operation (custom_json).
1916
- * @param user - User account
1917
- * @param author - Post author
1918
- * @param permlink - Post permlink
1919
- * @param duration - Promotion duration in days (must be a valid finite number)
1920
- * @returns Custom JSON operation for promote
2268
+ * Builds an unignore/unmute operation (custom_json).
2269
+ * @param follower - Account unignoring
2270
+ * @param following - Account to unignore
2271
+ * @returns Custom JSON operation for unignore
1921
2272
  */
1922
- declare function buildPromoteOp(user: string, author: string, permlink: string, duration: number): Operation;
2273
+ declare function buildUnignoreOp(follower: string, following: string): Operation;
1923
2274
  /**
1924
- * Builds an Ecency point transfer operation (custom_json).
1925
- * @param sender - Sender account
1926
- * @param receiver - Receiver account
1927
- * @param amount - Amount to transfer
1928
- * @param memo - Transfer memo
1929
- * @returns Custom JSON operation for point transfer
2275
+ * Builds a Hive Notify set last read operation (custom_json).
2276
+ * @param username - Account setting last read
2277
+ * @param date - ISO date string (defaults to now)
2278
+ * @returns Array of custom JSON operations for setting last read
1930
2279
  */
1931
- declare function buildPointTransferOp(sender: string, receiver: string, amount: string, memo: string): Operation;
2280
+ declare function buildSetLastReadOps(username: string, date?: string): Operation[];
2281
+
1932
2282
  /**
1933
- * Builds multiple Ecency point transfer operations for multiple recipients.
1934
- * @param sender - Sender account
1935
- * @param destinations - Comma or space separated list of recipients
1936
- * @param amount - Amount to transfer
1937
- * @param memo - Transfer memo
1938
- * @returns Array of custom JSON operations for point transfers
2283
+ * Governance Operations
2284
+ * Operations for witness voting, proposals, and proxy management
1939
2285
  */
1940
- declare function buildMultiPointTransferOps(sender: string, destinations: string, amount: string, memo: string): Operation[];
1941
2286
  /**
1942
- * Builds an Ecency community rewards registration operation (custom_json).
1943
- * @param name - Account name to register
1944
- * @returns Custom JSON operation for community registration
2287
+ * Builds an account witness vote operation.
2288
+ * @param account - Account voting
2289
+ * @param witness - Witness account name
2290
+ * @param approve - True to approve, false to disapprove
2291
+ * @returns Account witness vote operation
1945
2292
  */
1946
- declare function buildCommunityRegistrationOp(name: string): Operation;
2293
+ declare function buildWitnessVoteOp(account: string, witness: string, approve: boolean): Operation;
1947
2294
  /**
1948
- * Builds a generic active authority custom_json operation.
1949
- * Used for various Ecency operations that require active authority.
1950
- * @param username - Account performing the operation
1951
- * @param operationId - Custom JSON operation ID
1952
- * @param json - JSON payload
1953
- * @returns Custom JSON operation with active authority
2295
+ * Builds an account witness proxy operation.
2296
+ * @param account - Account setting proxy
2297
+ * @param proxy - Proxy account name (empty string to remove proxy)
2298
+ * @returns Account witness proxy operation
1954
2299
  */
1955
- declare function buildActiveCustomJsonOp(username: string, operationId: string, json: Record<string, any>): Operation;
2300
+ declare function buildWitnessProxyOp(account: string, proxy: string): Operation;
1956
2301
  /**
1957
- * Builds a generic posting authority custom_json operation.
1958
- * Used for various operations that require posting authority.
1959
- * @param username - Account performing the operation
1960
- * @param operationId - Custom JSON operation ID
1961
- * @param json - JSON payload
1962
- * @returns Custom JSON operation with posting authority
2302
+ * Payload for proposal creation
1963
2303
  */
1964
- declare function buildPostingCustomJsonOp(username: string, operationId: string, json: Record<string, any> | any[]): Operation;
1965
-
1966
- interface GrantPostingPermissionPayload {
1967
- currentPosting: Authority;
1968
- grantedAccount: string;
1969
- weightThreshold: number;
1970
- memoKey: string;
1971
- jsonMetadata: string;
2304
+ interface ProposalCreatePayload {
2305
+ receiver: string;
2306
+ subject: string;
2307
+ permlink: string;
2308
+ start: string;
2309
+ end: string;
2310
+ dailyPay: string;
1972
2311
  }
1973
- declare function useGrantPostingPermission(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, GrantPostingPermissionPayload, unknown>;
2312
+ /**
2313
+ * Builds a create proposal operation.
2314
+ * @param creator - Account creating the proposal
2315
+ * @param payload - Proposal details (must include start, end, and dailyPay)
2316
+ * @returns Create proposal operation
2317
+ */
2318
+ declare function buildProposalCreateOp(creator: string, payload: ProposalCreatePayload): Operation;
2319
+ /**
2320
+ * Builds an update proposal votes operation.
2321
+ * @param voter - Account voting
2322
+ * @param proposalIds - Array of proposal IDs
2323
+ * @param approve - True to approve, false to disapprove
2324
+ * @returns Update proposal votes operation
2325
+ */
2326
+ declare function buildProposalVoteOp(voter: string, proposalIds: number[], approve: boolean): Operation;
2327
+ /**
2328
+ * Builds a remove proposal operation.
2329
+ * @param proposalOwner - Owner of the proposal
2330
+ * @param proposalIds - Array of proposal IDs to remove
2331
+ * @returns Remove proposal operation
2332
+ */
2333
+ declare function buildRemoveProposalOp(proposalOwner: string, proposalIds: number[]): Operation;
2334
+ /**
2335
+ * Builds an update proposal operation.
2336
+ * @param proposalId - Proposal ID to update (must be a valid number, including 0)
2337
+ * @param creator - Account that created the proposal
2338
+ * @param dailyPay - New daily pay amount
2339
+ * @param subject - New subject
2340
+ * @param permlink - New permlink
2341
+ * @returns Update proposal operation
2342
+ */
2343
+ declare function buildUpdateProposalOp(proposalId: number, creator: string, dailyPay: string, subject: string, permlink: string): Operation;
1974
2344
 
1975
- interface CreateAccountPayload {
1976
- newAccountName: string;
1977
- keys: AccountKeys;
1978
- fee: string;
1979
- /** If true, uses a claimed account token instead of paying the fee */
1980
- useClaimed?: boolean;
2345
+ /**
2346
+ * Community Operations
2347
+ * Operations for managing Hive communities
2348
+ */
2349
+ /**
2350
+ * Builds a subscribe to community operation (custom_json).
2351
+ * @param username - Account subscribing
2352
+ * @param community - Community name (e.g., "hive-123456")
2353
+ * @returns Custom JSON operation for subscribe
2354
+ */
2355
+ declare function buildSubscribeOp(username: string, community: string): Operation;
2356
+ /**
2357
+ * Builds an unsubscribe from community operation (custom_json).
2358
+ * @param username - Account unsubscribing
2359
+ * @param community - Community name (e.g., "hive-123456")
2360
+ * @returns Custom JSON operation for unsubscribe
2361
+ */
2362
+ declare function buildUnsubscribeOp(username: string, community: string): Operation;
2363
+ /**
2364
+ * Builds a set user role in community operation (custom_json).
2365
+ * @param username - Account setting the role (must have permission)
2366
+ * @param community - Community name (e.g., "hive-123456")
2367
+ * @param account - Account to set role for
2368
+ * @param role - Role name (e.g., "admin", "mod", "member", "guest")
2369
+ * @returns Custom JSON operation for setRole
2370
+ */
2371
+ declare function buildSetRoleOp(username: string, community: string, account: string, role: string): Operation;
2372
+ /**
2373
+ * Community properties for update
2374
+ */
2375
+ interface CommunityProps {
2376
+ title: string;
2377
+ about: string;
2378
+ lang: string;
2379
+ description: string;
2380
+ flag_text: string;
2381
+ is_nsfw: boolean;
1981
2382
  }
1982
- declare function useCreateAccount(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, CreateAccountPayload, unknown>;
1983
-
1984
- declare function getAccountFullQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
1985
- name: any;
1986
- owner: any;
1987
- active: any;
1988
- posting: any;
1989
- memo_key: any;
1990
- post_count: any;
1991
- created: any;
1992
- posting_json_metadata: any;
1993
- last_vote_time: any;
1994
- last_post: any;
1995
- json_metadata: any;
1996
- reward_hive_balance: any;
1997
- reward_hbd_balance: any;
1998
- reward_vesting_hive: any;
1999
- reward_vesting_balance: any;
2000
- balance: any;
2001
- hbd_balance: any;
2002
- savings_balance: any;
2003
- savings_hbd_balance: any;
2004
- savings_hbd_last_interest_payment: any;
2005
- savings_hbd_seconds_last_update: any;
2006
- savings_hbd_seconds: any;
2007
- next_vesting_withdrawal: any;
2008
- pending_claimed_accounts: any;
2009
- vesting_shares: any;
2010
- delegated_vesting_shares: any;
2011
- received_vesting_shares: any;
2012
- vesting_withdraw_rate: any;
2013
- to_withdraw: any;
2014
- withdrawn: any;
2015
- witness_votes: any;
2016
- proxy: any;
2017
- recovery_account: any;
2018
- proxied_vsf_votes: any;
2019
- voting_manabar: any;
2020
- voting_power: any;
2021
- downvote_manabar: any;
2022
- follow_stats: AccountFollowStats | undefined;
2023
- reputation: number;
2024
- profile: AccountProfile;
2025
- }, Error, {
2026
- name: any;
2027
- owner: any;
2028
- active: any;
2029
- posting: any;
2030
- memo_key: any;
2031
- post_count: any;
2032
- created: any;
2033
- posting_json_metadata: any;
2034
- last_vote_time: any;
2035
- last_post: any;
2036
- json_metadata: any;
2037
- reward_hive_balance: any;
2038
- reward_hbd_balance: any;
2039
- reward_vesting_hive: any;
2040
- reward_vesting_balance: any;
2041
- balance: any;
2042
- hbd_balance: any;
2043
- savings_balance: any;
2044
- savings_hbd_balance: any;
2045
- savings_hbd_last_interest_payment: any;
2046
- savings_hbd_seconds_last_update: any;
2047
- savings_hbd_seconds: any;
2048
- next_vesting_withdrawal: any;
2049
- pending_claimed_accounts: any;
2050
- vesting_shares: any;
2051
- delegated_vesting_shares: any;
2052
- received_vesting_shares: any;
2053
- vesting_withdraw_rate: any;
2054
- to_withdraw: any;
2055
- withdrawn: any;
2056
- witness_votes: any;
2057
- proxy: any;
2058
- recovery_account: any;
2059
- proxied_vsf_votes: any;
2060
- voting_manabar: any;
2061
- voting_power: any;
2062
- downvote_manabar: any;
2063
- follow_stats: AccountFollowStats | undefined;
2064
- reputation: number;
2065
- profile: AccountProfile;
2066
- }, (string | undefined)[]>, "queryFn"> & {
2067
- queryFn?: _tanstack_react_query.QueryFunction<{
2068
- name: any;
2069
- owner: any;
2070
- active: any;
2071
- posting: any;
2072
- memo_key: any;
2073
- post_count: any;
2074
- created: any;
2075
- posting_json_metadata: any;
2076
- last_vote_time: any;
2077
- last_post: any;
2078
- json_metadata: any;
2079
- reward_hive_balance: any;
2080
- reward_hbd_balance: any;
2081
- reward_vesting_hive: any;
2082
- reward_vesting_balance: any;
2083
- balance: any;
2084
- hbd_balance: any;
2085
- savings_balance: any;
2086
- savings_hbd_balance: any;
2087
- savings_hbd_last_interest_payment: any;
2088
- savings_hbd_seconds_last_update: any;
2089
- savings_hbd_seconds: any;
2090
- next_vesting_withdrawal: any;
2091
- pending_claimed_accounts: any;
2092
- vesting_shares: any;
2093
- delegated_vesting_shares: any;
2094
- received_vesting_shares: any;
2095
- vesting_withdraw_rate: any;
2096
- to_withdraw: any;
2097
- withdrawn: any;
2098
- witness_votes: any;
2099
- proxy: any;
2100
- recovery_account: any;
2101
- proxied_vsf_votes: any;
2102
- voting_manabar: any;
2103
- voting_power: any;
2104
- downvote_manabar: any;
2105
- follow_stats: AccountFollowStats | undefined;
2106
- reputation: number;
2107
- profile: AccountProfile;
2108
- }, (string | undefined)[], never> | undefined;
2109
- } & {
2110
- queryKey: (string | undefined)[] & {
2111
- [dataTagSymbol]: {
2112
- name: any;
2113
- owner: any;
2114
- active: any;
2115
- posting: any;
2116
- memo_key: any;
2117
- post_count: any;
2118
- created: any;
2119
- posting_json_metadata: any;
2120
- last_vote_time: any;
2121
- last_post: any;
2122
- json_metadata: any;
2123
- reward_hive_balance: any;
2124
- reward_hbd_balance: any;
2125
- reward_vesting_hive: any;
2126
- reward_vesting_balance: any;
2127
- balance: any;
2128
- hbd_balance: any;
2129
- savings_balance: any;
2130
- savings_hbd_balance: any;
2131
- savings_hbd_last_interest_payment: any;
2132
- savings_hbd_seconds_last_update: any;
2133
- savings_hbd_seconds: any;
2134
- next_vesting_withdrawal: any;
2135
- pending_claimed_accounts: any;
2136
- vesting_shares: any;
2137
- delegated_vesting_shares: any;
2138
- received_vesting_shares: any;
2139
- vesting_withdraw_rate: any;
2140
- to_withdraw: any;
2141
- withdrawn: any;
2142
- witness_votes: any;
2143
- proxy: any;
2144
- recovery_account: any;
2145
- proxied_vsf_votes: any;
2146
- voting_manabar: any;
2147
- voting_power: any;
2148
- downvote_manabar: any;
2149
- follow_stats: AccountFollowStats | undefined;
2150
- reputation: number;
2151
- profile: AccountProfile;
2152
- };
2153
- [dataTagErrorSymbol]: Error;
2154
- };
2155
- };
2156
-
2157
- declare function getAccountsQueryOptions(usernames: string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<FullAccount[], Error, FullAccount[], string[]>, "queryFn"> & {
2158
- queryFn?: _tanstack_react_query.QueryFunction<FullAccount[], string[], never> | undefined;
2159
- } & {
2160
- queryKey: string[] & {
2161
- [dataTagSymbol]: FullAccount[];
2162
- [dataTagErrorSymbol]: Error;
2163
- };
2164
- };
2383
+ /**
2384
+ * Builds an update community properties operation (custom_json).
2385
+ * @param username - Account updating (must be community admin)
2386
+ * @param community - Community name (e.g., "hive-123456")
2387
+ * @param props - Properties to update
2388
+ * @returns Custom JSON operation for updateProps
2389
+ */
2390
+ declare function buildUpdateCommunityOp(username: string, community: string, props: CommunityProps): Operation;
2391
+ /**
2392
+ * Builds a pin/unpin post in community operation (custom_json).
2393
+ * @param username - Account pinning (must have permission)
2394
+ * @param community - Community name (e.g., "hive-123456")
2395
+ * @param account - Post author
2396
+ * @param permlink - Post permlink
2397
+ * @param pin - True to pin, false to unpin
2398
+ * @returns Custom JSON operation for pinPost/unpinPost
2399
+ */
2400
+ declare function buildPinPostOp(username: string, community: string, account: string, permlink: string, pin: boolean): Operation;
2401
+ /**
2402
+ * Builds a mute/unmute post in community operation (custom_json).
2403
+ * @param username - Account muting (must have permission)
2404
+ * @param community - Community name (e.g., "hive-123456")
2405
+ * @param account - Post author
2406
+ * @param permlink - Post permlink
2407
+ * @param notes - Mute reason/notes
2408
+ * @param mute - True to mute, false to unmute
2409
+ * @returns Custom JSON operation for mutePost/unmutePost
2410
+ */
2411
+ declare function buildMutePostOp(username: string, community: string, account: string, permlink: string, notes: string, mute: boolean): Operation;
2412
+ /**
2413
+ * Builds a mute/unmute user in community operation (custom_json).
2414
+ * @param username - Account performing mute (must have permission)
2415
+ * @param community - Community name (e.g., "hive-123456")
2416
+ * @param account - Account to mute/unmute
2417
+ * @param notes - Mute reason/notes
2418
+ * @param mute - True to mute, false to unmute
2419
+ * @returns Custom JSON operation for muteUser/unmuteUser
2420
+ */
2421
+ declare function buildMuteUserOp(username: string, community: string, account: string, notes: string, mute: boolean): Operation;
2422
+ /**
2423
+ * Builds a flag post in community operation (custom_json).
2424
+ * @param username - Account flagging
2425
+ * @param community - Community name (e.g., "hive-123456")
2426
+ * @param account - Post author
2427
+ * @param permlink - Post permlink
2428
+ * @param notes - Flag reason/notes
2429
+ * @returns Custom JSON operation for flagPost
2430
+ */
2431
+ declare function buildFlagPostOp(username: string, community: string, account: string, permlink: string, notes: string): Operation;
2165
2432
 
2166
2433
  /**
2167
- * Get follow count (followers and following) for an account
2434
+ * Market Operations
2435
+ * Operations for trading on the internal Hive market
2168
2436
  */
2169
- declare function getFollowCountQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountFollowStats, Error, AccountFollowStats, string[]>, "queryFn"> & {
2170
- queryFn?: _tanstack_react_query.QueryFunction<AccountFollowStats, string[], never> | undefined;
2171
- } & {
2172
- queryKey: string[] & {
2173
- [dataTagSymbol]: AccountFollowStats;
2174
- [dataTagErrorSymbol]: Error;
2175
- };
2176
- };
2177
-
2178
2437
  /**
2179
- * Get list of accounts following a user
2180
- *
2181
- * @param following - The account being followed
2182
- * @param startFollower - Pagination start point (account name)
2183
- * @param followType - Type of follow relationship (default: "blog")
2184
- * @param limit - Maximum number of results (default: 100)
2438
+ * Transaction type for buy/sell operations
2185
2439
  */
2186
- declare function getFollowersQueryOptions(following: string | undefined, startFollower: string, followType?: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Follow[], Error, Follow[], (string | number)[]>, "queryFn"> & {
2187
- queryFn?: _tanstack_react_query.QueryFunction<Follow[], (string | number)[], never> | undefined;
2188
- } & {
2189
- queryKey: (string | number)[] & {
2190
- [dataTagSymbol]: Follow[];
2191
- [dataTagErrorSymbol]: Error;
2192
- };
2193
- };
2194
-
2440
+ declare enum BuySellTransactionType {
2441
+ Buy = "buy",
2442
+ Sell = "sell"
2443
+ }
2195
2444
  /**
2196
- * Get list of accounts that a user is following
2197
- *
2198
- * @param follower - The account doing the following
2199
- * @param startFollowing - Pagination start point (account name)
2200
- * @param followType - Type of follow relationship (default: "blog")
2201
- * @param limit - Maximum number of results (default: 100)
2445
+ * Order ID prefix for different order types
2202
2446
  */
2203
- declare function getFollowingQueryOptions(follower: string, startFollowing: string, followType?: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Follow[], Error, Follow[], (string | number)[]>, "queryFn"> & {
2204
- queryFn?: _tanstack_react_query.QueryFunction<Follow[], (string | number)[], never> | undefined;
2205
- } & {
2206
- queryKey: (string | number)[] & {
2207
- [dataTagSymbol]: Follow[];
2208
- [dataTagErrorSymbol]: Error;
2209
- };
2210
- };
2211
-
2447
+ declare enum OrderIdPrefix {
2448
+ EMPTY = "",
2449
+ SWAP = "9"
2450
+ }
2212
2451
  /**
2213
- * Get list of users that an account has muted
2214
- *
2215
- * @param username - The account username
2216
- * @param limit - Maximum number of results (default: 100)
2452
+ * Builds a limit order create operation.
2453
+ * @param owner - Account creating the order
2454
+ * @param amountToSell - Amount and asset to sell
2455
+ * @param minToReceive - Minimum amount and asset to receive
2456
+ * @param fillOrKill - If true, order must be filled immediately or cancelled
2457
+ * @param expiration - Expiration date (ISO string)
2458
+ * @param orderId - Unique order ID
2459
+ * @returns Limit order create operation
2217
2460
  */
2218
- declare function getMutedUsersQueryOptions(username: string | undefined, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string[], Error, string[], string[]>, "queryFn"> & {
2219
- queryFn?: _tanstack_react_query.QueryFunction<string[], string[], never> | undefined;
2220
- } & {
2221
- queryKey: string[] & {
2222
- [dataTagSymbol]: string[];
2223
- [dataTagErrorSymbol]: Error;
2224
- };
2225
- };
2226
-
2461
+ declare function buildLimitOrderCreateOp(owner: string, amountToSell: string, minToReceive: string, fillOrKill: boolean, expiration: string, orderId: number): Operation;
2227
2462
  /**
2228
- * Lookup accounts by username prefix
2463
+ * Builds a limit order create operation with automatic formatting.
2464
+ * This is a convenience method that handles buy/sell logic and formatting.
2229
2465
  *
2230
- * @param query - Username prefix to search for
2231
- * @param limit - Maximum number of results (default: 50)
2466
+ * For Buy orders: You're buying HIVE with HBD
2467
+ * - amountToSell: HBD amount you're spending
2468
+ * - minToReceive: HIVE amount you want to receive
2469
+ *
2470
+ * For Sell orders: You're selling HIVE for HBD
2471
+ * - amountToSell: HIVE amount you're selling
2472
+ * - minToReceive: HBD amount you want to receive
2473
+ *
2474
+ * @param owner - Account creating the order
2475
+ * @param amountToSell - Amount to sell (number)
2476
+ * @param minToReceive - Minimum to receive (number)
2477
+ * @param orderType - Buy or Sell
2478
+ * @param idPrefix - Order ID prefix
2479
+ * @returns Limit order create operation
2232
2480
  */
2233
- declare function lookupAccountsQueryOptions(query: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string[], Error, string[], (string | number)[]>, "queryFn"> & {
2234
- queryFn?: _tanstack_react_query.QueryFunction<string[], (string | number)[], never> | undefined;
2235
- } & {
2236
- queryKey: (string | number)[] & {
2237
- [dataTagSymbol]: string[];
2238
- [dataTagErrorSymbol]: Error;
2239
- };
2240
- };
2481
+ declare function buildLimitOrderCreateOpWithType(owner: string, amountToSell: number, minToReceive: number, orderType: BuySellTransactionType, idPrefix?: OrderIdPrefix): Operation;
2482
+ /**
2483
+ * Builds a limit order cancel operation.
2484
+ * @param owner - Account cancelling the order
2485
+ * @param orderId - Order ID to cancel
2486
+ * @returns Limit order cancel operation
2487
+ */
2488
+ declare function buildLimitOrderCancelOp(owner: string, orderId: number): Operation;
2489
+ /**
2490
+ * Builds a claim reward balance operation.
2491
+ * @param account - Account claiming rewards
2492
+ * @param rewardHive - HIVE reward to claim (e.g., "0.000 HIVE")
2493
+ * @param rewardHbd - HBD reward to claim (e.g., "0.000 HBD")
2494
+ * @param rewardVests - VESTS reward to claim (e.g., "0.000000 VESTS")
2495
+ * @returns Claim reward balance operation
2496
+ */
2497
+ declare function buildClaimRewardBalanceOp(account: string, rewardHive: string, rewardHbd: string, rewardVests: string): Operation;
2241
2498
 
2242
- declare function getSearchAccountsByUsernameQueryOptions(query: string, limit?: number, excludeList?: string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string[], Error, string[], (string | string[] | undefined)[]>, "queryFn"> & {
2243
- queryFn?: _tanstack_react_query.QueryFunction<string[], (string | string[] | undefined)[], never> | undefined;
2244
- } & {
2245
- queryKey: (string | string[] | undefined)[] & {
2246
- [dataTagSymbol]: string[];
2247
- [dataTagErrorSymbol]: Error;
2248
- };
2249
- };
2250
-
2251
- type AccountProfileToken = NonNullable<AccountProfile["tokens"]>[number];
2252
- type WalletMetadataCandidate = Partial<AccountProfileToken> & {
2253
- currency?: string;
2254
- show?: boolean;
2255
- address?: string;
2256
- publicKey?: string;
2257
- privateKey?: string;
2258
- username?: string;
2259
- };
2260
- interface CheckUsernameWalletsPendingResponse {
2261
- exist: boolean;
2262
- tokens?: WalletMetadataCandidate[];
2263
- wallets?: WalletMetadataCandidate[];
2499
+ /**
2500
+ * Account Operations
2501
+ * Operations for managing accounts, keys, and permissions
2502
+ */
2503
+ /**
2504
+ * Authority structure for account operations
2505
+ */
2506
+ interface Authority {
2507
+ weight_threshold: number;
2508
+ account_auths: [string, number][];
2509
+ key_auths: [string, number][];
2264
2510
  }
2265
- declare function checkUsernameWalletsPendingQueryOptions(username: string, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CheckUsernameWalletsPendingResponse, Error, CheckUsernameWalletsPendingResponse, readonly unknown[]>, "queryFn"> & {
2266
- queryFn?: _tanstack_react_query.QueryFunction<CheckUsernameWalletsPendingResponse, readonly unknown[], never> | undefined;
2267
- } & {
2268
- queryKey: readonly unknown[] & {
2269
- [dataTagSymbol]: CheckUsernameWalletsPendingResponse;
2270
- [dataTagErrorSymbol]: Error;
2271
- };
2272
- };
2273
-
2274
- declare function getRelationshipBetweenAccountsQueryOptions(reference: string, target: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountRelationship, Error, AccountRelationship, string[]>, "queryFn"> & {
2275
- queryFn?: _tanstack_react_query.QueryFunction<AccountRelationship, string[], never> | undefined;
2276
- } & {
2277
- queryKey: string[] & {
2278
- [dataTagSymbol]: AccountRelationship;
2279
- [dataTagErrorSymbol]: Error;
2280
- };
2281
- };
2282
-
2283
- type Subscriptions = string[];
2284
- declare function getAccountSubscriptionsQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Subscriptions, Error, Subscriptions, string[]>, "queryFn"> & {
2285
- queryFn?: _tanstack_react_query.QueryFunction<Subscriptions, string[], never> | undefined;
2286
- } & {
2287
- queryKey: string[] & {
2288
- [dataTagSymbol]: Subscriptions;
2289
- [dataTagErrorSymbol]: Error;
2290
- };
2291
- };
2292
-
2293
2511
  /**
2294
- * Authority levels for Hive blockchain operations.
2295
- * - posting: Social operations (voting, commenting, reblogging)
2296
- * - active: Financial and account management operations
2297
- * - owner: Critical security operations (key changes, account recovery)
2298
- * - memo: Memo encryption/decryption (rarely used for signing)
2512
+ * Builds an account update operation.
2513
+ * @param account - Account name
2514
+ * @param owner - Owner authority (optional)
2515
+ * @param active - Active authority (optional)
2516
+ * @param posting - Posting authority (optional)
2517
+ * @param memoKey - Memo public key
2518
+ * @param jsonMetadata - Account JSON metadata
2519
+ * @returns Account update operation
2299
2520
  */
2300
- type AuthorityLevel = 'posting' | 'active' | 'owner' | 'memo';
2521
+ declare function buildAccountUpdateOp(account: string, owner: Authority | undefined, active: Authority | undefined, posting: Authority | undefined, memoKey: string, jsonMetadata: string): Operation;
2301
2522
  /**
2302
- * Maps operation types to their required authority level.
2303
- *
2304
- * This mapping is used to determine which key is needed to sign a transaction,
2305
- * enabling smart auth fallback and auth upgrade UI.
2306
- *
2307
- * @remarks
2308
- * - Most social operations (vote, comment, reblog) require posting authority
2309
- * - Financial operations (transfer, withdraw) require active authority
2310
- * - Account management operations require active authority
2311
- * - Security operations (password change, account recovery) require owner authority
2312
- * - custom_json requires dynamic detection based on required_auths vs required_posting_auths
2523
+ * Builds an account update2 operation (for posting_json_metadata).
2524
+ * @param account - Account name
2525
+ * @param jsonMetadata - Account JSON metadata (legacy, usually empty)
2526
+ * @param postingJsonMetadata - Posting JSON metadata string
2527
+ * @param extensions - Extensions array
2528
+ * @returns Account update2 operation
2313
2529
  */
2314
- declare const OPERATION_AUTHORITY_MAP: Record<string, AuthorityLevel>;
2530
+ declare function buildAccountUpdate2Op(account: string, jsonMetadata: string, postingJsonMetadata: string, extensions: any[]): Operation;
2315
2531
  /**
2316
- * Determines authority required for a custom_json operation.
2317
- *
2318
- * Custom JSON operations can require either posting or active authority
2319
- * depending on which field is populated:
2320
- * - required_auths (active authority)
2321
- * - required_posting_auths (posting authority)
2322
- *
2323
- * @param customJsonOp - The custom_json operation to inspect
2324
- * @returns 'active' if requires active authority, 'posting' if requires posting authority
2325
- *
2326
- * @example
2327
- * ```typescript
2328
- * // Reblog operation (posting authority)
2329
- * const reblogOp: Operation = ['custom_json', {
2330
- * required_auths: [],
2331
- * required_posting_auths: ['alice'],
2332
- * id: 'reblog',
2333
- * json: '...'
2334
- * }];
2335
- * getCustomJsonAuthority(reblogOp); // Returns 'posting'
2336
- *
2337
- * // Some active authority custom_json
2338
- * const activeOp: Operation = ['custom_json', {
2339
- * required_auths: ['alice'],
2340
- * required_posting_auths: [],
2341
- * id: 'some_active_op',
2342
- * json: '...'
2343
- * }];
2344
- * getCustomJsonAuthority(activeOp); // Returns 'active'
2345
- * ```
2532
+ * Public keys for account creation
2346
2533
  */
2347
- declare function getCustomJsonAuthority(customJsonOp: Operation): AuthorityLevel;
2534
+ interface AccountKeys {
2535
+ ownerPublicKey: string;
2536
+ activePublicKey: string;
2537
+ postingPublicKey: string;
2538
+ memoPublicKey: string;
2539
+ }
2348
2540
  /**
2349
- * Determines authority required for a proposal operation.
2350
- *
2351
- * Proposal operations (create_proposal, update_proposal) typically require
2352
- * active authority as they involve financial commitments and funding allocations.
2353
- *
2354
- * @param proposalOp - The proposal operation to inspect
2355
- * @returns 'active' authority requirement
2356
- *
2357
- * @remarks
2358
- * Unlike custom_json, proposal operations don't have explicit required_auths fields.
2359
- * They always use the creator's authority, which defaults to active for financial
2360
- * operations involving the DAO treasury.
2361
- *
2362
- * @example
2363
- * ```typescript
2364
- * const proposalOp: Operation = ['create_proposal', {
2365
- * creator: 'alice',
2366
- * receiver: 'bob',
2367
- * subject: 'My Proposal',
2368
- * permlink: 'my-proposal',
2369
- * start: '2026-03-01T00:00:00',
2370
- * end: '2026-04-01T00:00:00',
2371
- * daily_pay: '100.000 HBD',
2372
- * extensions: []
2373
- * }];
2374
- * getProposalAuthority(proposalOp); // Returns 'active'
2375
- * ```
2541
+ * Builds an account create operation.
2542
+ * @param creator - Creator account name
2543
+ * @param newAccountName - New account name
2544
+ * @param keys - Public keys for the new account
2545
+ * @param fee - Creation fee (e.g., "3.000 HIVE")
2546
+ * @returns Account create operation
2376
2547
  */
2377
- declare function getProposalAuthority(proposalOp: Operation): AuthorityLevel;
2548
+ declare function buildAccountCreateOp(creator: string, newAccountName: string, keys: AccountKeys, fee: string): Operation;
2378
2549
  /**
2379
- * Determines the required authority level for any operation.
2380
- *
2381
- * Uses the OPERATION_AUTHORITY_MAP for standard operations, and dynamic
2382
- * detection for custom_json operations.
2383
- *
2384
- * @param op - The operation to check
2385
- * @returns 'posting' or 'active' authority requirement
2386
- *
2387
- * @example
2388
- * ```typescript
2389
- * const voteOp: Operation = ['vote', { voter: 'alice', author: 'bob', permlink: 'post', weight: 10000 }];
2390
- * getOperationAuthority(voteOp); // Returns 'posting'
2391
- *
2392
- * const transferOp: Operation = ['transfer', { from: 'alice', to: 'bob', amount: '1.000 HIVE', memo: '' }];
2393
- * getOperationAuthority(transferOp); // Returns 'active'
2394
- * ```
2550
+ * Builds a create claimed account operation (using account creation tokens).
2551
+ * @param creator - Creator account name
2552
+ * @param newAccountName - New account name
2553
+ * @param keys - Public keys for the new account
2554
+ * @returns Create claimed account operation
2395
2555
  */
2396
- declare function getOperationAuthority(op: Operation): AuthorityLevel;
2556
+ declare function buildCreateClaimedAccountOp(creator: string, newAccountName: string, keys: AccountKeys): Operation;
2397
2557
  /**
2398
- * Determines the highest authority level required for a list of operations.
2399
- *
2400
- * Useful when broadcasting multiple operations together - the highest authority
2401
- * level required by any operation determines what key is needed for the batch.
2402
- *
2403
- * Authority hierarchy: owner > active > posting > memo
2404
- *
2405
- * @param ops - Array of operations
2406
- * @returns Highest authority level required ('owner', 'active', or 'posting')
2407
- *
2408
- * @example
2409
- * ```typescript
2410
- * const ops: Operation[] = [
2411
- * ['vote', { ... }], // posting
2412
- * ['comment', { ... }], // posting
2413
- * ];
2414
- * getRequiredAuthority(ops); // Returns 'posting'
2415
- *
2416
- * const mixedOps: Operation[] = [
2417
- * ['comment', { ... }], // posting
2418
- * ['transfer', { ... }], // active
2419
- * ];
2420
- * getRequiredAuthority(mixedOps); // Returns 'active'
2421
- *
2422
- * const securityOps: Operation[] = [
2423
- * ['transfer', { ... }], // active
2424
- * ['change_recovery_account', { ... }], // owner
2425
- * ];
2426
- * getRequiredAuthority(securityOps); // Returns 'owner'
2427
- * ```
2558
+ * Builds a claim account operation.
2559
+ * @param creator - Account claiming the token
2560
+ * @param fee - Fee for claiming (usually "0.000 HIVE" for RC-based claims)
2561
+ * @returns Claim account operation
2428
2562
  */
2429
- declare function getRequiredAuthority(ops: Operation[]): AuthorityLevel;
2430
-
2563
+ declare function buildClaimAccountOp(creator: string, fee: string): Operation;
2431
2564
  /**
2432
- * React Query mutation hook for broadcasting Hive operations.
2433
- * Supports multiple authentication methods with automatic fallback.
2434
- *
2435
- * @template T - Type of the mutation payload
2436
- * @param mutationKey - React Query mutation key for cache management
2437
- * @param username - Hive username (required for broadcast)
2438
- * @param operations - Function that converts payload to Hive operations
2439
- * @param onSuccess - Success callback after broadcast completes
2440
- * @param auth - Authentication context (supports both legacy AuthContext and new AuthContextV2)
2441
- * @param authority - Key authority to use ('posting' | 'active' | 'owner' | 'memo'), defaults to 'posting'
2442
- *
2443
- * @returns React Query mutation result
2444
- *
2445
- * @remarks
2446
- * **Authentication Flow:**
2447
- *
2448
- * 1. **With AuthContextV2 + adapter + enableFallback** (recommended for new code):
2449
- * - Tries auth methods in fallbackChain order
2450
- * - Smart fallback: only retries on auth errors, not RC/network errors
2451
- * - Uses platform adapter for storage, UI, and broadcasting
2452
- *
2453
- * 2. **With legacy AuthContext** (backward compatible):
2454
- * - Tries auth.broadcast() first (custom implementation)
2455
- * - Falls back to postingKey if available
2456
- * - Falls back to accessToken (HiveSigner) if available
2457
- * - Throws if no auth method available
2458
- *
2459
- * **Backward Compatibility:**
2460
- * - All existing code using AuthContext will continue to work
2461
- * - AuthContextV2 extends AuthContext, so it's a drop-in replacement
2462
- * - enableFallback defaults to false if no adapter provided
2463
- *
2464
- * @example
2465
- * ```typescript
2466
- * // New pattern with platform adapter and fallback
2467
- * const mutation = useBroadcastMutation(
2468
- * ['vote'],
2469
- * username,
2470
- * (payload) => [voteOperation(payload)],
2471
- * () => console.log('Success!'),
2472
- * {
2473
- * adapter: myAdapter,
2474
- * enableFallback: true,
2475
- * fallbackChain: ['keychain', 'key', 'hivesigner']
2476
- * },
2477
- * 'posting'
2478
- * );
2479
- *
2480
- * // Legacy pattern (still works)
2481
- * const mutation = useBroadcastMutation(
2482
- * ['vote'],
2483
- * username,
2484
- * (payload) => [voteOperation(payload)],
2485
- * () => console.log('Success!'),
2486
- * { postingKey: 'wif-key' }
2487
- * );
2488
- * ```
2565
+ * Builds an operation to grant posting permission to another account.
2566
+ * Helper that modifies posting authority to add an account.
2567
+ * @param account - Account granting permission
2568
+ * @param currentPosting - Current posting authority
2569
+ * @param grantedAccount - Account to grant permission to
2570
+ * @param weightThreshold - Weight threshold of the granted account
2571
+ * @param memoKey - Memo public key (required by Hive blockchain)
2572
+ * @param jsonMetadata - Account JSON metadata (required by Hive blockchain)
2573
+ * @returns Account update operation with modified posting authority
2489
2574
  */
2490
- declare function useBroadcastMutation<T>(mutationKey: MutationKey | undefined, username: string | undefined, operations: (payload: T) => Operation[], onSuccess?: UseMutationOptions<unknown, Error, T>["onSuccess"], auth?: AuthContextV2, authority?: AuthorityLevel, options?: {
2491
- onMutate?: UseMutationOptions<unknown, Error, T>["onMutate"];
2492
- onError?: UseMutationOptions<unknown, Error, T>["onError"];
2493
- onSettled?: UseMutationOptions<unknown, Error, T>["onSettled"];
2494
- }): _tanstack_react_query.UseMutationResult<unknown, Error, T, unknown>;
2495
-
2496
- declare function broadcastJson<T>(username: string | undefined, id: string, payload: T, auth?: AuthContext): Promise<any>;
2497
-
2498
- declare const CONFIG: {
2499
- privateApiHost: string;
2500
- imageHost: string;
2501
- hiveClient: Client;
2502
- heliusApiKey: string | undefined;
2503
- queryClient: QueryClient;
2504
- plausibleHost: string;
2505
- spkNode: string;
2506
- dmcaAccounts: string[];
2507
- dmcaTags: string[];
2508
- dmcaPatterns: string[];
2509
- dmcaTagRegexes: RegExp[];
2510
- dmcaPatternRegexes: RegExp[];
2511
- _dmcaInitialized: boolean;
2512
- };
2513
- type DmcaListsInput = {
2514
- accounts?: string[];
2515
- tags?: string[];
2516
- posts?: string[];
2517
- };
2518
- declare namespace ConfigManager {
2519
- function setQueryClient(client: QueryClient): void;
2520
- /**
2521
- * Set the private API host
2522
- * @param host - The private API host URL (e.g., "https://ecency.com" or "" for relative URLs)
2523
- */
2524
- function setPrivateApiHost(host: string): void;
2525
- /**
2526
- * Get a validated base URL for API requests
2527
- * Returns a valid base URL that can be used with new URL(path, baseUrl)
2528
- *
2529
- * Priority:
2530
- * 1. CONFIG.privateApiHost if set (dev/staging or explicit config)
2531
- * 2. window.location.origin if in browser (production with relative URLs)
2532
- * 3. 'https://ecency.com' as fallback for SSR (production default)
2533
- *
2534
- * @returns A valid base URL string
2535
- * @throws Never throws - always returns a valid URL
2536
- */
2537
- function getValidatedBaseUrl(): string;
2538
- /**
2539
- * Set the image host
2540
- * @param host - The image host URL (e.g., "https://images.ecency.com")
2541
- */
2542
- function setImageHost(host: string): void;
2543
- /**
2544
- * Set Hive RPC nodes, replacing the default list and creating a new dhive Client.
2545
- * The first node in the array will be used as the primary; others are failover.
2546
- * @param nodes - Array of Hive RPC node URLs
2547
- */
2548
- function setHiveNodes(nodes: string[]): void;
2549
- /**
2550
- * Set DMCA filtering lists
2551
- * @param lists - DMCA lists object containing accounts/tags/posts arrays
2552
- */
2553
- function setDmcaLists(lists?: DmcaListsInput): void;
2554
- }
2555
-
2575
+ declare function buildGrantPostingPermissionOp(account: string, currentPosting: Authority, grantedAccount: string, weightThreshold: number, memoKey: string, jsonMetadata: string): Operation;
2556
2576
  /**
2557
- * Chain error handling utilities
2558
- * Extracted from web's operations.ts and mobile's dhive.ts error handling patterns
2577
+ * Builds an operation to revoke posting permission from an account.
2578
+ * Helper that modifies posting authority to remove an account.
2579
+ * @param account - Account revoking permission
2580
+ * @param currentPosting - Current posting authority
2581
+ * @param revokedAccount - Account to revoke permission from
2582
+ * @param memoKey - Memo public key (required by Hive blockchain)
2583
+ * @param jsonMetadata - Account JSON metadata (required by Hive blockchain)
2584
+ * @returns Account update operation with modified posting authority
2559
2585
  */
2560
- declare enum ErrorType {
2561
- COMMON = "common",
2562
- INFO = "info",
2563
- INSUFFICIENT_RESOURCE_CREDITS = "insufficient_resource_credits",
2564
- MISSING_AUTHORITY = "missing_authority",
2565
- TOKEN_EXPIRED = "token_expired",
2566
- NETWORK = "network",
2567
- TIMEOUT = "timeout",
2568
- VALIDATION = "validation"
2569
- }
2570
- interface ParsedChainError {
2571
- message: string;
2572
- type: ErrorType;
2573
- originalError?: any;
2574
- }
2586
+ declare function buildRevokePostingPermissionOp(account: string, currentPosting: Authority, revokedAccount: string, memoKey: string, jsonMetadata: string): Operation;
2575
2587
  /**
2576
- * Parses Hive blockchain errors into standardized format.
2577
- * Extracted from web's operations.ts and mobile's dhive.ts error handling.
2578
- *
2579
- * @param error - The error object or string from a blockchain operation
2580
- * @returns Parsed error with user-friendly message and categorized type
2581
- *
2582
- * @example
2583
- * ```typescript
2584
- * try {
2585
- * await vote(...);
2586
- * } catch (error) {
2587
- * const parsed = parseChainError(error);
2588
- * console.log(parsed.message); // "Insufficient Resource Credits. Please wait or power up."
2589
- * console.log(parsed.type); // ErrorType.INSUFFICIENT_RESOURCE_CREDITS
2590
- * }
2591
- * ```
2588
+ * Builds a change recovery account operation.
2589
+ * @param accountToRecover - Account to change recovery account for
2590
+ * @param newRecoveryAccount - New recovery account name
2591
+ * @param extensions - Extensions array
2592
+ * @returns Change recovery account operation
2592
2593
  */
2593
- declare function parseChainError(error: any): ParsedChainError;
2594
+ declare function buildChangeRecoveryAccountOp(accountToRecover: string, newRecoveryAccount: string, extensions?: any[]): Operation;
2594
2595
  /**
2595
- * Formats error for display to user.
2596
- * Returns tuple of [message, type] for backward compatibility with existing code.
2597
- *
2598
- * This function maintains compatibility with the old formatError signature from
2599
- * web's operations.ts (line 59-84) and mobile's dhive.ts error handling.
2600
- *
2601
- * @param error - The error object or string
2602
- * @returns Tuple of [user-friendly message, error type]
2603
- *
2604
- * @example
2605
- * ```typescript
2606
- * try {
2607
- * await transfer(...);
2608
- * } catch (error) {
2609
- * const [message, type] = formatError(error);
2610
- * showToast(message, type);
2611
- * }
2612
- * ```
2596
+ * Builds a request account recovery operation.
2597
+ * @param recoveryAccount - Recovery account performing the recovery
2598
+ * @param accountToRecover - Account to recover
2599
+ * @param newOwnerAuthority - New owner authority
2600
+ * @param extensions - Extensions array
2601
+ * @returns Request account recovery operation
2613
2602
  */
2614
- declare function formatError(error: any): [string, ErrorType];
2603
+ declare function buildRequestAccountRecoveryOp(recoveryAccount: string, accountToRecover: string, newOwnerAuthority: Authority, extensions?: any[]): Operation;
2615
2604
  /**
2616
- * Checks if error indicates missing authority and should trigger auth fallback.
2617
- * Used by the SDK's useBroadcastMutation to determine if it should retry with
2618
- * an alternate authentication method.
2619
- *
2620
- * @param error - The error object or string
2621
- * @returns true if auth fallback should be attempted
2622
- *
2623
- * @example
2624
- * ```typescript
2625
- * try {
2626
- * await broadcast(operations);
2627
- * } catch (error) {
2628
- * if (shouldTriggerAuthFallback(error)) {
2629
- * // Try with alternate auth method
2630
- * await broadcastWithHiveAuth(operations);
2631
- * }
2632
- * }
2633
- * ```
2605
+ * Builds a recover account operation.
2606
+ * @param accountToRecover - Account to recover
2607
+ * @param newOwnerAuthority - New owner authority
2608
+ * @param recentOwnerAuthority - Recent owner authority (for proof)
2609
+ * @param extensions - Extensions array
2610
+ * @returns Recover account operation
2634
2611
  */
2635
- declare function shouldTriggerAuthFallback(error: any): boolean;
2612
+ declare function buildRecoverAccountOp(accountToRecover: string, newOwnerAuthority: Authority, recentOwnerAuthority: Authority, extensions?: any[]): Operation;
2613
+
2636
2614
  /**
2637
- * Checks if error is a resource credits (RC) error.
2638
- * Useful for showing specific UI feedback about RC issues.
2639
- *
2640
- * @param error - The error object or string
2641
- * @returns true if the error is related to insufficient RC
2642
- *
2643
- * @example
2644
- * ```typescript
2645
- * try {
2646
- * await vote(...);
2647
- * } catch (error) {
2648
- * if (isResourceCreditsError(error)) {
2649
- * showRCWarning(); // Show specific RC education/power up UI
2650
- * }
2651
- * }
2652
- * ```
2615
+ * Ecency-Specific Operations
2616
+ * Custom operations for Ecency platform features (Points, Boost, Promote, etc.)
2653
2617
  */
2654
- declare function isResourceCreditsError(error: any): boolean;
2655
2618
  /**
2656
- * Checks if error is informational (not critical).
2657
- * Informational errors typically don't need retry logic.
2658
- *
2659
- * @param error - The error object or string
2660
- * @returns true if the error is informational
2619
+ * Builds an Ecency boost operation (custom_json with active authority).
2620
+ * @param user - User account
2621
+ * @param author - Post author
2622
+ * @param permlink - Post permlink
2623
+ * @param amount - Amount to boost (e.g., "1.000 POINT")
2624
+ * @returns Custom JSON operation for boost
2661
2625
  */
2662
- declare function isInfoError(error: any): boolean;
2626
+ declare function buildBoostOp(user: string, author: string, permlink: string, amount: string): Operation;
2663
2627
  /**
2664
- * Checks if error is network-related and should be retried.
2665
- *
2666
- * @param error - The error object or string
2667
- * @returns true if the error is network-related
2628
+ * Builds an Ecency boost operation with numeric point value.
2629
+ * @param user - User account
2630
+ * @param author - Post author
2631
+ * @param permlink - Post permlink
2632
+ * @param points - Points to spend (will be formatted as "X.XXX POINT", must be a valid finite number)
2633
+ * @returns Custom JSON operation for boost
2668
2634
  */
2669
- declare function isNetworkError(error: any): boolean;
2670
-
2671
- declare function makeQueryClient(): QueryClient;
2672
- declare const getQueryClient: () => QueryClient;
2673
- declare namespace EcencyQueriesManager {
2674
- function getQueryData<T>(queryKey: QueryKey): T | undefined;
2675
- function getInfiniteQueryData<T>(queryKey: QueryKey): InfiniteData<T, unknown> | undefined;
2676
- function prefetchQuery<T>(options: UseQueryOptions<T>): Promise<T | undefined>;
2677
- function prefetchInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): Promise<InfiniteData<T, unknown> | undefined>;
2678
- function generateClientServerQuery<T>(options: UseQueryOptions<T>): {
2679
- prefetch: () => Promise<T | undefined>;
2680
- getData: () => T | undefined;
2681
- useClientQuery: () => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<T>, Error>;
2682
- fetchAndGet: () => Promise<T>;
2683
- };
2684
- function generateClientServerInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): {
2685
- prefetch: () => Promise<InfiniteData<T, unknown> | undefined>;
2686
- getData: () => InfiniteData<T, unknown> | undefined;
2687
- useClientQuery: () => _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<T, unknown>, Error>;
2688
- fetchAndGet: () => Promise<InfiniteData<T, P>>;
2689
- };
2690
- }
2635
+ declare function buildBoostOpWithPoints(user: string, author: string, permlink: string, points: number): Operation;
2636
+ /**
2637
+ * Builds an Ecency Boost Plus subscription operation (custom_json).
2638
+ * @param user - User account
2639
+ * @param account - Account to subscribe
2640
+ * @param duration - Subscription duration in days (must be a valid finite number)
2641
+ * @returns Custom JSON operation for boost plus
2642
+ */
2643
+ declare function buildBoostPlusOp(user: string, account: string, duration: number): Operation;
2644
+ /**
2645
+ * Builds an Ecency promote operation (custom_json).
2646
+ * @param user - User account
2647
+ * @param author - Post author
2648
+ * @param permlink - Post permlink
2649
+ * @param duration - Promotion duration in days (must be a valid finite number)
2650
+ * @returns Custom JSON operation for promote
2651
+ */
2652
+ declare function buildPromoteOp(user: string, author: string, permlink: string, duration: number): Operation;
2653
+ /**
2654
+ * Builds an Ecency point transfer operation (custom_json).
2655
+ * @param sender - Sender account
2656
+ * @param receiver - Receiver account
2657
+ * @param amount - Amount to transfer
2658
+ * @param memo - Transfer memo
2659
+ * @returns Custom JSON operation for point transfer
2660
+ */
2661
+ declare function buildPointTransferOp(sender: string, receiver: string, amount: string, memo: string): Operation;
2662
+ /**
2663
+ * Builds multiple Ecency point transfer operations for multiple recipients.
2664
+ * @param sender - Sender account
2665
+ * @param destinations - Comma or space separated list of recipients
2666
+ * @param amount - Amount to transfer
2667
+ * @param memo - Transfer memo
2668
+ * @returns Array of custom JSON operations for point transfers
2669
+ */
2670
+ declare function buildMultiPointTransferOps(sender: string, destinations: string, amount: string, memo: string): Operation[];
2671
+ /**
2672
+ * Builds an Ecency community rewards registration operation (custom_json).
2673
+ * @param name - Account name to register
2674
+ * @returns Custom JSON operation for community registration
2675
+ */
2676
+ declare function buildCommunityRegistrationOp(name: string): Operation;
2677
+ /**
2678
+ * Builds a generic active authority custom_json operation.
2679
+ * Used for various Ecency operations that require active authority.
2680
+ * @param username - Account performing the operation
2681
+ * @param operationId - Custom JSON operation ID
2682
+ * @param json - JSON payload
2683
+ * @returns Custom JSON operation with active authority
2684
+ */
2685
+ declare function buildActiveCustomJsonOp(username: string, operationId: string, json: Record<string, any>): Operation;
2686
+ /**
2687
+ * Builds a generic posting authority custom_json operation.
2688
+ * Used for various operations that require posting authority.
2689
+ * @param username - Account performing the operation
2690
+ * @param operationId - Custom JSON operation ID
2691
+ * @param json - JSON payload
2692
+ * @returns Custom JSON operation with posting authority
2693
+ */
2694
+ declare function buildPostingCustomJsonOp(username: string, operationId: string, json: Record<string, any> | any[]): Operation;
2691
2695
 
2692
- declare function getDynamicPropsQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<DynamicProps$1, Error, DynamicProps$1, string[]>, "queryFn"> & {
2693
- queryFn?: _tanstack_react_query.QueryFunction<DynamicProps$1, string[], never> | undefined;
2694
- } & {
2695
- queryKey: string[] & {
2696
- [dataTagSymbol]: DynamicProps$1;
2697
- [dataTagErrorSymbol]: Error;
2698
- };
2699
- };
2696
+ interface GrantPostingPermissionPayload {
2697
+ currentPosting: Authority;
2698
+ grantedAccount: string;
2699
+ weightThreshold: number;
2700
+ memoKey: string;
2701
+ jsonMetadata: string;
2702
+ }
2703
+ declare function useGrantPostingPermission(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, GrantPostingPermissionPayload, unknown>;
2700
2704
 
2701
- interface RewardFund {
2702
- id: number;
2703
- name: string;
2704
- reward_balance: string;
2705
- recent_claims: string;
2706
- last_update: string;
2707
- content_constant: string;
2708
- percent_curation_rewards: number;
2709
- percent_content_rewards: number;
2710
- author_reward_curve: string;
2711
- curation_reward_curve: string;
2705
+ interface CreateAccountPayload {
2706
+ newAccountName: string;
2707
+ keys: AccountKeys;
2708
+ fee: string;
2709
+ /** If true, uses a claimed account token instead of paying the fee */
2710
+ useClaimed?: boolean;
2712
2711
  }
2713
- /**
2714
- * Get reward fund information from the blockchain
2715
- * @param fundName - Name of the reward fund (default: 'post')
2716
- */
2717
- declare function getRewardFundQueryOptions(fundName?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<RewardFund, Error, RewardFund, string[]>, "queryFn"> & {
2718
- queryFn?: _tanstack_react_query.QueryFunction<RewardFund, string[], never> | undefined;
2719
- } & {
2720
- queryKey: string[] & {
2721
- [dataTagSymbol]: RewardFund;
2722
- [dataTagErrorSymbol]: Error;
2723
- };
2724
- };
2712
+ declare function useCreateAccount(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, CreateAccountPayload, unknown>;
2725
2713
 
2726
- declare const QueryKeys: {
2727
- readonly posts: {
2728
- readonly entry: (entryPath: string) => string[];
2729
- readonly postHeader: (author: string, permlink?: string) => (string | undefined)[];
2730
- readonly content: (author: string, permlink: string) => string[];
2731
- readonly contentReplies: (author: string, permlink: string) => string[];
2732
- readonly accountPosts: (username: string, filter: string, limit: number, observer: string) => (string | number)[];
2733
- readonly accountPostsPage: (username: string, filter: string, startAuthor: string, startPermlink: string, limit: number, observer: string) => (string | number)[];
2734
- readonly userPostVote: (username: string, author: string, permlink: string) => string[];
2735
- readonly reblogs: (username: string, limit: number) => (string | number)[];
2736
- readonly entryActiveVotes: (author?: string, permlink?: string) => (string | undefined)[];
2737
- readonly rebloggedBy: (author: string, permlink: string) => string[];
2738
- readonly tips: (author: string, permlink: string) => string[];
2739
- readonly normalize: (author: string, permlink: string) => string[];
2740
- readonly drafts: (activeUsername?: string) => (string | undefined)[];
2741
- readonly draftsInfinite: (activeUsername?: string, limit?: number) => unknown[];
2742
- readonly schedules: (activeUsername?: string) => (string | undefined)[];
2743
- readonly schedulesInfinite: (activeUsername?: string, limit?: number) => unknown[];
2744
- readonly fragments: (username?: string) => (string | undefined)[];
2745
- readonly fragmentsInfinite: (username?: string, limit?: number) => unknown[];
2746
- readonly images: (username?: string) => (string | undefined)[];
2747
- readonly galleryImages: (activeUsername?: string) => (string | undefined)[];
2748
- readonly imagesInfinite: (username?: string, limit?: number) => unknown[];
2749
- readonly promoted: (type: string) => string[];
2750
- readonly _promotedPrefix: readonly ["posts", "promoted"];
2751
- readonly accountPostsBlogPrefix: (username: string) => readonly ["posts", "account-posts", string, "blog"];
2752
- readonly postsRanked: (sort: string, tag: string, limit: number, observer: string) => (string | number)[];
2753
- readonly postsRankedPage: (sort: string, startAuthor: string, startPermlink: string, limit: number, tag: string, observer: string) => (string | number)[];
2754
- readonly discussions: (author: string, permlink: string, order: string, observer: string) => string[];
2755
- readonly discussion: (author: string, permlink: string, observer: string) => string[];
2756
- readonly deletedEntry: (entryPath: string) => string[];
2757
- readonly commentHistory: (author: string, permlink: string, onlyMeta: boolean) => (string | boolean)[];
2758
- readonly trendingTags: () => string[];
2759
- readonly trendingTagsWithStats: (limit: number) => (string | number)[];
2760
- readonly wavesByHost: (host: string) => string[];
2761
- readonly wavesByTag: (host: string, tag: string) => string[];
2762
- readonly wavesFollowing: (host: string, username: string) => string[];
2763
- readonly wavesTrendingTags: (host: string, hours: number) => (string | number)[];
2764
- readonly wavesByAccount: (host: string, username: string) => string[];
2765
- readonly wavesTrendingAuthors: (host: string) => string[];
2766
- readonly _prefix: readonly ["posts"];
2767
- };
2768
- readonly accounts: {
2769
- readonly full: (username?: string) => (string | undefined)[];
2770
- readonly list: (...usernames: string[]) => string[];
2771
- readonly friends: (following: string, mode: string, followType: string, limit: number) => (string | number)[];
2772
- readonly searchFriends: (username: string, mode: string, query: string) => string[];
2773
- readonly subscriptions: (username: string) => string[];
2774
- readonly followCount: (username: string) => string[];
2775
- readonly recoveries: (username: string) => string[];
2776
- readonly pendingRecovery: (username: string) => string[];
2777
- readonly checkWalletPending: (username: string, code: string | null) => (string | null)[];
2778
- readonly mutedUsers: (username: string) => string[];
2779
- readonly following: (follower: string, startFollowing: string, followType: string, limit: number) => (string | number)[];
2780
- readonly followers: (following: string, startFollower: string, followType: string, limit: number) => (string | number)[];
2781
- readonly search: (query: string, excludeList?: string[]) => (string | string[] | undefined)[];
2782
- readonly profiles: (accounts: string[], observer: string) => (string | string[])[];
2783
- readonly lookup: (query: string, limit: number) => (string | number)[];
2784
- readonly transactions: (username: string, group: string, limit: number) => (string | number)[];
2785
- readonly favorites: (activeUsername?: string) => (string | undefined)[];
2786
- readonly favoritesInfinite: (activeUsername?: string, limit?: number) => unknown[];
2787
- readonly checkFavorite: (activeUsername: string, targetUsername: string) => string[];
2788
- readonly relations: (reference: string, target: string) => string[];
2789
- readonly bots: () => string[];
2790
- readonly voteHistory: (username: string, limit: number) => (string | number)[];
2791
- readonly reputations: (query: string, limit: number) => (string | number)[];
2792
- readonly bookmarks: (activeUsername?: string) => (string | undefined)[];
2793
- readonly bookmarksInfinite: (activeUsername?: string, limit?: number) => unknown[];
2794
- readonly referrals: (username: string) => string[];
2795
- readonly referralsStats: (username: string) => string[];
2796
- readonly _prefix: readonly ["accounts"];
2797
- };
2798
- readonly notifications: {
2799
- readonly announcements: () => string[];
2800
- readonly list: (activeUsername?: string, filter?: string) => (string | undefined)[];
2801
- readonly unreadCount: (activeUsername?: string) => (string | undefined)[];
2802
- readonly settings: (activeUsername?: string) => (string | undefined)[];
2803
- readonly _prefix: readonly ["notifications"];
2804
- };
2805
- readonly core: {
2806
- readonly rewardFund: (fundName: string) => string[];
2807
- readonly dynamicProps: () => string[];
2808
- readonly chainProperties: () => string[];
2809
- readonly _prefix: readonly ["core"];
2810
- };
2811
- readonly communities: {
2812
- readonly single: (name?: string, observer?: string) => (string | undefined)[];
2813
- /** Prefix key for matching all observer variants of a community */
2814
- readonly singlePrefix: (name: string) => readonly ["community", "single", string];
2815
- readonly context: (username: string, communityName: string) => string[];
2816
- readonly rewarded: () => string[];
2817
- readonly list: (sort: string, query: string, limit: number) => (string | number)[];
2818
- readonly subscribers: (communityName: string) => string[];
2819
- readonly accountNotifications: (account: string, limit: number) => (string | number)[];
2820
- };
2821
- readonly proposals: {
2822
- readonly list: () => string[];
2823
- readonly proposal: (id: number) => (string | number)[];
2824
- readonly votes: (proposalId: number, voter: string, limit: number) => (string | number)[];
2825
- readonly votesPrefix: (proposalId: number) => readonly ["proposals", "votes", number];
2826
- readonly votesByUser: (voter: string) => string[];
2827
- };
2828
- readonly search: {
2829
- readonly topics: (q: string, limit: number) => (string | number)[];
2830
- readonly path: (q: string) => string[];
2831
- readonly account: (q: string, limit: number) => (string | number)[];
2832
- readonly results: (q: string, sort: string, hideLow: boolean, since?: string, scrollId?: string, votes?: number) => (string | number | boolean | undefined)[];
2833
- readonly controversialRising: (what: string, tag: string) => string[];
2834
- readonly similarEntries: (author: string, permlink: string, query: string) => string[];
2835
- readonly api: (q: string, sort: string, hideLow: boolean, since?: string, votes?: number) => (string | number | boolean | undefined)[];
2836
- };
2837
- readonly witnesses: {
2838
- readonly list: (limit: number) => (string | number)[];
2839
- readonly votes: (username: string | undefined) => (string | undefined)[];
2840
- readonly proxy: () => string[];
2841
- };
2842
- readonly wallet: {
2843
- readonly outgoingRcDelegations: (username: string, limit: number) => (string | number)[];
2844
- readonly vestingDelegations: (username: string, limit: number) => (string | number)[];
2845
- readonly withdrawRoutes: (account: string) => string[];
2846
- readonly incomingRc: (username: string) => string[];
2847
- readonly conversionRequests: (account: string) => string[];
2848
- readonly receivedVestingShares: (username: string) => string[];
2849
- readonly savingsWithdraw: (account: string) => string[];
2850
- readonly openOrders: (user: string) => string[];
2851
- readonly collateralizedConversionRequests: (account: string) => string[];
2852
- readonly recurrentTransfers: (username: string) => string[];
2853
- readonly portfolio: (username: string, onlyEnabled: string, currency: string) => string[];
2854
- };
2855
- readonly assets: {
2856
- readonly hiveGeneralInfo: (username: string) => string[];
2857
- readonly hiveTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
2858
- readonly hiveWithdrawalRoutes: (username: string) => string[];
2859
- readonly hiveMetrics: (bucketSeconds: number) => (string | number)[];
2860
- readonly hbdGeneralInfo: (username: string) => string[];
2861
- readonly hbdTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
2862
- readonly hivePowerGeneralInfo: (username: string) => string[];
2863
- readonly hivePowerDelegates: (username: string) => string[];
2864
- readonly hivePowerDelegatings: (username: string) => string[];
2865
- readonly hivePowerTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
2866
- readonly pointsGeneralInfo: (username: string) => string[];
2867
- readonly pointsTransactions: (username: string, type: string) => string[];
2868
- readonly ecencyAssetInfo: (username: string, asset: string, currency: string) => string[];
2869
- };
2870
- readonly market: {
2871
- readonly statistics: () => string[];
2872
- readonly orderBook: (limit: number) => (string | number)[];
2873
- readonly history: (seconds: number, startDate: number, endDate: number) => (string | number)[];
2874
- readonly feedHistory: () => string[];
2875
- readonly hiveHbdStats: () => string[];
2876
- readonly data: (coin: string, vsCurrency: string, fromTs: number, toTs: number) => (string | number)[];
2877
- readonly tradeHistory: (limit: number, start: number, end: number) => (string | number)[];
2878
- readonly currentMedianHistoryPrice: () => string[];
2879
- };
2880
- readonly analytics: {
2881
- readonly discoverCuration: (duration: string) => string[];
2882
- readonly pageStats: (url: string, dimensions: string, metrics: string, dateRange: string) => string[];
2883
- readonly discoverLeaderboard: (duration: string) => string[];
2884
- };
2885
- readonly promotions: {
2886
- readonly promotePrice: () => string[];
2887
- readonly boostPlusPrices: () => string[];
2888
- readonly boostPlusAccounts: (account: string) => string[];
2889
- };
2890
- readonly resourceCredits: {
2891
- readonly account: (username: string) => string[];
2892
- readonly stats: () => string[];
2893
- };
2894
- readonly points: {
2895
- readonly points: (username: string, filter: number) => (string | number)[];
2896
- readonly _prefix: (username: string) => string[];
2897
- };
2898
- readonly operations: {
2899
- readonly chainProperties: () => string[];
2900
- };
2901
- readonly games: {
2902
- readonly statusCheck: (gameType: string, username: string) => string[];
2903
- };
2904
- readonly badActors: {
2905
- readonly list: () => string[];
2906
- readonly _prefix: readonly ["bad-actors"];
2907
- };
2908
- readonly ai: {
2909
- readonly prices: () => readonly ["ai", "prices"];
2910
- readonly assistPrices: (username?: string) => readonly ["ai", "assist-prices", string | undefined];
2911
- readonly _prefix: readonly ["ai"];
2714
+ declare function getAccountFullQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
2715
+ name: any;
2716
+ owner: any;
2717
+ active: any;
2718
+ posting: any;
2719
+ memo_key: any;
2720
+ post_count: any;
2721
+ created: any;
2722
+ posting_json_metadata: any;
2723
+ last_vote_time: any;
2724
+ last_post: any;
2725
+ json_metadata: any;
2726
+ reward_hive_balance: any;
2727
+ reward_hbd_balance: any;
2728
+ reward_vesting_hive: any;
2729
+ reward_vesting_balance: any;
2730
+ balance: any;
2731
+ hbd_balance: any;
2732
+ savings_balance: any;
2733
+ savings_hbd_balance: any;
2734
+ savings_hbd_last_interest_payment: any;
2735
+ savings_hbd_seconds_last_update: any;
2736
+ savings_hbd_seconds: any;
2737
+ next_vesting_withdrawal: any;
2738
+ pending_claimed_accounts: any;
2739
+ vesting_shares: any;
2740
+ delegated_vesting_shares: any;
2741
+ received_vesting_shares: any;
2742
+ vesting_withdraw_rate: any;
2743
+ to_withdraw: any;
2744
+ withdrawn: any;
2745
+ witness_votes: any;
2746
+ proxy: any;
2747
+ recovery_account: any;
2748
+ proxied_vsf_votes: any;
2749
+ voting_manabar: any;
2750
+ voting_power: any;
2751
+ downvote_manabar: any;
2752
+ follow_stats: AccountFollowStats | undefined;
2753
+ reputation: number;
2754
+ profile: AccountProfile;
2755
+ }, Error, {
2756
+ name: any;
2757
+ owner: any;
2758
+ active: any;
2759
+ posting: any;
2760
+ memo_key: any;
2761
+ post_count: any;
2762
+ created: any;
2763
+ posting_json_metadata: any;
2764
+ last_vote_time: any;
2765
+ last_post: any;
2766
+ json_metadata: any;
2767
+ reward_hive_balance: any;
2768
+ reward_hbd_balance: any;
2769
+ reward_vesting_hive: any;
2770
+ reward_vesting_balance: any;
2771
+ balance: any;
2772
+ hbd_balance: any;
2773
+ savings_balance: any;
2774
+ savings_hbd_balance: any;
2775
+ savings_hbd_last_interest_payment: any;
2776
+ savings_hbd_seconds_last_update: any;
2777
+ savings_hbd_seconds: any;
2778
+ next_vesting_withdrawal: any;
2779
+ pending_claimed_accounts: any;
2780
+ vesting_shares: any;
2781
+ delegated_vesting_shares: any;
2782
+ received_vesting_shares: any;
2783
+ vesting_withdraw_rate: any;
2784
+ to_withdraw: any;
2785
+ withdrawn: any;
2786
+ witness_votes: any;
2787
+ proxy: any;
2788
+ recovery_account: any;
2789
+ proxied_vsf_votes: any;
2790
+ voting_manabar: any;
2791
+ voting_power: any;
2792
+ downvote_manabar: any;
2793
+ follow_stats: AccountFollowStats | undefined;
2794
+ reputation: number;
2795
+ profile: AccountProfile;
2796
+ }, (string | undefined)[]>, "queryFn"> & {
2797
+ queryFn?: _tanstack_react_query.QueryFunction<{
2798
+ name: any;
2799
+ owner: any;
2800
+ active: any;
2801
+ posting: any;
2802
+ memo_key: any;
2803
+ post_count: any;
2804
+ created: any;
2805
+ posting_json_metadata: any;
2806
+ last_vote_time: any;
2807
+ last_post: any;
2808
+ json_metadata: any;
2809
+ reward_hive_balance: any;
2810
+ reward_hbd_balance: any;
2811
+ reward_vesting_hive: any;
2812
+ reward_vesting_balance: any;
2813
+ balance: any;
2814
+ hbd_balance: any;
2815
+ savings_balance: any;
2816
+ savings_hbd_balance: any;
2817
+ savings_hbd_last_interest_payment: any;
2818
+ savings_hbd_seconds_last_update: any;
2819
+ savings_hbd_seconds: any;
2820
+ next_vesting_withdrawal: any;
2821
+ pending_claimed_accounts: any;
2822
+ vesting_shares: any;
2823
+ delegated_vesting_shares: any;
2824
+ received_vesting_shares: any;
2825
+ vesting_withdraw_rate: any;
2826
+ to_withdraw: any;
2827
+ withdrawn: any;
2828
+ witness_votes: any;
2829
+ proxy: any;
2830
+ recovery_account: any;
2831
+ proxied_vsf_votes: any;
2832
+ voting_manabar: any;
2833
+ voting_power: any;
2834
+ downvote_manabar: any;
2835
+ follow_stats: AccountFollowStats | undefined;
2836
+ reputation: number;
2837
+ profile: AccountProfile;
2838
+ }, (string | undefined)[], never> | undefined;
2839
+ } & {
2840
+ queryKey: (string | undefined)[] & {
2841
+ [dataTagSymbol]: {
2842
+ name: any;
2843
+ owner: any;
2844
+ active: any;
2845
+ posting: any;
2846
+ memo_key: any;
2847
+ post_count: any;
2848
+ created: any;
2849
+ posting_json_metadata: any;
2850
+ last_vote_time: any;
2851
+ last_post: any;
2852
+ json_metadata: any;
2853
+ reward_hive_balance: any;
2854
+ reward_hbd_balance: any;
2855
+ reward_vesting_hive: any;
2856
+ reward_vesting_balance: any;
2857
+ balance: any;
2858
+ hbd_balance: any;
2859
+ savings_balance: any;
2860
+ savings_hbd_balance: any;
2861
+ savings_hbd_last_interest_payment: any;
2862
+ savings_hbd_seconds_last_update: any;
2863
+ savings_hbd_seconds: any;
2864
+ next_vesting_withdrawal: any;
2865
+ pending_claimed_accounts: any;
2866
+ vesting_shares: any;
2867
+ delegated_vesting_shares: any;
2868
+ received_vesting_shares: any;
2869
+ vesting_withdraw_rate: any;
2870
+ to_withdraw: any;
2871
+ withdrawn: any;
2872
+ witness_votes: any;
2873
+ proxy: any;
2874
+ recovery_account: any;
2875
+ proxied_vsf_votes: any;
2876
+ voting_manabar: any;
2877
+ voting_power: any;
2878
+ downvote_manabar: any;
2879
+ follow_stats: AccountFollowStats | undefined;
2880
+ reputation: number;
2881
+ profile: AccountProfile;
2882
+ };
2883
+ [dataTagErrorSymbol]: Error;
2912
2884
  };
2913
2885
  };
2914
2886
 
2915
- declare function encodeObj(o: any): string;
2916
- declare function decodeObj(o: any): any;
2887
+ declare function getAccountsQueryOptions(usernames: string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<FullAccount[], Error, FullAccount[], string[]>, "queryFn"> & {
2888
+ queryFn?: _tanstack_react_query.QueryFunction<FullAccount[], string[], never> | undefined;
2889
+ } & {
2890
+ queryKey: string[] & {
2891
+ [dataTagSymbol]: FullAccount[];
2892
+ [dataTagErrorSymbol]: Error;
2893
+ };
2894
+ };
2917
2895
 
2918
- declare enum Symbol {
2919
- HIVE = "HIVE",
2920
- HBD = "HBD",
2921
- VESTS = "VESTS",
2922
- SPK = "SPK"
2923
- }
2924
- declare enum NaiMap {
2925
- "@@000000021" = "HIVE",
2926
- "@@000000013" = "HBD",
2927
- "@@000000037" = "VESTS"
2928
- }
2929
- interface Asset {
2930
- amount: number;
2931
- symbol: Symbol;
2932
- }
2933
- declare function parseAsset(sval: string | SMTAsset): Asset;
2896
+ /**
2897
+ * Get follow count (followers and following) for an account
2898
+ */
2899
+ declare function getFollowCountQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountFollowStats, Error, AccountFollowStats, string[]>, "queryFn"> & {
2900
+ queryFn?: _tanstack_react_query.QueryFunction<AccountFollowStats, string[], never> | undefined;
2901
+ } & {
2902
+ queryKey: string[] & {
2903
+ [dataTagSymbol]: AccountFollowStats;
2904
+ [dataTagErrorSymbol]: Error;
2905
+ };
2906
+ };
2934
2907
 
2935
- declare function getBoundFetch(): typeof fetch;
2908
+ /**
2909
+ * Get list of accounts following a user
2910
+ *
2911
+ * @param following - The account being followed
2912
+ * @param startFollower - Pagination start point (account name)
2913
+ * @param followType - Type of follow relationship (default: "blog")
2914
+ * @param limit - Maximum number of results (default: 100)
2915
+ */
2916
+ declare function getFollowersQueryOptions(following: string | undefined, startFollower: string, followType?: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Follow[], Error, Follow[], (string | number)[]>, "queryFn"> & {
2917
+ queryFn?: _tanstack_react_query.QueryFunction<Follow[], (string | number)[], never> | undefined;
2918
+ } & {
2919
+ queryKey: (string | number)[] & {
2920
+ [dataTagSymbol]: Follow[];
2921
+ [dataTagErrorSymbol]: Error;
2922
+ };
2923
+ };
2936
2924
 
2937
- declare function isCommunity(value: unknown): boolean;
2925
+ /**
2926
+ * Get list of accounts that a user is following
2927
+ *
2928
+ * @param follower - The account doing the following
2929
+ * @param startFollowing - Pagination start point (account name)
2930
+ * @param followType - Type of follow relationship (default: "blog")
2931
+ * @param limit - Maximum number of results (default: 100)
2932
+ */
2933
+ declare function getFollowingQueryOptions(follower: string, startFollowing: string, followType?: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Follow[], Error, Follow[], (string | number)[]>, "queryFn"> & {
2934
+ queryFn?: _tanstack_react_query.QueryFunction<Follow[], (string | number)[], never> | undefined;
2935
+ } & {
2936
+ queryKey: (string | number)[] & {
2937
+ [dataTagSymbol]: Follow[];
2938
+ [dataTagErrorSymbol]: Error;
2939
+ };
2940
+ };
2938
2941
 
2939
2942
  /**
2940
- * Type guard to check if response is wrapped with pagination metadata
2943
+ * Get list of users that an account has muted
2944
+ *
2945
+ * @param username - The account username
2946
+ * @param limit - Maximum number of results (default: 100)
2941
2947
  */
2942
- declare function isWrappedResponse<T>(response: any): response is WrappedResponse<T>;
2948
+ declare function getMutedUsersQueryOptions(username: string | undefined, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string[], Error, string[], string[]>, "queryFn"> & {
2949
+ queryFn?: _tanstack_react_query.QueryFunction<string[], string[], never> | undefined;
2950
+ } & {
2951
+ queryKey: string[] & {
2952
+ [dataTagSymbol]: string[];
2953
+ [dataTagErrorSymbol]: Error;
2954
+ };
2955
+ };
2956
+
2943
2957
  /**
2944
- * Normalize response to wrapped format for backwards compatibility
2945
- * If the backend returns old format (array), convert it to wrapped format
2958
+ * Lookup accounts by username prefix
2959
+ *
2960
+ * @param query - Username prefix to search for
2961
+ * @param limit - Maximum number of results (default: 50)
2946
2962
  */
2947
- declare function normalizeToWrappedResponse<T>(response: T[] | WrappedResponse<T>, limit: number): WrappedResponse<T>;
2963
+ declare function lookupAccountsQueryOptions(query: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string[], Error, string[], (string | number)[]>, "queryFn"> & {
2964
+ queryFn?: _tanstack_react_query.QueryFunction<string[], (string | number)[], never> | undefined;
2965
+ } & {
2966
+ queryKey: (string | number)[] & {
2967
+ [dataTagSymbol]: string[];
2968
+ [dataTagErrorSymbol]: Error;
2969
+ };
2970
+ };
2948
2971
 
2949
- declare function vestsToHp(vests: number, hivePerMVests: number): number;
2972
+ declare function getSearchAccountsByUsernameQueryOptions(query: string, limit?: number, excludeList?: string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string[], Error, string[], (string | string[] | undefined)[]>, "queryFn"> & {
2973
+ queryFn?: _tanstack_react_query.QueryFunction<string[], (string | string[] | undefined)[], never> | undefined;
2974
+ } & {
2975
+ queryKey: (string | string[] | undefined)[] & {
2976
+ [dataTagSymbol]: string[];
2977
+ [dataTagErrorSymbol]: Error;
2978
+ };
2979
+ };
2950
2980
 
2951
- declare function isEmptyDate(s: string | undefined): boolean;
2981
+ type AccountProfileToken = NonNullable<AccountProfile["tokens"]>[number];
2982
+ type WalletMetadataCandidate = Partial<AccountProfileToken> & {
2983
+ currency?: string;
2984
+ show?: boolean;
2985
+ address?: string;
2986
+ publicKey?: string;
2987
+ privateKey?: string;
2988
+ username?: string;
2989
+ };
2990
+ interface CheckUsernameWalletsPendingResponse {
2991
+ exist: boolean;
2992
+ tokens?: WalletMetadataCandidate[];
2993
+ wallets?: WalletMetadataCandidate[];
2994
+ }
2995
+ declare function checkUsernameWalletsPendingQueryOptions(username: string, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CheckUsernameWalletsPendingResponse, Error, CheckUsernameWalletsPendingResponse, readonly unknown[]>, "queryFn"> & {
2996
+ queryFn?: _tanstack_react_query.QueryFunction<CheckUsernameWalletsPendingResponse, readonly unknown[], never> | undefined;
2997
+ } & {
2998
+ queryKey: readonly unknown[] & {
2999
+ [dataTagSymbol]: CheckUsernameWalletsPendingResponse;
3000
+ [dataTagErrorSymbol]: Error;
3001
+ };
3002
+ };
3003
+
3004
+ declare function getRelationshipBetweenAccountsQueryOptions(reference: string, target: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountRelationship, Error, AccountRelationship, string[]>, "queryFn"> & {
3005
+ queryFn?: _tanstack_react_query.QueryFunction<AccountRelationship, string[], never> | undefined;
3006
+ } & {
3007
+ queryKey: string[] & {
3008
+ [dataTagSymbol]: AccountRelationship;
3009
+ [dataTagErrorSymbol]: Error;
3010
+ };
3011
+ };
3012
+
3013
+ type Subscriptions = string[];
3014
+ declare function getAccountSubscriptionsQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Subscriptions, Error, Subscriptions, string[]>, "queryFn"> & {
3015
+ queryFn?: _tanstack_react_query.QueryFunction<Subscriptions, string[], never> | undefined;
3016
+ } & {
3017
+ queryKey: string[] & {
3018
+ [dataTagSymbol]: Subscriptions;
3019
+ [dataTagErrorSymbol]: Error;
3020
+ };
3021
+ };
2952
3022
 
2953
3023
  declare function getBookmarksQueryOptions(activeUsername: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountBookmark[], Error, AccountBookmark[], (string | undefined)[]>, "queryFn"> & {
2954
3024
  queryFn?: _tanstack_react_query.QueryFunction<AccountBookmark[], (string | undefined)[], never> | undefined;
@@ -3379,7 +3449,7 @@ declare function downVotingPower(account: FullAccount): number;
3379
3449
  declare function rcPower(account: RCAccount): number;
3380
3450
  declare function votingValue(account: FullAccount, dynamicProps: DynamicProps$1, votingPowerValue: number, weight?: number): number;
3381
3451
 
3382
- declare function useSignOperationByKey(username: string | undefined): _tanstack_react_query.UseMutationResult<_hiveio_dhive.TransactionConfirmation, Error, {
3452
+ declare function useSignOperationByKey(username: string | undefined): _tanstack_react_query.UseMutationResult<TransactionConfirmation, Error, {
3383
3453
  operation: Operation;
3384
3454
  keyOrSeed: string;
3385
3455
  }, unknown>;
@@ -3392,11 +3462,11 @@ declare function useSignOperationByHivesigner(callbackUri?: string): _tanstack_r
3392
3462
  operation: Operation;
3393
3463
  }, unknown>;
3394
3464
 
3395
- declare function getChainPropertiesQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_hiveio_dhive.ChainProperties, Error, _hiveio_dhive.ChainProperties, string[]>, "queryFn"> & {
3396
- queryFn?: _tanstack_react_query.QueryFunction<_hiveio_dhive.ChainProperties, string[], never> | undefined;
3465
+ declare function getChainPropertiesQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, string[]>, "queryFn"> & {
3466
+ queryFn?: _tanstack_react_query.QueryFunction<any, string[], never> | undefined;
3397
3467
  } & {
3398
3468
  queryKey: string[] & {
3399
- [dataTagSymbol]: _hiveio_dhive.ChainProperties;
3469
+ [dataTagSymbol]: any;
3400
3470
  [dataTagErrorSymbol]: Error;
3401
3471
  };
3402
3472
  };
@@ -4724,11 +4794,11 @@ declare function getRcStatsQueryOptions(): _tanstack_react_query.OmitKeyof<_tans
4724
4794
  };
4725
4795
  };
4726
4796
 
4727
- declare function getAccountRcQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_hiveio_dhive_lib_chain_rc.RCAccount[], Error, _hiveio_dhive_lib_chain_rc.RCAccount[], string[]>, "queryFn"> & {
4728
- queryFn?: _tanstack_react_query.QueryFunction<_hiveio_dhive_lib_chain_rc.RCAccount[], string[], never> | undefined;
4797
+ declare function getAccountRcQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<RCAccount[], Error, RCAccount[], string[]>, "queryFn"> & {
4798
+ queryFn?: _tanstack_react_query.QueryFunction<RCAccount[], string[], never> | undefined;
4729
4799
  } & {
4730
4800
  queryKey: string[] & {
4731
- [dataTagSymbol]: _hiveio_dhive_lib_chain_rc.RCAccount[];
4801
+ [dataTagSymbol]: RCAccount[];
4732
4802
  [dataTagErrorSymbol]: Error;
4733
4803
  };
4734
4804
  };
@@ -5923,7 +5993,12 @@ type HiveTransaction = Transaction;
5923
5993
 
5924
5994
  type HiveOperationGroup = "" | "transfers" | "market-orders" | "interests" | "stake-operations" | "rewards";
5925
5995
 
5926
- type HiveOperationName = OperationName | VirtualOperationName;
5996
+ /**
5997
+ * All operation names (including virtual operations) extracted from hive-tx utils.
5998
+ * In hive-tx, utils.operations includes both real and virtual operations,
5999
+ * so there is no separate VirtualOperationName type.
6000
+ */
6001
+ type HiveOperationName = keyof typeof utils.operations;
5927
6002
  type HiveOperationFilterValue = HiveOperationGroup | HiveOperationName;
5928
6003
  type HiveOperationFilter = HiveOperationFilterValue | HiveOperationFilterValue[];
5929
6004
  type HiveOperationFilterKey = string;
@@ -6817,7 +6892,7 @@ declare const HIVE_ACCOUNT_OPERATION_GROUPS: Record<HiveOperationGroup, number[]
6817
6892
 
6818
6893
  declare const HIVE_OPERATION_LIST: HiveOperationName[];
6819
6894
 
6820
- declare const HIVE_OPERATION_ORDERS: Record<HiveOperationName, number>;
6895
+ declare const HIVE_OPERATION_ORDERS: Record<"vote" | "comment" | "transfer" | "transfer_to_vesting" | "withdraw_vesting" | "account_create" | "account_create_with_delegation" | "account_update" | "account_update2" | "account_witness_vote" | "account_witness_proxy" | "convert" | "collateralized_convert" | "custom" | "custom_json" | "claim_account" | "create_claimed_account" | "claim_reward_balance" | "delegate_vesting_shares" | "delete_comment" | "comment_options" | "set_withdraw_vesting_route" | "witness_update" | "witness_set_properties" | "decline_voting_rights" | "reset_account" | "set_reset_account" | "transfer_to_savings" | "transfer_from_savings" | "cancel_transfer_from_savings" | "limit_order_create" | "limit_order_create2" | "limit_order_cancel" | "feed_publish" | "escrow_transfer" | "escrow_dispute" | "escrow_release" | "escrow_approve" | "recover_account" | "request_account_recovery" | "change_recovery_account" | "recurrent_transfer" | "create_proposal" | "update_proposal" | "update_proposal_votes" | "remove_proposal" | "curation_reward" | "author_reward" | "comment_benefactor_reward" | "fill_order" | "producer_reward" | "interest" | "fill_convert_request" | "fill_collateralized_convert_request" | "return_vesting_delegation" | "proposal_pay" | "comment_payout_update" | "comment_reward" | "fill_recurrent_transfer" | "fill_vesting_withdraw" | "effective_comment_vote" | "pow" | "report_over_production" | "pow2" | "custom_binary" | "liquidity_reward" | "shutdown_witness" | "fill_transfer_from_savings" | "hardfork" | "clear_null_account_balance" | "sps_fund" | "hardfork_hive" | "hardfork_hive_restore" | "delayed_voting" | "consolidate_treasury_balance" | "ineffective_delete_comment" | "sps_convert" | "expired_account_notification" | "changed_recovery_account" | "transfer_to_vesting_completed" | "pow_reward" | "vesting_shares_split" | "account_created" | "system_warning" | "failed_recurrent_transfer" | "limit_order_cancelled" | "producer_missed" | "proposal_fee" | "collateralized_convert_immediate_conversion" | "escrow_approved" | "escrow_rejected" | "proxy_cleared" | "declined_voting_rights", number>;
6821
6896
  declare const HIVE_OPERATION_NAME_BY_ID: Record<number, HiveOperationName>;
6822
6897
 
6823
6898
  /**
@@ -7448,18 +7523,16 @@ declare function getSubscribers(community: string): Promise<Subscription[] | nul
7448
7523
  declare function getRelationshipBetweenAccounts(follower: string, following: string): Promise<AccountRelationship | null>;
7449
7524
  declare function getProfiles(accounts: string[], observer?: string): Promise<Profile[]>;
7450
7525
 
7451
- /** Maximum number of alternate nodes to try during verification */
7452
- declare const MAX_ALTERNATE_NODES = 2;
7453
7526
  /**
7454
7527
  * When the primary node returns null for a get_post call,
7455
- * verify against up to 2 alternate nodes before concluding
7456
- * the post is truly deleted. This guards against sync lag
7457
- * where a single node temporarily returns null for valid content.
7528
+ * verify by querying multiple random nodes. If any node
7529
+ * returns the post, it exists (the first node was lagging).
7458
7530
  *
7459
- * @param primaryNode - Snapshot of CONFIG.hiveClient.currentAddress captured
7460
- * before the primary request, so failover can't change which node we exclude.
7531
+ * Uses callWithQuorum(quorum=1) which shuffles and queries
7532
+ * nodes in batches. Since it shuffles, it's unlikely to hit
7533
+ * the same node that just returned null first.
7461
7534
  */
7462
- declare function verifyPostOnAlternateNode(author: string, permlink: string, observer: string, primaryNode?: string): Promise<Entry$1 | null>;
7535
+ declare function verifyPostOnAlternateNode(author: string, permlink: string, observer: string): Promise<Entry$1 | null>;
7463
7536
 
7464
7537
  declare function signUp(username: string, email: string, referral: string): Promise<ApiResponse<Record<string, unknown>>>;
7465
7538
  declare function subscribeEmail(email: string): Promise<ApiResponse<Record<string, unknown>>>;
@@ -8110,4 +8183,4 @@ declare function getBadActorsQueryOptions(): _tanstack_react_query.OmitKeyof<_ta
8110
8183
  };
8111
8184
  };
8112
8185
 
8113
- export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountKeys, type AccountNotification, type AccountProfile, type AccountRelationship, type AccountReputation, type AiAssistParams, type AiAssistPrice, type AiAssistResponse, type AiGenerationPrice, type AiGenerationRequest, type AiGenerationResponse, type AiImagePowerTier, type AiImagePriceResponse, type Announcement, type ApiBookmarkNotification, type ApiDelegationsNotification, type ApiFavoriteNotification, type ApiFollowNotification, type ApiInactiveNotification, type ApiMentionNotification, type ApiNotification, type ApiNotificationSetting, type ApiReblogNotification, type ApiReferralNotification, type ApiReplyNotification, type ApiResponse, type ApiSpinNotification, type ApiTransferNotification, type ApiVoteNotification, type ApiWeeklyEarningsNotification, type Asset, AssetOperation, type AuthContext, type AuthContextV2, type AuthMethod, type AuthorReward, type Authority, type AuthorityLevel, type Beneficiary, type BlogEntry, type BoostPlusAccountPrice, type BoostPlusPayload, type BuildProfileMetadataArgs, BuySellTransactionType, CONFIG, type CancelTransferFromSavings, type CantAfford, type CheckUsernameWalletsPendingResponse, type ClaimAccountPayload, type ClaimEngineRewardsPayload, type ClaimInterestPayload, type ClaimRewardBalance, type ClaimRewardsPayload, type CollateralizedConversionRequest, type CollateralizedConvert, type CommentBenefactor, type CommentPayload, type CommentPayoutUpdate, type CommentReward, type Communities, type Community, type CommunityProps, type CommunityRewardsRegisterPayload, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type ConversionRequest, type ConvertPayload, type CreateAccountPayload, type CrossPostPayload, type CurationDuration, type CurationItem, type CurationReward, type CurrencyRates, type DelegateEngineTokenPayload, type DelegateRcPayload, type DelegateVestingShares, type DelegateVestingSharesPayload, type DelegatedVestingShare, type DeleteCommentPayload, type DeletedEntry, type Draft, type DraftMetadata, type DraftsWrappedResponse, type DynamicProps$1 as DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type EffectiveCommentVote, type EngineMarketOrderPayload, EntriesCacheManagement, type Entry$1 as Entry, type EntryBeneficiaryRoute, type EntryHeader, type EntryStat, type EntryVote, ErrorType, type FeedHistoryItem, type FillCollateralizedConvertRequest, type FillConvertRequest, type FillOrder, type FillRecurrentTransfers, type FillVestingWithdraw, type Follow, type FollowPayload, type Fragment, type FriendSearchResult, type FriendsPageParam, type FriendsRow, type FullAccount, type GameClaim, type GeneralAssetInfo, type GeneralAssetTransaction, type GenerateImageParams, type GetGameStatus, type GetRecoveriesEmailResponse, type GrantPostingPermissionPayload, HIVE_ACCOUNT_OPERATION_GROUPS, HIVE_OPERATION_LIST, HIVE_OPERATION_NAME_BY_ID, HIVE_OPERATION_ORDERS, type HiveBasedAssetSignType, type HiveEngineMarketResponse, type HiveEngineMetric, type HiveEngineOpenOrder, type HiveEngineOrderBookEntry, HiveEngineToken, type HiveEngineTokenBalance, type HiveEngineTokenInfo, type HiveEngineTokenMetadataResponse, type HiveEngineTokenStatus, type HiveEngineTransaction, type HiveHbdStats, type HiveMarketMetric, type HiveOperationFilter, type HiveOperationFilterKey, type HiveOperationFilterValue, type HiveOperationGroup, type HiveOperationName, HiveSignerIntegration, type HiveTransaction, type HsTokenRenewResponse, type IncomingRcDelegation, type IncomingRcResponse, type Interest, type JsonMetadata, type JsonPollMetadata, type Keys, type LeaderBoardDuration, type LeaderBoardItem, type LimitOrderCancel, type LimitOrderCancelPayload, type LimitOrderCreate, type LimitOrderCreatePayload, type LockLarynxPayload, MAX_ALTERNATE_NODES, type MarketCandlestickDataItem, type MarketData, type MarketStatistics, type MedianHistoryPrice, type MutePostPayload, NaiMap, NotificationFilter, NotificationViewType, type Notifications, NotifyTypes, OPERATION_AUTHORITY_MAP, type OpenOrdersData, type OperationGroup, OrderIdPrefix, type OrdersData, type OrdersDataItem, type PageStatsResponse, type PaginationMeta, type ParsedChainError, type Payer, type PinPostPayload, type PlatformAdapter, type PointTransaction, PointTransactionType, type Points, type PointsResponse, type PortfolioResponse, type PortfolioWalletItem, type PostTip, type PostTipsResponse, type PowerLarynxPayload, type ProducerReward, type Profile, type ProfileTokens, type PromotePayload, type PromotePrice, type Proposal, type ProposalCreatePayload, type ProposalPay, type ProposalVote, type ProposalVotePayload, type ProposalVoteRow, QueryKeys, ROLES, type RcDirectDelegation, type RcDirectDelegationsResponse, type RcStats, type Reblog, type ReblogPayload, type ReceivedVestingShare, type RecordActivityOptions, type Recoveries, type RecurrentTransfer, type RecurrentTransfers, type ReferralItem, type ReferralItems, type ReferralStat, type ReturnVestingDelegation, type RewardFund, type RewardedCommunity, type SavingsWithdrawRequest, type Schedule, type SearchResponse, type SearchResult, type SetCommunityRolePayload, type SetLastReadPayload, type SetWithdrawRoute, type SetWithdrawVestingRoutePayload, SortOrder, type SpkApiWallet, type SpkMarkets, type StakeEngineTokenPayload, type StatsResponse, type SubscribeCommunityPayload, type Subscription, Symbol, type ThreadItemEntry, ThreeSpeakIntegration, type ThreeSpeakVideo, type Token, type TokenMetadata, type Transaction, type Transfer, type TransferEngineTokenPayload, type TransferFromSavingsPayload, type TransferLarynxPayload, type TransferPayload, type TransferPointPayload, type TransferSpkPayload, type TransferToSavings, type TransferToSavingsPayload, type TransferToVesting, type TransferToVestingPayload, type TransformedSpkMarkets, type TrendingTag, type UndelegateEngineTokenPayload, type UnfollowPayload, type UnstakeEngineTokenPayload, type UnsubscribeCommunityPayload, type UpdateCommunityPayload, type UpdateProposalVotes, type UpdateReplyPayload, type User, type UserImage, type ValidatePostCreatingOptions, type VestingDelegationExpiration, type Vote, type VoteHistoryPage, type VoteHistoryPageParam, type VotePayload, type VoteProxy, type WalletMetadataCandidate, type WalletOperationPayload, type WaveEntry, type WaveTrendingAuthor, type WaveTrendingTag, type WithdrawRoute, type WithdrawVesting, type WithdrawVestingPayload, type Witness, type WitnessProxyPayload, type WitnessVotePayload, type WrappedResponse, type WsBookmarkNotification, type WsDelegationsNotification, type WsFavoriteNotification, type WsFollowNotification, type WsInactiveNotification, type WsMentionNotification, type WsNotification, type WsReblogNotification, type WsReferralNotification, type WsReplyNotification, type WsSpinNotification, type WsTransferNotification, type WsVoteNotification, addDraft, addImage, addOptimisticDiscussionEntry, addSchedule, bridgeApiCall, broadcastJson, buildAccountCreateOp, buildAccountUpdate2Op, buildAccountUpdateOp, buildActiveCustomJsonOp, buildBoostOp, buildBoostOpWithPoints, buildBoostPlusOp, buildCancelTransferFromSavingsOp, buildChangeRecoveryAccountOp, buildClaimAccountOp, buildClaimInterestOps, buildClaimRewardBalanceOp, buildCollateralizedConvertOp, buildCommentOp, buildCommentOptionsOp, buildCommunityRegistrationOp, buildConvertOp, buildCreateClaimedAccountOp, buildDelegateRcOp, buildDelegateVestingSharesOp, buildDeleteCommentOp, buildEngineClaimOp, buildEngineOp, buildFlagPostOp, buildFollowOp, buildGrantPostingPermissionOp, buildIgnoreOp, buildLimitOrderCancelOp, buildLimitOrderCreateOp, buildLimitOrderCreateOpWithType, buildMultiPointTransferOps, buildMultiTransferOps, buildMutePostOp, buildMuteUserOp, buildPinPostOp, buildPointTransferOp, buildPostingCustomJsonOp, buildProfileMetadata, buildPromoteOp, buildProposalCreateOp, buildProposalVoteOp, buildReblogOp, buildRecoverAccountOp, buildRecurrentTransferOp, buildRemoveProposalOp, buildRequestAccountRecoveryOp, buildRevokeKeysOp, buildRevokePostingPermissionOp, buildSetLastReadOps, buildSetRoleOp, buildSetWithdrawVestingRouteOp, buildSpkCustomJsonOp, buildSubscribeOp, buildTransferFromSavingsOp, buildTransferOp, buildTransferToSavingsOp, buildTransferToVestingOp, buildUnfollowOp, buildUnignoreOp, buildUnsubscribeOp, buildUpdateCommunityOp, buildUpdateProposalOp, buildVoteOp, buildWithdrawVestingOp, buildWitnessProxyOp, buildWitnessVoteOp, canRevokeFromAuthority, checkFavoriteQueryOptions, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, deleteDraft, deleteImage, deleteSchedule, downVotingPower, encodeObj, extractAccountProfile, formatError, formattedNumber, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPosts, getAccountPostsInfiniteQueryOptions, getAccountPostsQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountReputationsQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountWalletAssetInfoQueryOptions, getAccountsQueryOptions, getAiAssistPriceQueryOptions, getAiGeneratePriceQueryOptions, getAllHiveEngineTokensQueryOptions, getAnnouncementsQueryOptions, getBadActorsQueryOptions, getBookmarksInfiniteQueryOptions, getBookmarksQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunities, getCommunitiesQueryOptions, getCommunity, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityQueryOptions, getCommunitySubscribersQueryOptions, getCommunityType, getContentQueryOptions, getContentRepliesQueryOptions, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getCurrencyRate, getCurrencyRates, getCurrencyTokenRate, getCurrentMedianHistoryPriceQueryOptions, getCustomJsonAuthority, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussion, getDiscussionQueryOptions, getDiscussionsQueryOptions, getDraftsInfiniteQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFavoritesInfiniteQueryOptions, getFavoritesQueryOptions, getFeedHistoryQueryOptions, getFollowCountQueryOptions, getFollowersQueryOptions, getFollowingQueryOptions, getFragmentsInfiniteQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHbdAssetGeneralInfoQueryOptions, getHbdAssetTransactionsQueryOptions, getHiveAssetGeneralInfoQueryOptions, getHiveAssetMetricQueryOptions, getHiveAssetTransactionsQueryOptions, getHiveAssetWithdrawalRoutesQueryOptions, getHiveEngineBalancesWithUsdQueryOptions, getHiveEngineMetrics, getHiveEngineOpenOrders, getHiveEngineOrderBook, getHiveEngineTokenGeneralInfoQueryOptions, getHiveEngineTokenMetrics, getHiveEngineTokenTransactions, getHiveEngineTokenTransactionsQueryOptions, getHiveEngineTokensBalances, getHiveEngineTokensBalancesQueryOptions, getHiveEngineTokensMarket, getHiveEngineTokensMarketQueryOptions, getHiveEngineTokensMetadata, getHiveEngineTokensMetadataQueryOptions, getHiveEngineTokensMetricsQueryOptions, getHiveEngineTradeHistory, getHiveEngineUnclaimedRewards, getHiveEngineUnclaimedRewardsQueryOptions, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getHivePowerAssetGeneralInfoQueryOptions, getHivePowerAssetTransactionsQueryOptions, getHivePowerDelegatesInfiniteQueryOptions, getHivePowerDelegatingsQueryOptions, getHivePrice, getImagesInfiniteQueryOptions, getImagesQueryOptions, getIncomingRcQueryOptions, getLarynxAssetGeneralInfoQueryOptions, getLarynxPowerAssetGeneralInfoQueryOptions, getMarketData, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNormalizePostQueryOptions, getNotificationSetting, getNotifications, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOperationAuthority, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsAssetGeneralInfoQueryOptions, getPointsAssetTransactionsQueryOptions, getPointsQueryOptions, getPortfolioQueryOptions, getPost, getPostHeader, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostsRanked, getPostsRankedInfiniteQueryOptions, getPostsRankedQueryOptions, getProfiles, getProfilesQueryOptions, getPromotePriceQueryOptions, getPromotedPost, getPromotedPostsQuery, getProposalAuthority, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getRebloggedByQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getRecurrentTransfersQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRelationshipBetweenAccounts, getRelationshipBetweenAccountsQueryOptions, getRequiredAuthority, getRewardFundQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesInfiniteQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getSpkAssetGeneralInfoQueryOptions, getSpkMarkets, getSpkMarketsQueryOptions, getSpkWallet, getSpkWalletQueryOptions, getStatsQueryOptions, getSubscribers, getSubscriptions, getTradeHistoryQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getTrendingTagsWithStatsQueryOptions, getUserPostVoteQueryOptions, getUserProposalVotesQueryOptions, getVestingDelegationExpirationsQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByAccountQueryOptions, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingAuthorsQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, hsTokenRenew, isCommunity, isEmptyDate, isInfoError, isNetworkError, isResourceCreditsError, isWrappedResponse, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, markNotifications, moveSchedule, normalizePost, normalizeToWrappedResponse, normalizeWaveEntryFromApi, onboardEmail, parseAccounts, parseAsset, parseChainError, parseProfileMetadata, powerRechargeTime, rcPower, removeOptimisticDiscussionEntry, resolveHiveOperationFilters, resolvePost, restoreDiscussionSnapshots, restoreEntryInCache, rewardSpk, roleMap, saveNotificationSetting, search, searchPath, searchQueryOptions, shouldTriggerAuthFallback, signUp, sortDiscussions, subscribeEmail, toEntryArray, updateDraft, updateEntryInCache, uploadImage, uploadImageWithSignature, useAccountFavoriteAdd, useAccountFavoriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddDraft, useAddFragment, useAddImage, useAddSchedule, useAiAssist, useBookmarkAdd, useBookmarkDelete, useBoostPlus, useBroadcastMutation, useClaimAccount, useClaimEngineRewards, useClaimInterest, useClaimPoints, useClaimRewards, useComment, useConvert, useCreateAccount, useCrossPost, useDelegateEngineToken, useDelegateRc, useDelegateVestingShares, useDeleteComment, useDeleteDraft, useDeleteImage, useDeleteSchedule, useEditFragment, useEngineMarketOrder, useFollow, useGameClaim, useGenerateImage, useGrantPostingPermission, useLimitOrderCancel, useLimitOrderCreate, useLockLarynx, useMarkNotificationsRead, useMoveSchedule, useMutePost, usePinPost, usePowerLarynx, usePromote, useProposalCreate, useProposalVote, useReblog, useRecordActivity, useRegisterCommunityRewards, useRemoveFragment, useSetCommunityRole, useSetLastRead, useSetWithdrawVestingRoute, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain, useStakeEngineToken, useSubscribeCommunity, useTransfer, useTransferEngineToken, useTransferFromSavings, useTransferLarynx, useTransferPoint, useTransferSpk, useTransferToSavings, useTransferToVesting, useUndelegateEngineToken, useUnfollow, useUnstakeEngineToken, useUnsubscribeCommunity, useUpdateCommunity, useUpdateDraft, useUpdateReply, useUploadImage, useVote, useWalletOperation, useWithdrawVesting, useWitnessProxy, useWitnessVote, usrActivity, validatePostCreating, verifyPostOnAlternateNode, vestsToHp, votingPower, votingValue };
8186
+ export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountKeys, type AccountNotification, type AccountProfile, type AccountRelationship, type AccountReputation, type AiAssistParams, type AiAssistPrice, type AiAssistResponse, type AiGenerationPrice, type AiGenerationRequest, type AiGenerationResponse, type AiImagePowerTier, type AiImagePriceResponse, type Announcement, type ApiBookmarkNotification, type ApiDelegationsNotification, type ApiFavoriteNotification, type ApiFollowNotification, type ApiInactiveNotification, type ApiMentionNotification, type ApiNotification, type ApiNotificationSetting, type ApiReblogNotification, type ApiReferralNotification, type ApiReplyNotification, type ApiResponse, type ApiSpinNotification, type ApiTransferNotification, type ApiVoteNotification, type ApiWeeklyEarningsNotification, type Asset, AssetOperation, type AuthContext, type AuthContextV2, type AuthMethod, type AuthorReward, type Authority, type AuthorityLevel, type AuthorityType, type Beneficiary, type BlogEntry, type BoostPlusAccountPrice, type BoostPlusPayload, type BuildProfileMetadataArgs, BuySellTransactionType, CONFIG, type CancelTransferFromSavings, type CantAfford, type CheckUsernameWalletsPendingResponse, type ClaimAccountPayload, type ClaimEngineRewardsPayload, type ClaimInterestPayload, type ClaimRewardBalance, type ClaimRewardsPayload, type CollateralizedConversionRequest, type CollateralizedConvert, type CommentBenefactor, type CommentPayload, type CommentPayoutUpdate, type CommentReward, type Communities, type Community, type CommunityProps, type CommunityRewardsRegisterPayload, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type ConversionRequest, type ConvertPayload, type CreateAccountPayload, type CrossPostPayload, type CurationDuration, type CurationItem, type CurationReward, type CurrencyRates, type DelegateEngineTokenPayload, type DelegateRcPayload, type DelegateVestingShares, type DelegateVestingSharesPayload, type DelegatedVestingShare, type DeleteCommentPayload, type DeletedEntry, type Draft, type DraftMetadata, type DraftsWrappedResponse, type DynamicProps$1 as DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type EffectiveCommentVote, type EngineMarketOrderPayload, EntriesCacheManagement, type Entry$1 as Entry, type EntryBeneficiaryRoute, type EntryHeader, type EntryStat, type EntryVote, ErrorType, type FeedHistoryItem, type FillCollateralizedConvertRequest, type FillConvertRequest, type FillOrder, type FillRecurrentTransfers, type FillVestingWithdraw, type Follow, type FollowPayload, type Fragment, type FriendSearchResult, type FriendsPageParam, type FriendsRow, type FullAccount, type GameClaim, type GeneralAssetInfo, type GeneralAssetTransaction, type GenerateImageParams, type GetGameStatus, type GetRecoveriesEmailResponse, type GrantPostingPermissionPayload, HIVE_ACCOUNT_OPERATION_GROUPS, HIVE_OPERATION_LIST, HIVE_OPERATION_NAME_BY_ID, HIVE_OPERATION_ORDERS, type HiveBasedAssetSignType, type HiveEngineMarketResponse, type HiveEngineMetric, type HiveEngineOpenOrder, type HiveEngineOrderBookEntry, HiveEngineToken, type HiveEngineTokenBalance, type HiveEngineTokenInfo, type HiveEngineTokenMetadataResponse, type HiveEngineTokenStatus, type HiveEngineTransaction, type HiveHbdStats, type HiveMarketMetric, type HiveOperationFilter, type HiveOperationFilterKey, type HiveOperationFilterValue, type HiveOperationGroup, type HiveOperationName, HiveSignerIntegration, type HiveTransaction, type HsTokenRenewResponse, type IncomingRcDelegation, type IncomingRcResponse, type Interest, type JsonMetadata, type JsonPollMetadata, type Keys, type LeaderBoardDuration, type LeaderBoardItem, type LimitOrderCancel, type LimitOrderCancelPayload, type LimitOrderCreate, type LimitOrderCreatePayload, type LockLarynxPayload, type MarketCandlestickDataItem, type MarketData, type MarketStatistics, type MedianHistoryPrice, type MutePostPayload, NaiMap, NotificationFilter, NotificationViewType, type Notifications, NotifyTypes, OPERATION_AUTHORITY_MAP, type OpenOrdersData, type OperationGroup, OrderIdPrefix, type OrdersData, type OrdersDataItem, type PageStatsResponse, type PaginationMeta, type ParsedChainError, type Payer, type PinPostPayload, type PlatformAdapter, type PointTransaction, PointTransactionType, type Points, type PointsResponse, type PortfolioResponse, type PortfolioWalletItem, type PostTip, type PostTipsResponse, type PowerLarynxPayload, type ProducerReward, type Profile, type ProfileTokens, type PromotePayload, type PromotePrice, type Proposal, type ProposalCreatePayload, type ProposalPay, type ProposalVote, type ProposalVotePayload, type ProposalVoteRow, QueryKeys, type RCAccount, ROLES, type RcDirectDelegation, type RcDirectDelegationsResponse, type RcStats, type Reblog, type ReblogPayload, type ReceivedVestingShare, type RecordActivityOptions, type Recoveries, type RecurrentTransfer, type RecurrentTransfers, type ReferralItem, type ReferralItems, type ReferralStat, type ReturnVestingDelegation, type RewardFund, type RewardedCommunity, type SMTAsset, type SavingsWithdrawRequest, type Schedule, type SearchResponse, type SearchResult, type SetCommunityRolePayload, type SetLastReadPayload, type SetWithdrawRoute, type SetWithdrawVestingRoutePayload, SortOrder, type SpkApiWallet, type SpkMarkets, type StakeEngineTokenPayload, type StatsResponse, type SubscribeCommunityPayload, type Subscription, Symbol, type ThreadItemEntry, ThreeSpeakIntegration, type ThreeSpeakVideo, type Token, type TokenMetadata, type Transaction, type TransactionConfirmation, type Transfer, type TransferEngineTokenPayload, type TransferFromSavingsPayload, type TransferLarynxPayload, type TransferPayload, type TransferPointPayload, type TransferSpkPayload, type TransferToSavings, type TransferToSavingsPayload, type TransferToVesting, type TransferToVestingPayload, type TransformedSpkMarkets, type TrendingTag, type UndelegateEngineTokenPayload, type UnfollowPayload, type UnstakeEngineTokenPayload, type UnsubscribeCommunityPayload, type UpdateCommunityPayload, type UpdateProposalVotes, type UpdateReplyPayload, type User, type UserImage, type ValidatePostCreatingOptions, type VestingDelegationExpiration, type Vote, type VoteHistoryPage, type VoteHistoryPageParam, type VotePayload, type VoteProxy, type WalletMetadataCandidate, type WalletOperationPayload, type WaveEntry, type WaveTrendingAuthor, type WaveTrendingTag, type WithdrawRoute, type WithdrawVesting, type WithdrawVestingPayload, type Witness, type WitnessProxyPayload, type WitnessVotePayload, type WrappedResponse, type WsBookmarkNotification, type WsDelegationsNotification, type WsFavoriteNotification, type WsFollowNotification, type WsInactiveNotification, type WsMentionNotification, type WsNotification, type WsReblogNotification, type WsReferralNotification, type WsReplyNotification, type WsSpinNotification, type WsTransferNotification, type WsVoteNotification, addDraft, addImage, addOptimisticDiscussionEntry, addSchedule, bridgeApiCall, broadcastJson, broadcastOperations, buildAccountCreateOp, buildAccountUpdate2Op, buildAccountUpdateOp, buildActiveCustomJsonOp, buildBoostOp, buildBoostOpWithPoints, buildBoostPlusOp, buildCancelTransferFromSavingsOp, buildChangeRecoveryAccountOp, buildClaimAccountOp, buildClaimInterestOps, buildClaimRewardBalanceOp, buildCollateralizedConvertOp, buildCommentOp, buildCommentOptionsOp, buildCommunityRegistrationOp, buildConvertOp, buildCreateClaimedAccountOp, buildDelegateRcOp, buildDelegateVestingSharesOp, buildDeleteCommentOp, buildEngineClaimOp, buildEngineOp, buildFlagPostOp, buildFollowOp, buildGrantPostingPermissionOp, buildIgnoreOp, buildLimitOrderCancelOp, buildLimitOrderCreateOp, buildLimitOrderCreateOpWithType, buildMultiPointTransferOps, buildMultiTransferOps, buildMutePostOp, buildMuteUserOp, buildPinPostOp, buildPointTransferOp, buildPostingCustomJsonOp, buildProfileMetadata, buildPromoteOp, buildProposalCreateOp, buildProposalVoteOp, buildReblogOp, buildRecoverAccountOp, buildRecurrentTransferOp, buildRemoveProposalOp, buildRequestAccountRecoveryOp, buildRevokeKeysOp, buildRevokePostingPermissionOp, buildSetLastReadOps, buildSetRoleOp, buildSetWithdrawVestingRouteOp, buildSpkCustomJsonOp, buildSubscribeOp, buildTransferFromSavingsOp, buildTransferOp, buildTransferToSavingsOp, buildTransferToVestingOp, buildUnfollowOp, buildUnignoreOp, buildUnsubscribeOp, buildUpdateCommunityOp, buildUpdateProposalOp, buildVoteOp, buildWithdrawVestingOp, buildWitnessProxyOp, buildWitnessVoteOp, calculateRCMana, calculateVPMana, canRevokeFromAuthority, checkFavoriteQueryOptions, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, deleteDraft, deleteImage, deleteSchedule, downVotingPower, encodeObj, extractAccountProfile, formatError, formattedNumber, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPosts, getAccountPostsInfiniteQueryOptions, getAccountPostsQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountReputationsQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountWalletAssetInfoQueryOptions, getAccountsQueryOptions, getAiAssistPriceQueryOptions, getAiGeneratePriceQueryOptions, getAllHiveEngineTokensQueryOptions, getAnnouncementsQueryOptions, getBadActorsQueryOptions, getBookmarksInfiniteQueryOptions, getBookmarksQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunities, getCommunitiesQueryOptions, getCommunity, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityQueryOptions, getCommunitySubscribersQueryOptions, getCommunityType, getContentQueryOptions, getContentRepliesQueryOptions, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getCurrencyRate, getCurrencyRates, getCurrencyTokenRate, getCurrentMedianHistoryPriceQueryOptions, getCustomJsonAuthority, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussion, getDiscussionQueryOptions, getDiscussionsQueryOptions, getDraftsInfiniteQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFavoritesInfiniteQueryOptions, getFavoritesQueryOptions, getFeedHistoryQueryOptions, getFollowCountQueryOptions, getFollowersQueryOptions, getFollowingQueryOptions, getFragmentsInfiniteQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHbdAssetGeneralInfoQueryOptions, getHbdAssetTransactionsQueryOptions, getHiveAssetGeneralInfoQueryOptions, getHiveAssetMetricQueryOptions, getHiveAssetTransactionsQueryOptions, getHiveAssetWithdrawalRoutesQueryOptions, getHiveEngineBalancesWithUsdQueryOptions, getHiveEngineMetrics, getHiveEngineOpenOrders, getHiveEngineOrderBook, getHiveEngineTokenGeneralInfoQueryOptions, getHiveEngineTokenMetrics, getHiveEngineTokenTransactions, getHiveEngineTokenTransactionsQueryOptions, getHiveEngineTokensBalances, getHiveEngineTokensBalancesQueryOptions, getHiveEngineTokensMarket, getHiveEngineTokensMarketQueryOptions, getHiveEngineTokensMetadata, getHiveEngineTokensMetadataQueryOptions, getHiveEngineTokensMetricsQueryOptions, getHiveEngineTradeHistory, getHiveEngineUnclaimedRewards, getHiveEngineUnclaimedRewardsQueryOptions, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getHivePowerAssetGeneralInfoQueryOptions, getHivePowerAssetTransactionsQueryOptions, getHivePowerDelegatesInfiniteQueryOptions, getHivePowerDelegatingsQueryOptions, getHivePrice, getImagesInfiniteQueryOptions, getImagesQueryOptions, getIncomingRcQueryOptions, getLarynxAssetGeneralInfoQueryOptions, getLarynxPowerAssetGeneralInfoQueryOptions, getMarketData, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNormalizePostQueryOptions, getNotificationSetting, getNotifications, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOperationAuthority, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsAssetGeneralInfoQueryOptions, getPointsAssetTransactionsQueryOptions, getPointsQueryOptions, getPortfolioQueryOptions, getPost, getPostHeader, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostsRanked, getPostsRankedInfiniteQueryOptions, getPostsRankedQueryOptions, getProfiles, getProfilesQueryOptions, getPromotePriceQueryOptions, getPromotedPost, getPromotedPostsQuery, getProposalAuthority, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getRebloggedByQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getRecurrentTransfersQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRelationshipBetweenAccounts, getRelationshipBetweenAccountsQueryOptions, getRequiredAuthority, getRewardFundQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesInfiniteQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getSpkAssetGeneralInfoQueryOptions, getSpkMarkets, getSpkMarketsQueryOptions, getSpkWallet, getSpkWalletQueryOptions, getStatsQueryOptions, getSubscribers, getSubscriptions, getTradeHistoryQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getTrendingTagsWithStatsQueryOptions, getUserPostVoteQueryOptions, getUserProposalVotesQueryOptions, getVestingDelegationExpirationsQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByAccountQueryOptions, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingAuthorsQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, hsTokenRenew, initHiveTx, isCommunity, isEmptyDate, isInfoError, isNetworkError, isResourceCreditsError, isWif, isWrappedResponse, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, markNotifications, moveSchedule, normalizePost, normalizeToWrappedResponse, normalizeWaveEntryFromApi, onboardEmail, parseAccounts, parseAsset, parseChainError, parseProfileMetadata, powerRechargeTime, rcPower, removeOptimisticDiscussionEntry, resolveHiveOperationFilters, resolvePost, restoreDiscussionSnapshots, restoreEntryInCache, rewardSpk, roleMap, saveNotificationSetting, search, searchPath, searchQueryOptions, setHiveTxNodes, sha256, shouldTriggerAuthFallback, signUp, sortDiscussions, subscribeEmail, toEntryArray, updateDraft, updateEntryInCache, uploadImage, uploadImageWithSignature, useAccountFavoriteAdd, useAccountFavoriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddDraft, useAddFragment, useAddImage, useAddSchedule, useAiAssist, useBookmarkAdd, useBookmarkDelete, useBoostPlus, useBroadcastMutation, useClaimAccount, useClaimEngineRewards, useClaimInterest, useClaimPoints, useClaimRewards, useComment, useConvert, useCreateAccount, useCrossPost, useDelegateEngineToken, useDelegateRc, useDelegateVestingShares, useDeleteComment, useDeleteDraft, useDeleteImage, useDeleteSchedule, useEditFragment, useEngineMarketOrder, useFollow, useGameClaim, useGenerateImage, useGrantPostingPermission, useLimitOrderCancel, useLimitOrderCreate, useLockLarynx, useMarkNotificationsRead, useMoveSchedule, useMutePost, usePinPost, usePowerLarynx, usePromote, useProposalCreate, useProposalVote, useReblog, useRecordActivity, useRegisterCommunityRewards, useRemoveFragment, useSetCommunityRole, useSetLastRead, useSetWithdrawVestingRoute, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain, useStakeEngineToken, useSubscribeCommunity, useTransfer, useTransferEngineToken, useTransferFromSavings, useTransferLarynx, useTransferPoint, useTransferSpk, useTransferToSavings, useTransferToVesting, useUndelegateEngineToken, useUnfollow, useUnstakeEngineToken, useUnsubscribeCommunity, useUpdateCommunity, useUpdateDraft, useUpdateReply, useUploadImage, useVote, useWalletOperation, useWithdrawVesting, useWitnessProxy, useWitnessVote, usrActivity, validatePostCreating, verifyPostOnAlternateNode, vestsToHp, votingPower, votingValue };