@ecency/sdk 2.0.41 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,1790 @@ 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
+ /** Timeout for internal API calls (search, private API). */
1450
+ declare const INTERNAL_API_TIMEOUT_MS = 10000;
1451
+ declare const CONFIG: {
1452
+ privateApiHost: string;
1453
+ imageHost: string;
1454
+ hiveNodes: string[];
1455
+ heliusApiKey: string | undefined;
1456
+ queryClient: QueryClient;
1457
+ plausibleHost: string;
1458
+ spkNode: string;
1459
+ dmcaAccounts: string[];
1460
+ dmcaTags: string[];
1461
+ dmcaPatterns: string[];
1462
+ dmcaTagRegexes: RegExp[];
1463
+ dmcaPatternRegexes: RegExp[];
1464
+ _dmcaInitialized: boolean;
1465
+ };
1466
+ type DmcaListsInput = {
1467
+ accounts?: string[];
1468
+ tags?: string[];
1469
+ posts?: string[];
1470
+ };
1471
+ declare namespace ConfigManager {
1472
+ function setQueryClient(client: QueryClient): void;
1473
+ /**
1474
+ * Set the private API host
1475
+ * @param host - The private API host URL (e.g., "https://ecency.com" or "" for relative URLs)
1476
+ */
1477
+ function setPrivateApiHost(host: string): void;
1478
+ /**
1479
+ * Get a validated base URL for API requests
1480
+ * Returns a valid base URL that can be used with new URL(path, baseUrl)
1481
+ *
1482
+ * Priority:
1483
+ * 1. CONFIG.privateApiHost if set (dev/staging or explicit config)
1484
+ * 2. window.location.origin if in browser (production with relative URLs)
1485
+ * 3. 'https://ecency.com' as fallback for SSR (production default)
1486
+ *
1487
+ * @returns A valid base URL string
1488
+ * @throws Never throws - always returns a valid URL
1489
+ */
1490
+ function getValidatedBaseUrl(): string;
1491
+ /**
1492
+ * Set the image host
1493
+ * @param host - The image host URL (e.g., "https://images.ecency.com")
1494
+ */
1495
+ function setImageHost(host: string): void;
1496
+ /**
1497
+ * Set Hive RPC nodes, replacing the default list and updating hive-tx config.
1498
+ * @param nodes - Array of Hive RPC node URLs
1499
+ */
1500
+ function setHiveNodes(nodes: string[]): void;
1501
+ /**
1502
+ * Set DMCA filtering lists
1503
+ * @param lists - DMCA lists object containing accounts/tags/posts arrays
1504
+ */
1505
+ function setDmcaLists(lists?: DmcaListsInput): void;
1506
+ }
1507
+
1332
1508
  /**
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
1509
+ * Chain error handling utilities
1510
+ * Extracted from web's operations.ts and mobile's dhive.ts error handling patterns
1342
1511
  */
1343
- declare function buildCommentOptionsOp(author: string, permlink: string, maxAcceptedPayout: string, percentHbd: number, allowVotes: boolean, allowCurationRewards: boolean, extensions: any[]): Operation;
1512
+ declare enum ErrorType {
1513
+ COMMON = "common",
1514
+ INFO = "info",
1515
+ INSUFFICIENT_RESOURCE_CREDITS = "insufficient_resource_credits",
1516
+ MISSING_AUTHORITY = "missing_authority",
1517
+ TOKEN_EXPIRED = "token_expired",
1518
+ NETWORK = "network",
1519
+ TIMEOUT = "timeout",
1520
+ VALIDATION = "validation"
1521
+ }
1522
+ interface ParsedChainError {
1523
+ message: string;
1524
+ type: ErrorType;
1525
+ originalError?: any;
1526
+ }
1344
1527
  /**
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
1528
+ * Parses Hive blockchain errors into standardized format.
1529
+ * Extracted from web's operations.ts and mobile's dhive.ts error handling.
1530
+ *
1531
+ * @param error - The error object or string from a blockchain operation
1532
+ * @returns Parsed error with user-friendly message and categorized type
1533
+ *
1534
+ * @example
1535
+ * ```typescript
1536
+ * try {
1537
+ * await vote(...);
1538
+ * } catch (error) {
1539
+ * const parsed = parseChainError(error);
1540
+ * console.log(parsed.message); // "Insufficient Resource Credits. Please wait or power up."
1541
+ * console.log(parsed.type); // ErrorType.INSUFFICIENT_RESOURCE_CREDITS
1542
+ * }
1543
+ * ```
1349
1544
  */
1350
- declare function buildDeleteCommentOp(author: string, permlink: string): Operation;
1545
+ declare function parseChainError(error: any): ParsedChainError;
1351
1546
  /**
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
1547
+ * Formats error for display to user.
1548
+ * Returns tuple of [message, type] for backward compatibility with existing code.
1549
+ *
1550
+ * This function maintains compatibility with the old formatError signature from
1551
+ * web's operations.ts (line 59-84) and mobile's dhive.ts error handling.
1552
+ *
1553
+ * @param error - The error object or string
1554
+ * @returns Tuple of [user-friendly message, error type]
1555
+ *
1556
+ * @example
1557
+ * ```typescript
1558
+ * try {
1559
+ * await transfer(...);
1560
+ * } catch (error) {
1561
+ * const [message, type] = formatError(error);
1562
+ * showToast(message, type);
1563
+ * }
1564
+ * ```
1358
1565
  */
1359
- declare function buildReblogOp(account: string, author: string, permlink: string, deleteReblog?: boolean): Operation;
1360
-
1566
+ declare function formatError(error: any): [string, ErrorType];
1361
1567
  /**
1362
- * Wallet Operations
1363
- * Operations for managing tokens, savings, vesting, and conversions
1568
+ * Checks if error indicates missing authority and should trigger auth fallback.
1569
+ * Used by the SDK's useBroadcastMutation to determine if it should retry with
1570
+ * an alternate authentication method.
1571
+ *
1572
+ * @param error - The error object or string
1573
+ * @returns true if auth fallback should be attempted
1574
+ *
1575
+ * @example
1576
+ * ```typescript
1577
+ * try {
1578
+ * await broadcast(operations);
1579
+ * } catch (error) {
1580
+ * if (shouldTriggerAuthFallback(error)) {
1581
+ * // Try with alternate auth method
1582
+ * await broadcastWithHiveAuth(operations);
1583
+ * }
1584
+ * }
1585
+ * ```
1364
1586
  */
1587
+ declare function shouldTriggerAuthFallback(error: any): boolean;
1365
1588
  /**
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
1589
+ * Checks if error is a resource credits (RC) error.
1590
+ * Useful for showing specific UI feedback about RC issues.
1591
+ *
1592
+ * @param error - The error object or string
1593
+ * @returns true if the error is related to insufficient RC
1594
+ *
1595
+ * @example
1596
+ * ```typescript
1597
+ * try {
1598
+ * await vote(...);
1599
+ * } catch (error) {
1600
+ * if (isResourceCreditsError(error)) {
1601
+ * showRCWarning(); // Show specific RC education/power up UI
1602
+ * }
1603
+ * }
1604
+ * ```
1372
1605
  */
1373
- declare function buildTransferOp(from: string, to: string, amount: string, memo: string): Operation;
1606
+ declare function isResourceCreditsError(error: any): boolean;
1374
1607
  /**
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
1608
+ * Checks if error is informational (not critical).
1609
+ * Informational errors typically don't need retry logic.
1610
+ *
1611
+ * @param error - The error object or string
1612
+ * @returns true if the error is informational
1501
1613
  */
1502
- declare function buildEngineOp(from: string, contractAction: string, contractPayload: Record<string, string>, contractName?: string): Operation;
1614
+ declare function isInfoError(error: any): boolean;
1503
1615
  /**
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
1616
+ * Checks if error is network-related and should be retried.
1617
+ *
1618
+ * @param error - The error object or string
1619
+ * @returns true if the error is network-related
1508
1620
  */
1509
- declare function buildEngineClaimOp(account: string, tokens: string[]): Operation;
1510
- declare function buildDelegateRcOp(from: string, delegatees: string, maxRc: string | number): Operation;
1621
+ declare function isNetworkError(error: any): boolean;
1511
1622
 
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[];
1623
+ declare function makeQueryClient(): QueryClient;
1624
+ declare const getQueryClient: () => QueryClient;
1625
+ declare namespace EcencyQueriesManager {
1626
+ function getQueryData<T>(queryKey: QueryKey): T | undefined;
1627
+ function getInfiniteQueryData<T>(queryKey: QueryKey): InfiniteData<T, unknown> | undefined;
1628
+ function prefetchQuery<T>(options: UseQueryOptions<T>): Promise<T | undefined>;
1629
+ function prefetchInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): Promise<InfiniteData<T, unknown> | undefined>;
1630
+ function generateClientServerQuery<T>(options: UseQueryOptions<T>): {
1631
+ prefetch: () => Promise<T | undefined>;
1632
+ getData: () => T | undefined;
1633
+ useClientQuery: () => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<T>, Error>;
1634
+ fetchAndGet: () => Promise<T>;
1635
+ };
1636
+ function generateClientServerInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): {
1637
+ prefetch: () => Promise<InfiniteData<T, unknown> | undefined>;
1638
+ getData: () => InfiniteData<T, unknown> | undefined;
1639
+ useClientQuery: () => _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<T, unknown>, Error>;
1640
+ fetchAndGet: () => Promise<InfiniteData<T, P>>;
1641
+ };
1642
+ }
1551
1643
 
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;
1644
+ declare function getDynamicPropsQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<DynamicProps$1, Error, DynamicProps$1, string[]>, "queryFn"> & {
1645
+ queryFn?: _tanstack_react_query.QueryFunction<DynamicProps$1, string[], never> | undefined;
1646
+ } & {
1647
+ queryKey: string[] & {
1648
+ [dataTagSymbol]: DynamicProps$1;
1649
+ [dataTagErrorSymbol]: Error;
1650
+ };
1651
+ };
1652
+
1653
+ interface RewardFund {
1654
+ id: number;
1655
+ name: string;
1656
+ reward_balance: string;
1657
+ recent_claims: string;
1658
+ last_update: string;
1659
+ content_constant: string;
1660
+ percent_curation_rewards: number;
1661
+ percent_content_rewards: number;
1662
+ author_reward_curve: string;
1663
+ curation_reward_curve: string;
1581
1664
  }
1582
1665
  /**
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
1666
+ * Get reward fund information from the blockchain
1667
+ * @param fundName - Name of the reward fund (default: 'post')
1587
1668
  */
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;
1669
+ declare function getRewardFundQueryOptions(fundName?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<RewardFund, Error, RewardFund, string[]>, "queryFn"> & {
1670
+ queryFn?: _tanstack_react_query.QueryFunction<RewardFund, string[], never> | undefined;
1671
+ } & {
1672
+ queryKey: string[] & {
1673
+ [dataTagSymbol]: RewardFund;
1674
+ [dataTagErrorSymbol]: Error;
1675
+ };
1676
+ };
1677
+
1678
+ declare const QueryKeys: {
1679
+ readonly posts: {
1680
+ readonly entry: (entryPath: string) => string[];
1681
+ readonly postHeader: (author: string, permlink?: string) => (string | undefined)[];
1682
+ readonly content: (author: string, permlink: string) => string[];
1683
+ readonly contentReplies: (author: string, permlink: string) => string[];
1684
+ readonly accountPosts: (username: string, filter: string, limit: number, observer: string) => (string | number)[];
1685
+ readonly accountPostsPage: (username: string, filter: string, startAuthor: string, startPermlink: string, limit: number, observer: string) => (string | number)[];
1686
+ readonly userPostVote: (username: string, author: string, permlink: string) => string[];
1687
+ readonly reblogs: (username: string, limit: number) => (string | number)[];
1688
+ readonly entryActiveVotes: (author?: string, permlink?: string) => (string | undefined)[];
1689
+ readonly rebloggedBy: (author: string, permlink: string) => string[];
1690
+ readonly tips: (author: string, permlink: string) => string[];
1691
+ readonly normalize: (author: string, permlink: string) => string[];
1692
+ readonly drafts: (activeUsername?: string) => (string | undefined)[];
1693
+ readonly draftsInfinite: (activeUsername?: string, limit?: number) => unknown[];
1694
+ readonly schedules: (activeUsername?: string) => (string | undefined)[];
1695
+ readonly schedulesInfinite: (activeUsername?: string, limit?: number) => unknown[];
1696
+ readonly fragments: (username?: string) => (string | undefined)[];
1697
+ readonly fragmentsInfinite: (username?: string, limit?: number) => unknown[];
1698
+ readonly images: (username?: string) => (string | undefined)[];
1699
+ readonly galleryImages: (activeUsername?: string) => (string | undefined)[];
1700
+ readonly imagesInfinite: (username?: string, limit?: number) => unknown[];
1701
+ readonly promoted: (type: string) => string[];
1702
+ readonly _promotedPrefix: readonly ["posts", "promoted"];
1703
+ readonly accountPostsBlogPrefix: (username: string) => readonly ["posts", "account-posts", string, "blog"];
1704
+ readonly postsRanked: (sort: string, tag: string, limit: number, observer: string) => (string | number)[];
1705
+ readonly postsRankedPage: (sort: string, startAuthor: string, startPermlink: string, limit: number, tag: string, observer: string) => (string | number)[];
1706
+ readonly discussions: (author: string, permlink: string, order: string, observer: string) => string[];
1707
+ readonly discussion: (author: string, permlink: string, observer: string) => string[];
1708
+ readonly deletedEntry: (entryPath: string) => string[];
1709
+ readonly commentHistory: (author: string, permlink: string, onlyMeta: boolean) => (string | boolean)[];
1710
+ readonly trendingTags: () => string[];
1711
+ readonly trendingTagsWithStats: (limit: number) => (string | number)[];
1712
+ readonly wavesByHost: (host: string) => string[];
1713
+ readonly wavesByTag: (host: string, tag: string) => string[];
1714
+ readonly wavesFollowing: (host: string, username: string) => string[];
1715
+ readonly wavesTrendingTags: (host: string, hours: number) => (string | number)[];
1716
+ readonly wavesByAccount: (host: string, username: string) => string[];
1717
+ readonly wavesTrendingAuthors: (host: string) => string[];
1718
+ readonly _prefix: readonly ["posts"];
1719
+ };
1720
+ readonly accounts: {
1721
+ readonly full: (username?: string) => (string | undefined)[];
1722
+ readonly list: (...usernames: string[]) => string[];
1723
+ readonly friends: (following: string, mode: string, followType: string, limit: number) => (string | number)[];
1724
+ readonly searchFriends: (username: string, mode: string, query: string) => string[];
1725
+ readonly subscriptions: (username: string) => string[];
1726
+ readonly followCount: (username: string) => string[];
1727
+ readonly recoveries: (username: string) => string[];
1728
+ readonly pendingRecovery: (username: string) => string[];
1729
+ readonly checkWalletPending: (username: string, code: string | null) => (string | null)[];
1730
+ readonly mutedUsers: (username: string) => string[];
1731
+ readonly following: (follower: string, startFollowing: string, followType: string, limit: number) => (string | number)[];
1732
+ readonly followers: (following: string, startFollower: string, followType: string, limit: number) => (string | number)[];
1733
+ readonly search: (query: string, excludeList?: string[]) => (string | string[] | undefined)[];
1734
+ readonly profiles: (accounts: string[], observer: string) => (string | string[])[];
1735
+ readonly lookup: (query: string, limit: number) => (string | number)[];
1736
+ readonly transactions: (username: string, group: string, limit: number) => (string | number)[];
1737
+ readonly favorites: (activeUsername?: string) => (string | undefined)[];
1738
+ readonly favoritesInfinite: (activeUsername?: string, limit?: number) => unknown[];
1739
+ readonly checkFavorite: (activeUsername: string, targetUsername: string) => string[];
1740
+ readonly relations: (reference: string, target: string) => string[];
1741
+ readonly bots: () => string[];
1742
+ readonly voteHistory: (username: string, limit: number) => (string | number)[];
1743
+ readonly reputations: (query: string, limit: number) => (string | number)[];
1744
+ readonly bookmarks: (activeUsername?: string) => (string | undefined)[];
1745
+ readonly bookmarksInfinite: (activeUsername?: string, limit?: number) => unknown[];
1746
+ readonly referrals: (username: string) => string[];
1747
+ readonly referralsStats: (username: string) => string[];
1748
+ readonly _prefix: readonly ["accounts"];
1749
+ };
1750
+ readonly notifications: {
1751
+ readonly announcements: () => string[];
1752
+ readonly list: (activeUsername?: string, filter?: string) => (string | undefined)[];
1753
+ readonly unreadCount: (activeUsername?: string) => (string | undefined)[];
1754
+ readonly settings: (activeUsername?: string) => (string | undefined)[];
1755
+ readonly _prefix: readonly ["notifications"];
1756
+ };
1757
+ readonly core: {
1758
+ readonly rewardFund: (fundName: string) => string[];
1759
+ readonly dynamicProps: () => string[];
1760
+ readonly chainProperties: () => string[];
1761
+ readonly _prefix: readonly ["core"];
1762
+ };
1763
+ readonly communities: {
1764
+ readonly single: (name?: string, observer?: string) => (string | undefined)[];
1765
+ /** Prefix key for matching all observer variants of a community */
1766
+ readonly singlePrefix: (name: string) => readonly ["community", "single", string];
1767
+ readonly context: (username: string, communityName: string) => string[];
1768
+ readonly rewarded: () => string[];
1769
+ readonly list: (sort: string, query: string, limit: number) => (string | number)[];
1770
+ readonly subscribers: (communityName: string) => string[];
1771
+ readonly accountNotifications: (account: string, limit: number) => (string | number)[];
1772
+ };
1773
+ readonly proposals: {
1774
+ readonly list: () => string[];
1775
+ readonly proposal: (id: number) => (string | number)[];
1776
+ readonly votes: (proposalId: number, voter: string, limit: number) => (string | number)[];
1777
+ readonly votesPrefix: (proposalId: number) => readonly ["proposals", "votes", number];
1778
+ readonly votesByUser: (voter: string) => string[];
1779
+ };
1780
+ readonly search: {
1781
+ readonly topics: (q: string, limit: number) => (string | number)[];
1782
+ readonly path: (q: string) => string[];
1783
+ readonly account: (q: string, limit: number) => (string | number)[];
1784
+ readonly results: (q: string, sort: string, hideLow: boolean, since?: string, scrollId?: string, votes?: number) => (string | number | boolean | undefined)[];
1785
+ readonly controversialRising: (what: string, tag: string) => string[];
1786
+ readonly similarEntries: (author: string, permlink: string, query: string) => string[];
1787
+ readonly api: (q: string, sort: string, hideLow: boolean, since?: string, votes?: number) => (string | number | boolean | undefined)[];
1788
+ };
1789
+ readonly witnesses: {
1790
+ readonly list: (limit: number) => (string | number)[];
1791
+ readonly votes: (username: string | undefined) => (string | undefined)[];
1792
+ readonly proxy: () => string[];
1793
+ };
1794
+ readonly wallet: {
1795
+ readonly outgoingRcDelegations: (username: string, limit: number) => (string | number)[];
1796
+ readonly vestingDelegations: (username: string, limit: number) => (string | number)[];
1797
+ readonly withdrawRoutes: (account: string) => string[];
1798
+ readonly incomingRc: (username: string) => string[];
1799
+ readonly conversionRequests: (account: string) => string[];
1800
+ readonly receivedVestingShares: (username: string) => string[];
1801
+ readonly savingsWithdraw: (account: string) => string[];
1802
+ readonly openOrders: (user: string) => string[];
1803
+ readonly collateralizedConversionRequests: (account: string) => string[];
1804
+ readonly recurrentTransfers: (username: string) => string[];
1805
+ readonly portfolio: (username: string, onlyEnabled: string, currency: string) => string[];
1806
+ };
1807
+ readonly assets: {
1808
+ readonly hiveGeneralInfo: (username: string) => string[];
1809
+ readonly hiveTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
1810
+ readonly hiveWithdrawalRoutes: (username: string) => string[];
1811
+ readonly hiveMetrics: (bucketSeconds: number) => (string | number)[];
1812
+ readonly hbdGeneralInfo: (username: string) => string[];
1813
+ readonly hbdTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
1814
+ readonly hivePowerGeneralInfo: (username: string) => string[];
1815
+ readonly hivePowerDelegates: (username: string) => string[];
1816
+ readonly hivePowerDelegatings: (username: string) => string[];
1817
+ readonly hivePowerTransactions: (username: string, limit: number, filterKey: string) => (string | number)[];
1818
+ readonly pointsGeneralInfo: (username: string) => string[];
1819
+ readonly pointsTransactions: (username: string, type: string) => string[];
1820
+ readonly ecencyAssetInfo: (username: string, asset: string, currency: string) => string[];
1821
+ };
1822
+ readonly market: {
1823
+ readonly statistics: () => string[];
1824
+ readonly orderBook: (limit: number) => (string | number)[];
1825
+ readonly history: (seconds: number, startDate: number, endDate: number) => (string | number)[];
1826
+ readonly feedHistory: () => string[];
1827
+ readonly hiveHbdStats: () => string[];
1828
+ readonly data: (coin: string, vsCurrency: string, fromTs: number, toTs: number) => (string | number)[];
1829
+ readonly tradeHistory: (limit: number, start: number, end: number) => (string | number)[];
1830
+ readonly currentMedianHistoryPrice: () => string[];
1831
+ };
1832
+ readonly analytics: {
1833
+ readonly discoverCuration: (duration: string) => string[];
1834
+ readonly pageStats: (url: string, dimensions: string, metrics: string, dateRange: string) => string[];
1835
+ readonly discoverLeaderboard: (duration: string) => string[];
1836
+ };
1837
+ readonly promotions: {
1838
+ readonly promotePrice: () => string[];
1839
+ readonly boostPlusPrices: () => string[];
1840
+ readonly boostPlusAccounts: (account: string) => string[];
1841
+ };
1842
+ readonly resourceCredits: {
1843
+ readonly account: (username: string) => string[];
1844
+ readonly stats: () => string[];
1845
+ };
1846
+ readonly points: {
1847
+ readonly points: (username: string, filter: number) => (string | number)[];
1848
+ readonly _prefix: (username: string) => string[];
1849
+ };
1850
+ readonly operations: {
1851
+ readonly chainProperties: () => string[];
1852
+ };
1853
+ readonly games: {
1854
+ readonly statusCheck: (gameType: string, username: string) => string[];
1855
+ };
1856
+ readonly badActors: {
1857
+ readonly list: () => string[];
1858
+ readonly _prefix: readonly ["bad-actors"];
1859
+ };
1860
+ readonly ai: {
1861
+ readonly prices: () => readonly ["ai", "prices"];
1862
+ readonly assistPrices: (username?: string) => readonly ["ai", "assist-prices", string | undefined];
1863
+ readonly _prefix: readonly ["ai"];
1864
+ };
1865
+ };
1866
+
1867
+ declare function encodeObj(o: any): string;
1868
+ declare function decodeObj(o: any): any;
1869
+
1870
+ declare enum Symbol {
1871
+ HIVE = "HIVE",
1872
+ HBD = "HBD",
1873
+ VESTS = "VESTS",
1874
+ SPK = "SPK"
1875
+ }
1876
+ declare enum NaiMap {
1877
+ "@@000000021" = "HIVE",
1878
+ "@@000000013" = "HBD",
1879
+ "@@000000037" = "VESTS"
1880
+ }
1881
+ interface Asset {
1882
+ amount: number;
1883
+ symbol: Symbol;
1884
+ }
1885
+ declare function parseAsset(sval: string | SMTAsset): Asset;
1886
+
1887
+ declare function getBoundFetch(): typeof fetch;
1888
+
1889
+ declare function isCommunity(value: unknown): boolean;
1890
+
1597
1891
  /**
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
1892
+ * Type guard to check if response is wrapped with pagination metadata
1602
1893
  */
1603
- declare function buildRemoveProposalOp(proposalOwner: string, proposalIds: number[]): Operation;
1894
+ declare function isWrappedResponse<T>(response: any): response is WrappedResponse<T>;
1604
1895
  /**
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
1896
+ * Normalize response to wrapped format for backwards compatibility
1897
+ * If the backend returns old format (array), convert it to wrapped format
1612
1898
  */
1613
- declare function buildUpdateProposalOp(proposalId: number, creator: string, dailyPay: string, subject: string, permlink: string): Operation;
1899
+ declare function normalizeToWrappedResponse<T>(response: T[] | WrappedResponse<T>, limit: number): WrappedResponse<T>;
1900
+
1901
+ declare function vestsToHp(vests: number, hivePerMVests: number): number;
1902
+
1903
+ declare function isEmptyDate(s: string | undefined): boolean;
1614
1904
 
1905
+ interface Payload$1 {
1906
+ newPassword: string;
1907
+ currentPassword: string;
1908
+ keepCurrent?: boolean;
1909
+ }
1615
1910
  /**
1616
- * Community Operations
1617
- * Operations for managing Hive communities
1911
+ * Only native Hive and custom passwords could be updated here
1912
+ * Seed based password cannot be updated here, it will be in an account always for now
1618
1913
  */
1914
+ type UpdatePasswordOptions = Pick<UseMutationOptions<unknown, Error, Payload$1>, "onSuccess" | "onError">;
1915
+ declare function useAccountUpdatePassword(username: string, options?: UpdatePasswordOptions): _tanstack_react_query.UseMutationResult<TransactionConfirmation, Error, Payload$1, unknown>;
1916
+
1917
+ type SignType$1 = "key" | "keychain" | "hivesigner";
1918
+ interface CommonPayload$1 {
1919
+ accountName: string;
1920
+ type: SignType$1;
1921
+ key?: PrivateKey;
1922
+ }
1923
+ type RevokePostingOptions = Pick<UseMutationOptions<unknown, Error, CommonPayload$1>, "onSuccess" | "onError"> & {
1924
+ hsCallbackUrl?: string;
1925
+ };
1926
+ declare function useAccountRevokePosting(username: string | undefined, options: RevokePostingOptions, auth?: AuthContext): _tanstack_react_query.UseMutationResult<unknown, Error, CommonPayload$1, unknown>;
1927
+
1928
+ type SignType = "key" | "keychain" | "hivesigner" | "ecency";
1929
+ interface CommonPayload {
1930
+ accountName: string;
1931
+ type: SignType;
1932
+ key?: PrivateKey;
1933
+ email?: string;
1934
+ }
1935
+ type UpdateRecoveryOptions = Pick<UseMutationOptions<unknown, Error, CommonPayload>, "onSuccess" | "onError"> & {
1936
+ hsCallbackUrl?: string;
1937
+ };
1938
+ declare function useAccountUpdateRecovery(username: string | undefined, code: string | undefined, options: UpdateRecoveryOptions, auth?: AuthContext): _tanstack_react_query.UseMutationResult<unknown, Error, CommonPayload, unknown>;
1939
+
1940
+ interface Payload {
1941
+ currentKey: PrivateKey;
1942
+ /** Keys to revoke. Accepts a single key or an array. */
1943
+ revokingKey: PublicKey | PublicKey[];
1944
+ }
1619
1945
  /**
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
1946
+ * Revoke one or more keys from an account on the Hive blockchain.
1947
+ *
1948
+ * When revoking keys that exist only in active/posting authorities,
1949
+ * the owner field is omitted from the operation so active-level
1950
+ * signing is sufficient.
1624
1951
  */
1625
- declare function buildSubscribeOp(username: string, community: string): Operation;
1952
+ type RevokeKeyOptions = Pick<UseMutationOptions<unknown, Error, Payload>, "onSuccess" | "onError">;
1953
+ declare function useAccountRevokeKey(username: string | undefined, options?: RevokeKeyOptions): _tanstack_react_query.UseMutationResult<TransactionConfirmation, Error, Payload, unknown>;
1954
+
1626
1955
  /**
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
1956
+ * Check whether an authority would still meet its weight_threshold
1957
+ * after removing the given keys. This prevents revoking keys that
1958
+ * would leave an authority unable to sign (especially for multisig).
1631
1959
  */
1632
- declare function buildUnsubscribeOp(username: string, community: string): Operation;
1960
+ declare function canRevokeFromAuthority(auth: Authority$1, revokingKeyStrs: Set<string>): boolean;
1633
1961
  /**
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
1962
+ * Build an account_update operation that removes the given public keys
1963
+ * from the relevant authorities.
1964
+ *
1965
+ * Only includes the `owner` field when a revoking key actually exists
1966
+ * in the owner authority - omitting it allows active-level signing.
1967
+ *
1968
+ * Returns the operation payload (without the "account_update" tag) so
1969
+ * callers can wrap it as needed for their broadcast method.
1640
1970
  */
1641
- declare function buildSetRoleOp(username: string, community: string, account: string, role: string): Operation;
1971
+ declare function buildRevokeKeysOp(accountData: FullAccount, revokingKeys: PublicKey[]): {
1972
+ account: string;
1973
+ json_metadata: string;
1974
+ owner: Authority$1 | undefined;
1975
+ active: Authority$1;
1976
+ posting: Authority$1;
1977
+ memo_key: string;
1978
+ };
1979
+
1642
1980
  /**
1643
- * Community properties for update
1981
+ * Payload for claiming account creation tokens.
1644
1982
  */
1645
- interface CommunityProps {
1646
- title: string;
1647
- about: string;
1648
- lang: string;
1649
- description: string;
1650
- flag_text: string;
1651
- is_nsfw: boolean;
1983
+ interface ClaimAccountPayload {
1984
+ /** Creator account claiming the token */
1985
+ creator: string;
1986
+ /** Fee for claiming (usually "0.000 HIVE" for RC-based claims) */
1987
+ fee?: string;
1652
1988
  }
1653
1989
  /**
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
1990
+ * React Query mutation hook for claiming account creation tokens.
1991
+ *
1992
+ * This mutation broadcasts a claim_account operation to claim an account
1993
+ * creation token using Resource Credits (RC). The claimed token can later
1994
+ * be used to create a new account for free using the create_claimed_account
1995
+ * operation.
1996
+ *
1997
+ * @param username - The username claiming the account token (required for broadcast)
1998
+ * @param auth - Authentication context with platform adapter and fallback configuration
1999
+ *
2000
+ * @returns React Query mutation result
2001
+ *
2002
+ * @remarks
2003
+ * **Post-Broadcast Actions:**
2004
+ * - Invalidates account cache to update pending_claimed_accounts count
2005
+ * - Updates account query data to set pending_claimed_accounts = 0 optimistically
2006
+ *
2007
+ * **Operation Details:**
2008
+ * - Uses native claim_account operation
2009
+ * - Fee: "0.000 HIVE" (uses RC instead of HIVE)
2010
+ * - Authority: Active key (required for claiming)
2011
+ *
2012
+ * **RC Requirements:**
2013
+ * - Requires sufficient Resource Credits (RC)
2014
+ * - RC amount varies based on network conditions
2015
+ * - Claiming without sufficient RC will fail
2016
+ *
2017
+ * **Use Case:**
2018
+ * - Claim tokens in advance when RC is available
2019
+ * - Create accounts later without paying HIVE fee
2020
+ * - Useful for onboarding services and apps
2021
+ *
2022
+ * @example
2023
+ * ```typescript
2024
+ * const claimMutation = useClaimAccount(username, {
2025
+ * adapter: myAdapter,
2026
+ * enableFallback: true,
2027
+ * fallbackChain: ['keychain', 'key', 'hivesigner']
2028
+ * });
2029
+ *
2030
+ * // Claim account token using RC
2031
+ * claimMutation.mutate({
2032
+ * creator: 'alice',
2033
+ * fee: '0.000 HIVE'
2034
+ * });
2035
+ * ```
1659
2036
  */
1660
- declare function buildUpdateCommunityOp(username: string, community: string, props: CommunityProps): Operation;
2037
+ declare function useClaimAccount(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, ClaimAccountPayload, unknown>;
2038
+
1661
2039
  /**
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
2040
+ * Content Operations
2041
+ * Operations for creating, voting, and managing content on Hive blockchain
1669
2042
  */
1670
- declare function buildPinPostOp(username: string, community: string, account: string, permlink: string, pin: boolean): Operation;
1671
2043
  /**
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
2044
+ * Builds a vote operation.
2045
+ * @param voter - Account casting the vote
2046
+ * @param author - Author of the post/comment
2047
+ * @param permlink - Permlink of the post/comment
2048
+ * @param weight - Vote weight (-10000 to 10000, where 10000 = 100% upvote, -10000 = 100% downvote)
2049
+ * @returns Vote operation
1680
2050
  */
1681
- declare function buildMutePostOp(username: string, community: string, account: string, permlink: string, notes: string, mute: boolean): Operation;
2051
+ declare function buildVoteOp(voter: string, author: string, permlink: string, weight: number): Operation;
1682
2052
  /**
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
2053
+ * Builds a comment operation (for posts or replies).
2054
+ * @param author - Author of the comment/post
2055
+ * @param permlink - Permlink of the comment/post
2056
+ * @param parentAuthor - Parent author (empty string for top-level posts)
2057
+ * @param parentPermlink - Parent permlink (category/tag for top-level posts)
2058
+ * @param title - Title of the post (empty for comments)
2059
+ * @param body - Content body (required - cannot be empty)
2060
+ * @param jsonMetadata - JSON metadata object
2061
+ * @returns Comment operation
1690
2062
  */
1691
- declare function buildMuteUserOp(username: string, community: string, account: string, notes: string, mute: boolean): Operation;
2063
+ declare function buildCommentOp(author: string, permlink: string, parentAuthor: string, parentPermlink: string, title: string, body: string, jsonMetadata: Record<string, any>): Operation;
1692
2064
  /**
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
2065
+ * Builds a comment options operation (for setting beneficiaries, rewards, etc.).
2066
+ * @param author - Author of the comment/post
2067
+ * @param permlink - Permlink of the comment/post
2068
+ * @param maxAcceptedPayout - Maximum accepted payout (e.g., "1000000.000 HBD")
2069
+ * @param percentHbd - Percent of payout in HBD (10000 = 100%)
2070
+ * @param allowVotes - Allow votes on this content
2071
+ * @param allowCurationRewards - Allow curation rewards
2072
+ * @param extensions - Extensions array (for beneficiaries, etc.)
2073
+ * @returns Comment options operation
1700
2074
  */
1701
- declare function buildFlagPostOp(username: string, community: string, account: string, permlink: string, notes: string): Operation;
1702
-
2075
+ declare function buildCommentOptionsOp(author: string, permlink: string, maxAcceptedPayout: string, percentHbd: number, allowVotes: boolean, allowCurationRewards: boolean, extensions: any[]): Operation;
1703
2076
  /**
1704
- * Market Operations
1705
- * Operations for trading on the internal Hive market
2077
+ * Builds a delete comment operation.
2078
+ * @param author - Author of the comment/post to delete
2079
+ * @param permlink - Permlink of the comment/post to delete
2080
+ * @returns Delete comment operation
1706
2081
  */
2082
+ declare function buildDeleteCommentOp(author: string, permlink: string): Operation;
1707
2083
  /**
1708
- * Transaction type for buy/sell operations
2084
+ * Builds a reblog operation (custom_json).
2085
+ * @param account - Account performing the reblog
2086
+ * @param author - Original post author
2087
+ * @param permlink - Original post permlink
2088
+ * @param deleteReblog - If true, removes the reblog
2089
+ * @returns Custom JSON operation for reblog
1709
2090
  */
1710
- declare enum BuySellTransactionType {
1711
- Buy = "buy",
1712
- Sell = "sell"
1713
- }
2091
+ declare function buildReblogOp(account: string, author: string, permlink: string, deleteReblog?: boolean): Operation;
2092
+
1714
2093
  /**
1715
- * Order ID prefix for different order types
2094
+ * Wallet Operations
2095
+ * Operations for managing tokens, savings, vesting, and conversions
1716
2096
  */
1717
- declare enum OrderIdPrefix {
1718
- EMPTY = "",
1719
- SWAP = "9"
1720
- }
1721
2097
  /**
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
2098
+ * Builds a transfer operation.
2099
+ * @param from - Sender account
2100
+ * @param to - Receiver account
2101
+ * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
2102
+ * @param memo - Transfer memo
2103
+ * @returns Transfer operation
1730
2104
  */
1731
- declare function buildLimitOrderCreateOp(owner: string, amountToSell: string, minToReceive: string, fillOrKill: boolean, expiration: string, orderId: number): Operation;
2105
+ declare function buildTransferOp(from: string, to: string, amount: string, memo: string): Operation;
1732
2106
  /**
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
2107
+ * Builds multiple transfer operations for multiple recipients.
2108
+ * @param from - Sender account
2109
+ * @param destinations - Comma or space separated list of recipient accounts
2110
+ * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
2111
+ * @param memo - Transfer memo
2112
+ * @returns Array of transfer operations
1750
2113
  */
1751
- declare function buildLimitOrderCreateOpWithType(owner: string, amountToSell: number, minToReceive: number, orderType: BuySellTransactionType, idPrefix?: OrderIdPrefix): Operation;
2114
+ declare function buildMultiTransferOps(from: string, destinations: string, amount: string, memo: string): Operation[];
1752
2115
  /**
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
2116
+ * Builds a recurrent transfer operation.
2117
+ * @param from - Sender account
2118
+ * @param to - Receiver account
2119
+ * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
2120
+ * @param memo - Transfer memo
2121
+ * @param recurrence - Recurrence in hours
2122
+ * @param executions - Number of executions (2 = executes twice)
2123
+ * @returns Recurrent transfer operation
1757
2124
  */
1758
- declare function buildLimitOrderCancelOp(owner: string, orderId: number): Operation;
2125
+ declare function buildRecurrentTransferOp(from: string, to: string, amount: string, memo: string, recurrence: number, executions: number): Operation;
1759
2126
  /**
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
2127
+ * Builds a transfer to savings operation.
2128
+ * @param from - Sender account
2129
+ * @param to - Receiver account
2130
+ * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
2131
+ * @param memo - Transfer memo
2132
+ * @returns Transfer to savings operation
1766
2133
  */
1767
- declare function buildClaimRewardBalanceOp(account: string, rewardHive: string, rewardHbd: string, rewardVests: string): Operation;
1768
-
2134
+ declare function buildTransferToSavingsOp(from: string, to: string, amount: string, memo: string): Operation;
1769
2135
  /**
1770
- * Account Operations
1771
- * Operations for managing accounts, keys, and permissions
2136
+ * Builds a transfer from savings operation.
2137
+ * @param from - Sender account
2138
+ * @param to - Receiver account
2139
+ * @param amount - Amount with asset symbol (e.g., "1.000 HIVE")
2140
+ * @param memo - Transfer memo
2141
+ * @param requestId - Unique request ID (use timestamp)
2142
+ * @returns Transfer from savings operation
1772
2143
  */
2144
+ declare function buildTransferFromSavingsOp(from: string, to: string, amount: string, memo: string, requestId: number): Operation;
1773
2145
  /**
1774
- * Authority structure for account operations
2146
+ * Builds a cancel transfer from savings operation.
2147
+ * @param from - Account that initiated the savings withdrawal
2148
+ * @param requestId - Request ID to cancel
2149
+ * @returns Cancel transfer from savings operation
1775
2150
  */
1776
- interface Authority {
1777
- weight_threshold: number;
1778
- account_auths: [string, number][];
1779
- key_auths: [string, number][];
1780
- }
2151
+ declare function buildCancelTransferFromSavingsOp(from: string, requestId: number): Operation;
1781
2152
  /**
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
2153
+ * Builds operations to claim savings interest.
2154
+ * Creates a transfer_from_savings and immediately cancels it to claim interest.
2155
+ * @param from - Account claiming interest
2156
+ * @param to - Receiver account
2157
+ * @param amount - Amount with asset symbol (e.g., "0.001 HIVE")
2158
+ * @param memo - Transfer memo
2159
+ * @param requestId - Unique request ID
2160
+ * @returns Array of operations [transfer_from_savings, cancel_transfer_from_savings]
1790
2161
  */
1791
- declare function buildAccountUpdateOp(account: string, owner: Authority | undefined, active: Authority | undefined, posting: Authority | undefined, memoKey: string, jsonMetadata: string): Operation;
2162
+ declare function buildClaimInterestOps(from: string, to: string, amount: string, memo: string, requestId: number): Operation[];
1792
2163
  /**
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
2164
+ * Builds a transfer to vesting operation (power up).
2165
+ * @param from - Account sending HIVE
2166
+ * @param to - Account receiving Hive Power
2167
+ * @param amount - Amount with HIVE symbol (e.g., "1.000 HIVE")
2168
+ * @returns Transfer to vesting operation
1799
2169
  */
1800
- declare function buildAccountUpdate2Op(account: string, jsonMetadata: string, postingJsonMetadata: string, extensions: any[]): Operation;
2170
+ declare function buildTransferToVestingOp(from: string, to: string, amount: string): Operation;
1801
2171
  /**
1802
- * Public keys for account creation
2172
+ * Builds a withdraw vesting operation (power down).
2173
+ * @param account - Account withdrawing vesting
2174
+ * @param vestingShares - Amount of VESTS to withdraw (e.g., "1.000000 VESTS")
2175
+ * @returns Withdraw vesting operation
1803
2176
  */
1804
- interface AccountKeys {
1805
- ownerPublicKey: string;
1806
- activePublicKey: string;
1807
- postingPublicKey: string;
1808
- memoPublicKey: string;
1809
- }
2177
+ declare function buildWithdrawVestingOp(account: string, vestingShares: string): Operation;
1810
2178
  /**
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
2179
+ * Builds a delegate vesting shares operation (HP delegation).
2180
+ * @param delegator - Account delegating HP
2181
+ * @param delegatee - Account receiving HP delegation
2182
+ * @param vestingShares - Amount of VESTS to delegate (e.g., "1000.000000 VESTS")
2183
+ * @returns Delegate vesting shares operation
1817
2184
  */
1818
- declare function buildAccountCreateOp(creator: string, newAccountName: string, keys: AccountKeys, fee: string): Operation;
2185
+ declare function buildDelegateVestingSharesOp(delegator: string, delegatee: string, vestingShares: string): Operation;
1819
2186
  /**
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
2187
+ * Builds a set withdraw vesting route operation.
2188
+ * @param fromAccount - Account withdrawing vesting
2189
+ * @param toAccount - Account receiving withdrawn vesting
2190
+ * @param percent - Percentage to route (0-10000, where 10000 = 100%)
2191
+ * @param autoVest - Auto convert to vesting
2192
+ * @returns Set withdraw vesting route operation
1825
2193
  */
1826
- declare function buildCreateClaimedAccountOp(creator: string, newAccountName: string, keys: AccountKeys): Operation;
2194
+ declare function buildSetWithdrawVestingRouteOp(fromAccount: string, toAccount: string, percent: number, autoVest: boolean): Operation;
1827
2195
  /**
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
2196
+ * Builds a convert operation (HBD to HIVE).
2197
+ * @param owner - Account converting HBD
2198
+ * @param amount - Amount of HBD to convert (e.g., "1.000 HBD")
2199
+ * @param requestId - Unique request ID (use timestamp)
2200
+ * @returns Convert operation
1832
2201
  */
1833
- declare function buildClaimAccountOp(creator: string, fee: string): Operation;
2202
+ declare function buildConvertOp(owner: string, amount: string, requestId: number): Operation;
1834
2203
  /**
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
2204
+ * Builds a collateralized convert operation (HIVE to HBD via collateral).
2205
+ * @param owner - Account converting HIVE
2206
+ * @param amount - Amount of HIVE to convert (e.g., "1.000 HIVE")
2207
+ * @param requestId - Unique request ID (use timestamp)
2208
+ * @returns Collateralized convert operation
1844
2209
  */
1845
- declare function buildGrantPostingPermissionOp(account: string, currentPosting: Authority, grantedAccount: string, weightThreshold: number, memoKey: string, jsonMetadata: string): Operation;
2210
+ declare function buildCollateralizedConvertOp(owner: string, amount: string, requestId: number): Operation;
1846
2211
  /**
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
2212
+ * Builds a delegate RC operation (custom_json).
2213
+ * @param from - Account delegating RC
2214
+ * @param delegatees - Single delegatee or comma-separated list
2215
+ * @param maxRc - Maximum RC to delegate (in mana units)
2216
+ * @returns Custom JSON operation for RC delegation
1855
2217
  */
1856
- declare function buildRevokePostingPermissionOp(account: string, currentPosting: Authority, revokedAccount: string, memoKey: string, jsonMetadata: string): Operation;
1857
2218
  /**
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
2219
+ * Builds a SPK Network custom_json operation.
2220
+ * @param from - Account performing the operation
2221
+ * @param id - SPK operation ID (e.g., "spkcc_spk_send", "spkcc_gov_up")
2222
+ * @param amount - Amount (multiplied by 1000 internally)
2223
+ * @returns Custom JSON operation
1863
2224
  */
1864
- declare function buildChangeRecoveryAccountOp(accountToRecover: string, newRecoveryAccount: string, extensions?: any[]): Operation;
2225
+ declare function buildSpkCustomJsonOp(from: string, id: string, amount: number): Operation;
1865
2226
  /**
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
2227
+ * Builds a Hive Engine custom_json operation.
2228
+ * @param from - Account performing the operation
2229
+ * @param contractAction - Engine contract action (e.g., "transfer", "stake")
2230
+ * @param contractPayload - Payload for the contract action
2231
+ * @param contractName - Engine contract name (defaults to "tokens")
2232
+ * @returns Custom JSON operation
1872
2233
  */
1873
- declare function buildRequestAccountRecoveryOp(recoveryAccount: string, accountToRecover: string, newOwnerAuthority: Authority, extensions?: any[]): Operation;
2234
+ declare function buildEngineOp(from: string, contractAction: string, contractPayload: Record<string, string>, contractName?: string): Operation;
1874
2235
  /**
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
2236
+ * Builds a scot_claim_token operation (posting authority).
2237
+ * @param account - Account claiming rewards
2238
+ * @param tokens - Array of token symbols to claim
2239
+ * @returns Custom JSON operation
1881
2240
  */
1882
- declare function buildRecoverAccountOp(accountToRecover: string, newOwnerAuthority: Authority, recentOwnerAuthority: Authority, extensions?: any[]): Operation;
2241
+ declare function buildEngineClaimOp(account: string, tokens: string[]): Operation;
2242
+ declare function buildDelegateRcOp(from: string, delegatees: string, maxRc: string | number): Operation;
1883
2243
 
1884
2244
  /**
1885
- * Ecency-Specific Operations
1886
- * Custom operations for Ecency platform features (Points, Boost, Promote, etc.)
2245
+ * Social Operations
2246
+ * Operations for following, muting, and managing social relationships
1887
2247
  */
1888
2248
  /**
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
2249
+ * Builds a follow operation (custom_json).
2250
+ * @param follower - Account following
2251
+ * @param following - Account to follow
2252
+ * @returns Custom JSON operation for follow
1895
2253
  */
1896
- declare function buildBoostOp(user: string, author: string, permlink: string, amount: string): Operation;
2254
+ declare function buildFollowOp(follower: string, following: string): Operation;
1897
2255
  /**
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
2256
+ * Builds an unfollow operation (custom_json).
2257
+ * @param follower - Account unfollowing
2258
+ * @param following - Account to unfollow
2259
+ * @returns Custom JSON operation for unfollow
1904
2260
  */
1905
- declare function buildBoostOpWithPoints(user: string, author: string, permlink: string, points: number): Operation;
2261
+ declare function buildUnfollowOp(follower: string, following: string): Operation;
1906
2262
  /**
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
2263
+ * Builds an ignore/mute operation (custom_json).
2264
+ * @param follower - Account ignoring
2265
+ * @param following - Account to ignore
2266
+ * @returns Custom JSON operation for ignore
1912
2267
  */
1913
- declare function buildBoostPlusOp(user: string, account: string, duration: number): Operation;
2268
+ declare function buildIgnoreOp(follower: string, following: string): Operation;
1914
2269
  /**
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
2270
+ * Builds an unignore/unmute operation (custom_json).
2271
+ * @param follower - Account unignoring
2272
+ * @param following - Account to unignore
2273
+ * @returns Custom JSON operation for unignore
1921
2274
  */
1922
- declare function buildPromoteOp(user: string, author: string, permlink: string, duration: number): Operation;
2275
+ declare function buildUnignoreOp(follower: string, following: string): Operation;
1923
2276
  /**
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
2277
+ * Builds a Hive Notify set last read operation (custom_json).
2278
+ * @param username - Account setting last read
2279
+ * @param date - ISO date string (defaults to now)
2280
+ * @returns Array of custom JSON operations for setting last read
1930
2281
  */
1931
- declare function buildPointTransferOp(sender: string, receiver: string, amount: string, memo: string): Operation;
2282
+ declare function buildSetLastReadOps(username: string, date?: string): Operation[];
2283
+
1932
2284
  /**
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
2285
+ * Governance Operations
2286
+ * Operations for witness voting, proposals, and proxy management
1939
2287
  */
1940
- declare function buildMultiPointTransferOps(sender: string, destinations: string, amount: string, memo: string): Operation[];
1941
2288
  /**
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
2289
+ * Builds an account witness vote operation.
2290
+ * @param account - Account voting
2291
+ * @param witness - Witness account name
2292
+ * @param approve - True to approve, false to disapprove
2293
+ * @returns Account witness vote operation
1945
2294
  */
1946
- declare function buildCommunityRegistrationOp(name: string): Operation;
2295
+ declare function buildWitnessVoteOp(account: string, witness: string, approve: boolean): Operation;
1947
2296
  /**
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
2297
+ * Builds an account witness proxy operation.
2298
+ * @param account - Account setting proxy
2299
+ * @param proxy - Proxy account name (empty string to remove proxy)
2300
+ * @returns Account witness proxy operation
1954
2301
  */
1955
- declare function buildActiveCustomJsonOp(username: string, operationId: string, json: Record<string, any>): Operation;
2302
+ declare function buildWitnessProxyOp(account: string, proxy: string): Operation;
1956
2303
  /**
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
2304
+ * Payload for proposal creation
1963
2305
  */
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;
2306
+ interface ProposalCreatePayload {
2307
+ receiver: string;
2308
+ subject: string;
2309
+ permlink: string;
2310
+ start: string;
2311
+ end: string;
2312
+ dailyPay: string;
1972
2313
  }
1973
- declare function useGrantPostingPermission(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, GrantPostingPermissionPayload, unknown>;
2314
+ /**
2315
+ * Builds a create proposal operation.
2316
+ * @param creator - Account creating the proposal
2317
+ * @param payload - Proposal details (must include start, end, and dailyPay)
2318
+ * @returns Create proposal operation
2319
+ */
2320
+ declare function buildProposalCreateOp(creator: string, payload: ProposalCreatePayload): Operation;
2321
+ /**
2322
+ * Builds an update proposal votes operation.
2323
+ * @param voter - Account voting
2324
+ * @param proposalIds - Array of proposal IDs
2325
+ * @param approve - True to approve, false to disapprove
2326
+ * @returns Update proposal votes operation
2327
+ */
2328
+ declare function buildProposalVoteOp(voter: string, proposalIds: number[], approve: boolean): Operation;
2329
+ /**
2330
+ * Builds a remove proposal operation.
2331
+ * @param proposalOwner - Owner of the proposal
2332
+ * @param proposalIds - Array of proposal IDs to remove
2333
+ * @returns Remove proposal operation
2334
+ */
2335
+ declare function buildRemoveProposalOp(proposalOwner: string, proposalIds: number[]): Operation;
2336
+ /**
2337
+ * Builds an update proposal operation.
2338
+ * @param proposalId - Proposal ID to update (must be a valid number, including 0)
2339
+ * @param creator - Account that created the proposal
2340
+ * @param dailyPay - New daily pay amount
2341
+ * @param subject - New subject
2342
+ * @param permlink - New permlink
2343
+ * @returns Update proposal operation
2344
+ */
2345
+ declare function buildUpdateProposalOp(proposalId: number, creator: string, dailyPay: string, subject: string, permlink: string): Operation;
1974
2346
 
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;
2347
+ /**
2348
+ * Community Operations
2349
+ * Operations for managing Hive communities
2350
+ */
2351
+ /**
2352
+ * Builds a subscribe to community operation (custom_json).
2353
+ * @param username - Account subscribing
2354
+ * @param community - Community name (e.g., "hive-123456")
2355
+ * @returns Custom JSON operation for subscribe
2356
+ */
2357
+ declare function buildSubscribeOp(username: string, community: string): Operation;
2358
+ /**
2359
+ * Builds an unsubscribe from community operation (custom_json).
2360
+ * @param username - Account unsubscribing
2361
+ * @param community - Community name (e.g., "hive-123456")
2362
+ * @returns Custom JSON operation for unsubscribe
2363
+ */
2364
+ declare function buildUnsubscribeOp(username: string, community: string): Operation;
2365
+ /**
2366
+ * Builds a set user role in community operation (custom_json).
2367
+ * @param username - Account setting the role (must have permission)
2368
+ * @param community - Community name (e.g., "hive-123456")
2369
+ * @param account - Account to set role for
2370
+ * @param role - Role name (e.g., "admin", "mod", "member", "guest")
2371
+ * @returns Custom JSON operation for setRole
2372
+ */
2373
+ declare function buildSetRoleOp(username: string, community: string, account: string, role: string): Operation;
2374
+ /**
2375
+ * Community properties for update
2376
+ */
2377
+ interface CommunityProps {
2378
+ title: string;
2379
+ about: string;
2380
+ lang: string;
2381
+ description: string;
2382
+ flag_text: string;
2383
+ is_nsfw: boolean;
1981
2384
  }
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
- };
2385
+ /**
2386
+ * Builds an update community properties operation (custom_json).
2387
+ * @param username - Account updating (must be community admin)
2388
+ * @param community - Community name (e.g., "hive-123456")
2389
+ * @param props - Properties to update
2390
+ * @returns Custom JSON operation for updateProps
2391
+ */
2392
+ declare function buildUpdateCommunityOp(username: string, community: string, props: CommunityProps): Operation;
2393
+ /**
2394
+ * Builds a pin/unpin post in community operation (custom_json).
2395
+ * @param username - Account pinning (must have permission)
2396
+ * @param community - Community name (e.g., "hive-123456")
2397
+ * @param account - Post author
2398
+ * @param permlink - Post permlink
2399
+ * @param pin - True to pin, false to unpin
2400
+ * @returns Custom JSON operation for pinPost/unpinPost
2401
+ */
2402
+ declare function buildPinPostOp(username: string, community: string, account: string, permlink: string, pin: boolean): Operation;
2403
+ /**
2404
+ * Builds a mute/unmute post in community operation (custom_json).
2405
+ * @param username - Account muting (must have permission)
2406
+ * @param community - Community name (e.g., "hive-123456")
2407
+ * @param account - Post author
2408
+ * @param permlink - Post permlink
2409
+ * @param notes - Mute reason/notes
2410
+ * @param mute - True to mute, false to unmute
2411
+ * @returns Custom JSON operation for mutePost/unmutePost
2412
+ */
2413
+ declare function buildMutePostOp(username: string, community: string, account: string, permlink: string, notes: string, mute: boolean): Operation;
2414
+ /**
2415
+ * Builds a mute/unmute user in community operation (custom_json).
2416
+ * @param username - Account performing mute (must have permission)
2417
+ * @param community - Community name (e.g., "hive-123456")
2418
+ * @param account - Account to mute/unmute
2419
+ * @param notes - Mute reason/notes
2420
+ * @param mute - True to mute, false to unmute
2421
+ * @returns Custom JSON operation for muteUser/unmuteUser
2422
+ */
2423
+ declare function buildMuteUserOp(username: string, community: string, account: string, notes: string, mute: boolean): Operation;
2424
+ /**
2425
+ * Builds a flag post in community operation (custom_json).
2426
+ * @param username - Account flagging
2427
+ * @param community - Community name (e.g., "hive-123456")
2428
+ * @param account - Post author
2429
+ * @param permlink - Post permlink
2430
+ * @param notes - Flag reason/notes
2431
+ * @returns Custom JSON operation for flagPost
2432
+ */
2433
+ declare function buildFlagPostOp(username: string, community: string, account: string, permlink: string, notes: string): Operation;
2165
2434
 
2166
2435
  /**
2167
- * Get follow count (followers and following) for an account
2436
+ * Market Operations
2437
+ * Operations for trading on the internal Hive market
2168
2438
  */
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
2439
  /**
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)
2440
+ * Transaction type for buy/sell operations
2185
2441
  */
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
-
2442
+ declare enum BuySellTransactionType {
2443
+ Buy = "buy",
2444
+ Sell = "sell"
2445
+ }
2195
2446
  /**
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)
2447
+ * Order ID prefix for different order types
2202
2448
  */
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
-
2449
+ declare enum OrderIdPrefix {
2450
+ EMPTY = "",
2451
+ SWAP = "9"
2452
+ }
2212
2453
  /**
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)
2454
+ * Builds a limit order create operation.
2455
+ * @param owner - Account creating the order
2456
+ * @param amountToSell - Amount and asset to sell
2457
+ * @param minToReceive - Minimum amount and asset to receive
2458
+ * @param fillOrKill - If true, order must be filled immediately or cancelled
2459
+ * @param expiration - Expiration date (ISO string)
2460
+ * @param orderId - Unique order ID
2461
+ * @returns Limit order create operation
2217
2462
  */
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
-
2463
+ declare function buildLimitOrderCreateOp(owner: string, amountToSell: string, minToReceive: string, fillOrKill: boolean, expiration: string, orderId: number): Operation;
2227
2464
  /**
2228
- * Lookup accounts by username prefix
2465
+ * Builds a limit order create operation with automatic formatting.
2466
+ * This is a convenience method that handles buy/sell logic and formatting.
2229
2467
  *
2230
- * @param query - Username prefix to search for
2231
- * @param limit - Maximum number of results (default: 50)
2468
+ * For Buy orders: You're buying HIVE with HBD
2469
+ * - amountToSell: HBD amount you're spending
2470
+ * - minToReceive: HIVE amount you want to receive
2471
+ *
2472
+ * For Sell orders: You're selling HIVE for HBD
2473
+ * - amountToSell: HIVE amount you're selling
2474
+ * - minToReceive: HBD amount you want to receive
2475
+ *
2476
+ * @param owner - Account creating the order
2477
+ * @param amountToSell - Amount to sell (number)
2478
+ * @param minToReceive - Minimum to receive (number)
2479
+ * @param orderType - Buy or Sell
2480
+ * @param idPrefix - Order ID prefix
2481
+ * @returns Limit order create operation
2232
2482
  */
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
- };
2483
+ declare function buildLimitOrderCreateOpWithType(owner: string, amountToSell: number, minToReceive: number, orderType: BuySellTransactionType, idPrefix?: OrderIdPrefix): Operation;
2484
+ /**
2485
+ * Builds a limit order cancel operation.
2486
+ * @param owner - Account cancelling the order
2487
+ * @param orderId - Order ID to cancel
2488
+ * @returns Limit order cancel operation
2489
+ */
2490
+ declare function buildLimitOrderCancelOp(owner: string, orderId: number): Operation;
2491
+ /**
2492
+ * Builds a claim reward balance operation.
2493
+ * @param account - Account claiming rewards
2494
+ * @param rewardHive - HIVE reward to claim (e.g., "0.000 HIVE")
2495
+ * @param rewardHbd - HBD reward to claim (e.g., "0.000 HBD")
2496
+ * @param rewardVests - VESTS reward to claim (e.g., "0.000000 VESTS")
2497
+ * @returns Claim reward balance operation
2498
+ */
2499
+ declare function buildClaimRewardBalanceOp(account: string, rewardHive: string, rewardHbd: string, rewardVests: string): Operation;
2241
2500
 
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[];
2501
+ /**
2502
+ * Account Operations
2503
+ * Operations for managing accounts, keys, and permissions
2504
+ */
2505
+ /**
2506
+ * Authority structure for account operations
2507
+ */
2508
+ interface Authority {
2509
+ weight_threshold: number;
2510
+ account_auths: [string, number][];
2511
+ key_auths: [string, number][];
2264
2512
  }
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
2513
  /**
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)
2514
+ * Builds an account update operation.
2515
+ * @param account - Account name
2516
+ * @param owner - Owner authority (optional)
2517
+ * @param active - Active authority (optional)
2518
+ * @param posting - Posting authority (optional)
2519
+ * @param memoKey - Memo public key
2520
+ * @param jsonMetadata - Account JSON metadata
2521
+ * @returns Account update operation
2299
2522
  */
2300
- type AuthorityLevel = 'posting' | 'active' | 'owner' | 'memo';
2523
+ declare function buildAccountUpdateOp(account: string, owner: Authority | undefined, active: Authority | undefined, posting: Authority | undefined, memoKey: string, jsonMetadata: string): Operation;
2301
2524
  /**
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
2525
+ * Builds an account update2 operation (for posting_json_metadata).
2526
+ * @param account - Account name
2527
+ * @param jsonMetadata - Account JSON metadata (legacy, usually empty)
2528
+ * @param postingJsonMetadata - Posting JSON metadata string
2529
+ * @param extensions - Extensions array
2530
+ * @returns Account update2 operation
2313
2531
  */
2314
- declare const OPERATION_AUTHORITY_MAP: Record<string, AuthorityLevel>;
2532
+ declare function buildAccountUpdate2Op(account: string, jsonMetadata: string, postingJsonMetadata: string, extensions: any[]): Operation;
2315
2533
  /**
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
- * ```
2534
+ * Public keys for account creation
2346
2535
  */
2347
- declare function getCustomJsonAuthority(customJsonOp: Operation): AuthorityLevel;
2536
+ interface AccountKeys {
2537
+ ownerPublicKey: string;
2538
+ activePublicKey: string;
2539
+ postingPublicKey: string;
2540
+ memoPublicKey: string;
2541
+ }
2348
2542
  /**
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
- * ```
2543
+ * Builds an account create operation.
2544
+ * @param creator - Creator account name
2545
+ * @param newAccountName - New account name
2546
+ * @param keys - Public keys for the new account
2547
+ * @param fee - Creation fee (e.g., "3.000 HIVE")
2548
+ * @returns Account create operation
2376
2549
  */
2377
- declare function getProposalAuthority(proposalOp: Operation): AuthorityLevel;
2550
+ declare function buildAccountCreateOp(creator: string, newAccountName: string, keys: AccountKeys, fee: string): Operation;
2378
2551
  /**
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
- * ```
2552
+ * Builds a create claimed account operation (using account creation tokens).
2553
+ * @param creator - Creator account name
2554
+ * @param newAccountName - New account name
2555
+ * @param keys - Public keys for the new account
2556
+ * @returns Create claimed account operation
2395
2557
  */
2396
- declare function getOperationAuthority(op: Operation): AuthorityLevel;
2558
+ declare function buildCreateClaimedAccountOp(creator: string, newAccountName: string, keys: AccountKeys): Operation;
2397
2559
  /**
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
- * ```
2560
+ * Builds a claim account operation.
2561
+ * @param creator - Account claiming the token
2562
+ * @param fee - Fee for claiming (usually "0.000 HIVE" for RC-based claims)
2563
+ * @returns Claim account operation
2428
2564
  */
2429
- declare function getRequiredAuthority(ops: Operation[]): AuthorityLevel;
2430
-
2565
+ declare function buildClaimAccountOp(creator: string, fee: string): Operation;
2431
2566
  /**
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
- * ```
2567
+ * Builds an operation to grant posting permission to another account.
2568
+ * Helper that modifies posting authority to add an account.
2569
+ * @param account - Account granting permission
2570
+ * @param currentPosting - Current posting authority
2571
+ * @param grantedAccount - Account to grant permission to
2572
+ * @param weightThreshold - Weight threshold of the granted account
2573
+ * @param memoKey - Memo public key (required by Hive blockchain)
2574
+ * @param jsonMetadata - Account JSON metadata (required by Hive blockchain)
2575
+ * @returns Account update operation with modified posting authority
2489
2576
  */
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
-
2577
+ declare function buildGrantPostingPermissionOp(account: string, currentPosting: Authority, grantedAccount: string, weightThreshold: number, memoKey: string, jsonMetadata: string): Operation;
2556
2578
  /**
2557
- * Chain error handling utilities
2558
- * Extracted from web's operations.ts and mobile's dhive.ts error handling patterns
2579
+ * Builds an operation to revoke posting permission from an account.
2580
+ * Helper that modifies posting authority to remove an account.
2581
+ * @param account - Account revoking permission
2582
+ * @param currentPosting - Current posting authority
2583
+ * @param revokedAccount - Account to revoke permission from
2584
+ * @param memoKey - Memo public key (required by Hive blockchain)
2585
+ * @param jsonMetadata - Account JSON metadata (required by Hive blockchain)
2586
+ * @returns Account update operation with modified posting authority
2559
2587
  */
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
- }
2588
+ declare function buildRevokePostingPermissionOp(account: string, currentPosting: Authority, revokedAccount: string, memoKey: string, jsonMetadata: string): Operation;
2575
2589
  /**
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
- * ```
2590
+ * Builds a change recovery account operation.
2591
+ * @param accountToRecover - Account to change recovery account for
2592
+ * @param newRecoveryAccount - New recovery account name
2593
+ * @param extensions - Extensions array
2594
+ * @returns Change recovery account operation
2592
2595
  */
2593
- declare function parseChainError(error: any): ParsedChainError;
2596
+ declare function buildChangeRecoveryAccountOp(accountToRecover: string, newRecoveryAccount: string, extensions?: any[]): Operation;
2594
2597
  /**
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
- * ```
2598
+ * Builds a request account recovery operation.
2599
+ * @param recoveryAccount - Recovery account performing the recovery
2600
+ * @param accountToRecover - Account to recover
2601
+ * @param newOwnerAuthority - New owner authority
2602
+ * @param extensions - Extensions array
2603
+ * @returns Request account recovery operation
2613
2604
  */
2614
- declare function formatError(error: any): [string, ErrorType];
2605
+ declare function buildRequestAccountRecoveryOp(recoveryAccount: string, accountToRecover: string, newOwnerAuthority: Authority, extensions?: any[]): Operation;
2615
2606
  /**
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
- * ```
2607
+ * Builds a recover account operation.
2608
+ * @param accountToRecover - Account to recover
2609
+ * @param newOwnerAuthority - New owner authority
2610
+ * @param recentOwnerAuthority - Recent owner authority (for proof)
2611
+ * @param extensions - Extensions array
2612
+ * @returns Recover account operation
2634
2613
  */
2635
- declare function shouldTriggerAuthFallback(error: any): boolean;
2614
+ declare function buildRecoverAccountOp(accountToRecover: string, newOwnerAuthority: Authority, recentOwnerAuthority: Authority, extensions?: any[]): Operation;
2615
+
2636
2616
  /**
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
- * ```
2617
+ * Ecency-Specific Operations
2618
+ * Custom operations for Ecency platform features (Points, Boost, Promote, etc.)
2653
2619
  */
2654
- declare function isResourceCreditsError(error: any): boolean;
2655
2620
  /**
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
2621
+ * Builds an Ecency boost operation (custom_json with active authority).
2622
+ * @param user - User account
2623
+ * @param author - Post author
2624
+ * @param permlink - Post permlink
2625
+ * @param amount - Amount to boost (e.g., "1.000 POINT")
2626
+ * @returns Custom JSON operation for boost
2661
2627
  */
2662
- declare function isInfoError(error: any): boolean;
2628
+ declare function buildBoostOp(user: string, author: string, permlink: string, amount: string): Operation;
2663
2629
  /**
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
2630
+ * Builds an Ecency boost operation with numeric point value.
2631
+ * @param user - User account
2632
+ * @param author - Post author
2633
+ * @param permlink - Post permlink
2634
+ * @param points - Points to spend (will be formatted as "X.XXX POINT", must be a valid finite number)
2635
+ * @returns Custom JSON operation for boost
2668
2636
  */
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
- }
2637
+ declare function buildBoostOpWithPoints(user: string, author: string, permlink: string, points: number): Operation;
2638
+ /**
2639
+ * Builds an Ecency Boost Plus subscription operation (custom_json).
2640
+ * @param user - User account
2641
+ * @param account - Account to subscribe
2642
+ * @param duration - Subscription duration in days (must be a valid finite number)
2643
+ * @returns Custom JSON operation for boost plus
2644
+ */
2645
+ declare function buildBoostPlusOp(user: string, account: string, duration: number): Operation;
2646
+ /**
2647
+ * Builds an Ecency promote operation (custom_json).
2648
+ * @param user - User account
2649
+ * @param author - Post author
2650
+ * @param permlink - Post permlink
2651
+ * @param duration - Promotion duration in days (must be a valid finite number)
2652
+ * @returns Custom JSON operation for promote
2653
+ */
2654
+ declare function buildPromoteOp(user: string, author: string, permlink: string, duration: number): Operation;
2655
+ /**
2656
+ * Builds an Ecency point transfer operation (custom_json).
2657
+ * @param sender - Sender account
2658
+ * @param receiver - Receiver account
2659
+ * @param amount - Amount to transfer
2660
+ * @param memo - Transfer memo
2661
+ * @returns Custom JSON operation for point transfer
2662
+ */
2663
+ declare function buildPointTransferOp(sender: string, receiver: string, amount: string, memo: string): Operation;
2664
+ /**
2665
+ * Builds multiple Ecency point transfer operations for multiple recipients.
2666
+ * @param sender - Sender account
2667
+ * @param destinations - Comma or space separated list of recipients
2668
+ * @param amount - Amount to transfer
2669
+ * @param memo - Transfer memo
2670
+ * @returns Array of custom JSON operations for point transfers
2671
+ */
2672
+ declare function buildMultiPointTransferOps(sender: string, destinations: string, amount: string, memo: string): Operation[];
2673
+ /**
2674
+ * Builds an Ecency community rewards registration operation (custom_json).
2675
+ * @param name - Account name to register
2676
+ * @returns Custom JSON operation for community registration
2677
+ */
2678
+ declare function buildCommunityRegistrationOp(name: string): Operation;
2679
+ /**
2680
+ * Builds a generic active authority custom_json operation.
2681
+ * Used for various Ecency operations that require active authority.
2682
+ * @param username - Account performing the operation
2683
+ * @param operationId - Custom JSON operation ID
2684
+ * @param json - JSON payload
2685
+ * @returns Custom JSON operation with active authority
2686
+ */
2687
+ declare function buildActiveCustomJsonOp(username: string, operationId: string, json: Record<string, any>): Operation;
2688
+ /**
2689
+ * Builds a generic posting authority custom_json operation.
2690
+ * Used for various operations that require posting authority.
2691
+ * @param username - Account performing the operation
2692
+ * @param operationId - Custom JSON operation ID
2693
+ * @param json - JSON payload
2694
+ * @returns Custom JSON operation with posting authority
2695
+ */
2696
+ declare function buildPostingCustomJsonOp(username: string, operationId: string, json: Record<string, any> | any[]): Operation;
2691
2697
 
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
- };
2698
+ interface GrantPostingPermissionPayload {
2699
+ currentPosting: Authority;
2700
+ grantedAccount: string;
2701
+ weightThreshold: number;
2702
+ memoKey: string;
2703
+ jsonMetadata: string;
2704
+ }
2705
+ declare function useGrantPostingPermission(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, GrantPostingPermissionPayload, unknown>;
2700
2706
 
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;
2707
+ interface CreateAccountPayload {
2708
+ newAccountName: string;
2709
+ keys: AccountKeys;
2710
+ fee: string;
2711
+ /** If true, uses a claimed account token instead of paying the fee */
2712
+ useClaimed?: boolean;
2712
2713
  }
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
- };
2714
+ declare function useCreateAccount(username: string | undefined, auth?: AuthContextV2): _tanstack_react_query.UseMutationResult<unknown, Error, CreateAccountPayload, unknown>;
2725
2715
 
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"];
2716
+ declare function getAccountFullQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
2717
+ name: any;
2718
+ owner: any;
2719
+ active: any;
2720
+ posting: any;
2721
+ memo_key: any;
2722
+ post_count: any;
2723
+ created: any;
2724
+ posting_json_metadata: any;
2725
+ last_vote_time: any;
2726
+ last_post: any;
2727
+ json_metadata: any;
2728
+ reward_hive_balance: any;
2729
+ reward_hbd_balance: any;
2730
+ reward_vesting_hive: any;
2731
+ reward_vesting_balance: any;
2732
+ balance: any;
2733
+ hbd_balance: any;
2734
+ savings_balance: any;
2735
+ savings_hbd_balance: any;
2736
+ savings_hbd_last_interest_payment: any;
2737
+ savings_hbd_seconds_last_update: any;
2738
+ savings_hbd_seconds: any;
2739
+ next_vesting_withdrawal: any;
2740
+ pending_claimed_accounts: any;
2741
+ vesting_shares: any;
2742
+ delegated_vesting_shares: any;
2743
+ received_vesting_shares: any;
2744
+ vesting_withdraw_rate: any;
2745
+ to_withdraw: any;
2746
+ withdrawn: any;
2747
+ witness_votes: any;
2748
+ proxy: any;
2749
+ recovery_account: any;
2750
+ proxied_vsf_votes: any;
2751
+ voting_manabar: any;
2752
+ voting_power: any;
2753
+ downvote_manabar: any;
2754
+ follow_stats: AccountFollowStats | undefined;
2755
+ reputation: number;
2756
+ profile: AccountProfile;
2757
+ }, Error, {
2758
+ name: any;
2759
+ owner: any;
2760
+ active: any;
2761
+ posting: any;
2762
+ memo_key: any;
2763
+ post_count: any;
2764
+ created: any;
2765
+ posting_json_metadata: any;
2766
+ last_vote_time: any;
2767
+ last_post: any;
2768
+ json_metadata: any;
2769
+ reward_hive_balance: any;
2770
+ reward_hbd_balance: any;
2771
+ reward_vesting_hive: any;
2772
+ reward_vesting_balance: any;
2773
+ balance: any;
2774
+ hbd_balance: any;
2775
+ savings_balance: any;
2776
+ savings_hbd_balance: any;
2777
+ savings_hbd_last_interest_payment: any;
2778
+ savings_hbd_seconds_last_update: any;
2779
+ savings_hbd_seconds: any;
2780
+ next_vesting_withdrawal: any;
2781
+ pending_claimed_accounts: any;
2782
+ vesting_shares: any;
2783
+ delegated_vesting_shares: any;
2784
+ received_vesting_shares: any;
2785
+ vesting_withdraw_rate: any;
2786
+ to_withdraw: any;
2787
+ withdrawn: any;
2788
+ witness_votes: any;
2789
+ proxy: any;
2790
+ recovery_account: any;
2791
+ proxied_vsf_votes: any;
2792
+ voting_manabar: any;
2793
+ voting_power: any;
2794
+ downvote_manabar: any;
2795
+ follow_stats: AccountFollowStats | undefined;
2796
+ reputation: number;
2797
+ profile: AccountProfile;
2798
+ }, (string | undefined)[]>, "queryFn"> & {
2799
+ queryFn?: _tanstack_react_query.QueryFunction<{
2800
+ name: any;
2801
+ owner: any;
2802
+ active: any;
2803
+ posting: any;
2804
+ memo_key: any;
2805
+ post_count: any;
2806
+ created: any;
2807
+ posting_json_metadata: any;
2808
+ last_vote_time: any;
2809
+ last_post: any;
2810
+ json_metadata: any;
2811
+ reward_hive_balance: any;
2812
+ reward_hbd_balance: any;
2813
+ reward_vesting_hive: any;
2814
+ reward_vesting_balance: any;
2815
+ balance: any;
2816
+ hbd_balance: any;
2817
+ savings_balance: any;
2818
+ savings_hbd_balance: any;
2819
+ savings_hbd_last_interest_payment: any;
2820
+ savings_hbd_seconds_last_update: any;
2821
+ savings_hbd_seconds: any;
2822
+ next_vesting_withdrawal: any;
2823
+ pending_claimed_accounts: any;
2824
+ vesting_shares: any;
2825
+ delegated_vesting_shares: any;
2826
+ received_vesting_shares: any;
2827
+ vesting_withdraw_rate: any;
2828
+ to_withdraw: any;
2829
+ withdrawn: any;
2830
+ witness_votes: any;
2831
+ proxy: any;
2832
+ recovery_account: any;
2833
+ proxied_vsf_votes: any;
2834
+ voting_manabar: any;
2835
+ voting_power: any;
2836
+ downvote_manabar: any;
2837
+ follow_stats: AccountFollowStats | undefined;
2838
+ reputation: number;
2839
+ profile: AccountProfile;
2840
+ }, (string | undefined)[], never> | undefined;
2841
+ } & {
2842
+ queryKey: (string | undefined)[] & {
2843
+ [dataTagSymbol]: {
2844
+ name: any;
2845
+ owner: any;
2846
+ active: any;
2847
+ posting: any;
2848
+ memo_key: any;
2849
+ post_count: any;
2850
+ created: any;
2851
+ posting_json_metadata: any;
2852
+ last_vote_time: any;
2853
+ last_post: any;
2854
+ json_metadata: any;
2855
+ reward_hive_balance: any;
2856
+ reward_hbd_balance: any;
2857
+ reward_vesting_hive: any;
2858
+ reward_vesting_balance: any;
2859
+ balance: any;
2860
+ hbd_balance: any;
2861
+ savings_balance: any;
2862
+ savings_hbd_balance: any;
2863
+ savings_hbd_last_interest_payment: any;
2864
+ savings_hbd_seconds_last_update: any;
2865
+ savings_hbd_seconds: any;
2866
+ next_vesting_withdrawal: any;
2867
+ pending_claimed_accounts: any;
2868
+ vesting_shares: any;
2869
+ delegated_vesting_shares: any;
2870
+ received_vesting_shares: any;
2871
+ vesting_withdraw_rate: any;
2872
+ to_withdraw: any;
2873
+ withdrawn: any;
2874
+ witness_votes: any;
2875
+ proxy: any;
2876
+ recovery_account: any;
2877
+ proxied_vsf_votes: any;
2878
+ voting_manabar: any;
2879
+ voting_power: any;
2880
+ downvote_manabar: any;
2881
+ follow_stats: AccountFollowStats | undefined;
2882
+ reputation: number;
2883
+ profile: AccountProfile;
2884
+ };
2885
+ [dataTagErrorSymbol]: Error;
2912
2886
  };
2913
2887
  };
2914
2888
 
2915
- declare function encodeObj(o: any): string;
2916
- declare function decodeObj(o: any): any;
2889
+ declare function getAccountsQueryOptions(usernames: string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<FullAccount[], Error, FullAccount[], string[]>, "queryFn"> & {
2890
+ queryFn?: _tanstack_react_query.QueryFunction<FullAccount[], string[], never> | undefined;
2891
+ } & {
2892
+ queryKey: string[] & {
2893
+ [dataTagSymbol]: FullAccount[];
2894
+ [dataTagErrorSymbol]: Error;
2895
+ };
2896
+ };
2917
2897
 
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;
2898
+ /**
2899
+ * Get follow count (followers and following) for an account
2900
+ */
2901
+ declare function getFollowCountQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountFollowStats, Error, AccountFollowStats, string[]>, "queryFn"> & {
2902
+ queryFn?: _tanstack_react_query.QueryFunction<AccountFollowStats, string[], never> | undefined;
2903
+ } & {
2904
+ queryKey: string[] & {
2905
+ [dataTagSymbol]: AccountFollowStats;
2906
+ [dataTagErrorSymbol]: Error;
2907
+ };
2908
+ };
2934
2909
 
2935
- declare function getBoundFetch(): typeof fetch;
2910
+ /**
2911
+ * Get list of accounts following a user
2912
+ *
2913
+ * @param following - The account being followed
2914
+ * @param startFollower - Pagination start point (account name)
2915
+ * @param followType - Type of follow relationship (default: "blog")
2916
+ * @param limit - Maximum number of results (default: 100)
2917
+ */
2918
+ 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"> & {
2919
+ queryFn?: _tanstack_react_query.QueryFunction<Follow[], (string | number)[], never> | undefined;
2920
+ } & {
2921
+ queryKey: (string | number)[] & {
2922
+ [dataTagSymbol]: Follow[];
2923
+ [dataTagErrorSymbol]: Error;
2924
+ };
2925
+ };
2936
2926
 
2937
- declare function isCommunity(value: unknown): boolean;
2927
+ /**
2928
+ * Get list of accounts that a user is following
2929
+ *
2930
+ * @param follower - The account doing the following
2931
+ * @param startFollowing - Pagination start point (account name)
2932
+ * @param followType - Type of follow relationship (default: "blog")
2933
+ * @param limit - Maximum number of results (default: 100)
2934
+ */
2935
+ 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"> & {
2936
+ queryFn?: _tanstack_react_query.QueryFunction<Follow[], (string | number)[], never> | undefined;
2937
+ } & {
2938
+ queryKey: (string | number)[] & {
2939
+ [dataTagSymbol]: Follow[];
2940
+ [dataTagErrorSymbol]: Error;
2941
+ };
2942
+ };
2938
2943
 
2939
2944
  /**
2940
- * Type guard to check if response is wrapped with pagination metadata
2945
+ * Get list of users that an account has muted
2946
+ *
2947
+ * @param username - The account username
2948
+ * @param limit - Maximum number of results (default: 100)
2941
2949
  */
2942
- declare function isWrappedResponse<T>(response: any): response is WrappedResponse<T>;
2950
+ declare function getMutedUsersQueryOptions(username: string | undefined, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string[], Error, string[], string[]>, "queryFn"> & {
2951
+ queryFn?: _tanstack_react_query.QueryFunction<string[], string[], never> | undefined;
2952
+ } & {
2953
+ queryKey: string[] & {
2954
+ [dataTagSymbol]: string[];
2955
+ [dataTagErrorSymbol]: Error;
2956
+ };
2957
+ };
2958
+
2943
2959
  /**
2944
- * Normalize response to wrapped format for backwards compatibility
2945
- * If the backend returns old format (array), convert it to wrapped format
2960
+ * Lookup accounts by username prefix
2961
+ *
2962
+ * @param query - Username prefix to search for
2963
+ * @param limit - Maximum number of results (default: 50)
2946
2964
  */
2947
- declare function normalizeToWrappedResponse<T>(response: T[] | WrappedResponse<T>, limit: number): WrappedResponse<T>;
2965
+ declare function lookupAccountsQueryOptions(query: string, limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string[], Error, string[], (string | number)[]>, "queryFn"> & {
2966
+ queryFn?: _tanstack_react_query.QueryFunction<string[], (string | number)[], never> | undefined;
2967
+ } & {
2968
+ queryKey: (string | number)[] & {
2969
+ [dataTagSymbol]: string[];
2970
+ [dataTagErrorSymbol]: Error;
2971
+ };
2972
+ };
2948
2973
 
2949
- declare function vestsToHp(vests: number, hivePerMVests: number): number;
2974
+ declare function getSearchAccountsByUsernameQueryOptions(query: string, limit?: number, excludeList?: string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string[], Error, string[], (string | string[] | undefined)[]>, "queryFn"> & {
2975
+ queryFn?: _tanstack_react_query.QueryFunction<string[], (string | string[] | undefined)[], never> | undefined;
2976
+ } & {
2977
+ queryKey: (string | string[] | undefined)[] & {
2978
+ [dataTagSymbol]: string[];
2979
+ [dataTagErrorSymbol]: Error;
2980
+ };
2981
+ };
2950
2982
 
2951
- declare function isEmptyDate(s: string | undefined): boolean;
2983
+ type AccountProfileToken = NonNullable<AccountProfile["tokens"]>[number];
2984
+ type WalletMetadataCandidate = Partial<AccountProfileToken> & {
2985
+ currency?: string;
2986
+ show?: boolean;
2987
+ address?: string;
2988
+ publicKey?: string;
2989
+ privateKey?: string;
2990
+ username?: string;
2991
+ };
2992
+ interface CheckUsernameWalletsPendingResponse {
2993
+ exist: boolean;
2994
+ tokens?: WalletMetadataCandidate[];
2995
+ wallets?: WalletMetadataCandidate[];
2996
+ }
2997
+ declare function checkUsernameWalletsPendingQueryOptions(username: string, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<CheckUsernameWalletsPendingResponse, Error, CheckUsernameWalletsPendingResponse, readonly unknown[]>, "queryFn"> & {
2998
+ queryFn?: _tanstack_react_query.QueryFunction<CheckUsernameWalletsPendingResponse, readonly unknown[], never> | undefined;
2999
+ } & {
3000
+ queryKey: readonly unknown[] & {
3001
+ [dataTagSymbol]: CheckUsernameWalletsPendingResponse;
3002
+ [dataTagErrorSymbol]: Error;
3003
+ };
3004
+ };
3005
+
3006
+ declare function getRelationshipBetweenAccountsQueryOptions(reference: string, target: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountRelationship, Error, AccountRelationship, string[]>, "queryFn"> & {
3007
+ queryFn?: _tanstack_react_query.QueryFunction<AccountRelationship, string[], never> | undefined;
3008
+ } & {
3009
+ queryKey: string[] & {
3010
+ [dataTagSymbol]: AccountRelationship;
3011
+ [dataTagErrorSymbol]: Error;
3012
+ };
3013
+ };
3014
+
3015
+ type Subscriptions = string[];
3016
+ declare function getAccountSubscriptionsQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Subscriptions, Error, Subscriptions, string[]>, "queryFn"> & {
3017
+ queryFn?: _tanstack_react_query.QueryFunction<Subscriptions, string[], never> | undefined;
3018
+ } & {
3019
+ queryKey: string[] & {
3020
+ [dataTagSymbol]: Subscriptions;
3021
+ [dataTagErrorSymbol]: Error;
3022
+ };
3023
+ };
2952
3024
 
2953
3025
  declare function getBookmarksQueryOptions(activeUsername: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountBookmark[], Error, AccountBookmark[], (string | undefined)[]>, "queryFn"> & {
2954
3026
  queryFn?: _tanstack_react_query.QueryFunction<AccountBookmark[], (string | undefined)[], never> | undefined;
@@ -3379,7 +3451,7 @@ declare function downVotingPower(account: FullAccount): number;
3379
3451
  declare function rcPower(account: RCAccount): number;
3380
3452
  declare function votingValue(account: FullAccount, dynamicProps: DynamicProps$1, votingPowerValue: number, weight?: number): number;
3381
3453
 
3382
- declare function useSignOperationByKey(username: string | undefined): _tanstack_react_query.UseMutationResult<_hiveio_dhive.TransactionConfirmation, Error, {
3454
+ declare function useSignOperationByKey(username: string | undefined): _tanstack_react_query.UseMutationResult<TransactionConfirmation, Error, {
3383
3455
  operation: Operation;
3384
3456
  keyOrSeed: string;
3385
3457
  }, unknown>;
@@ -3392,11 +3464,11 @@ declare function useSignOperationByHivesigner(callbackUri?: string): _tanstack_r
3392
3464
  operation: Operation;
3393
3465
  }, unknown>;
3394
3466
 
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;
3467
+ declare function getChainPropertiesQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, string[]>, "queryFn"> & {
3468
+ queryFn?: _tanstack_react_query.QueryFunction<any, string[], never> | undefined;
3397
3469
  } & {
3398
3470
  queryKey: string[] & {
3399
- [dataTagSymbol]: _hiveio_dhive.ChainProperties;
3471
+ [dataTagSymbol]: any;
3400
3472
  [dataTagErrorSymbol]: Error;
3401
3473
  };
3402
3474
  };
@@ -4724,11 +4796,11 @@ declare function getRcStatsQueryOptions(): _tanstack_react_query.OmitKeyof<_tans
4724
4796
  };
4725
4797
  };
4726
4798
 
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;
4799
+ declare function getAccountRcQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<RCAccount[], Error, RCAccount[], string[]>, "queryFn"> & {
4800
+ queryFn?: _tanstack_react_query.QueryFunction<RCAccount[], string[], never> | undefined;
4729
4801
  } & {
4730
4802
  queryKey: string[] & {
4731
- [dataTagSymbol]: _hiveio_dhive_lib_chain_rc.RCAccount[];
4803
+ [dataTagSymbol]: RCAccount[];
4732
4804
  [dataTagErrorSymbol]: Error;
4733
4805
  };
4734
4806
  };
@@ -5923,7 +5995,12 @@ type HiveTransaction = Transaction;
5923
5995
 
5924
5996
  type HiveOperationGroup = "" | "transfers" | "market-orders" | "interests" | "stake-operations" | "rewards";
5925
5997
 
5926
- type HiveOperationName = OperationName | VirtualOperationName;
5998
+ /**
5999
+ * All operation names (including virtual operations) extracted from hive-tx utils.
6000
+ * In hive-tx, utils.operations includes both real and virtual operations,
6001
+ * so there is no separate VirtualOperationName type.
6002
+ */
6003
+ type HiveOperationName = keyof typeof utils.operations;
5927
6004
  type HiveOperationFilterValue = HiveOperationGroup | HiveOperationName;
5928
6005
  type HiveOperationFilter = HiveOperationFilterValue | HiveOperationFilterValue[];
5929
6006
  type HiveOperationFilterKey = string;
@@ -6817,7 +6894,7 @@ declare const HIVE_ACCOUNT_OPERATION_GROUPS: Record<HiveOperationGroup, number[]
6817
6894
 
6818
6895
  declare const HIVE_OPERATION_LIST: HiveOperationName[];
6819
6896
 
6820
- declare const HIVE_OPERATION_ORDERS: Record<HiveOperationName, number>;
6897
+ 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
6898
  declare const HIVE_OPERATION_NAME_BY_ID: Record<number, HiveOperationName>;
6822
6899
 
6823
6900
  /**
@@ -7448,18 +7525,16 @@ declare function getSubscribers(community: string): Promise<Subscription[] | nul
7448
7525
  declare function getRelationshipBetweenAccounts(follower: string, following: string): Promise<AccountRelationship | null>;
7449
7526
  declare function getProfiles(accounts: string[], observer?: string): Promise<Profile[]>;
7450
7527
 
7451
- /** Maximum number of alternate nodes to try during verification */
7452
- declare const MAX_ALTERNATE_NODES = 2;
7453
7528
  /**
7454
7529
  * 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.
7530
+ * verify by querying multiple random nodes. If any node
7531
+ * returns the post, it exists (the first node was lagging).
7458
7532
  *
7459
- * @param primaryNode - Snapshot of CONFIG.hiveClient.currentAddress captured
7460
- * before the primary request, so failover can't change which node we exclude.
7533
+ * Uses callWithQuorum(quorum=1) which shuffles and queries
7534
+ * nodes in batches. Since it shuffles, it's unlikely to hit
7535
+ * the same node that just returned null first.
7461
7536
  */
7462
- declare function verifyPostOnAlternateNode(author: string, permlink: string, observer: string, primaryNode?: string): Promise<Entry$1 | null>;
7537
+ declare function verifyPostOnAlternateNode(author: string, permlink: string, observer: string): Promise<Entry$1 | null>;
7463
7538
 
7464
7539
  declare function signUp(username: string, email: string, referral: string): Promise<ApiResponse<Record<string, unknown>>>;
7465
7540
  declare function subscribeEmail(email: string): Promise<ApiResponse<Record<string, unknown>>>;
@@ -8110,4 +8185,4 @@ declare function getBadActorsQueryOptions(): _tanstack_react_query.OmitKeyof<_ta
8110
8185
  };
8111
8186
  };
8112
8187
 
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 };
8188
+ 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, INTERNAL_API_TIMEOUT_MS, 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 };