@rialo/ts-cdk 0.3.0-alpha.0 → 0.3.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1065,36 +1065,6 @@ declare function getCiphertextLength(plaintextLength: number): number;
1065
1065
  */
1066
1066
  declare function isValidCiphertextLength(ciphertext: Uint8Array): boolean;
1067
1067
 
1068
- /**
1069
- * Base client with JSON-RPC protocol handling.
1070
- *
1071
- * All specific clients (QueryClient, TransactionClient) extend this.
1072
- */
1073
- declare class BaseRpcClient {
1074
- protected readonly transport: HttpTransport;
1075
- private requestId;
1076
- constructor(transport: HttpTransport);
1077
- /**
1078
- * Makes a JSON-RPC 2.0 method call with type safety.
1079
- *
1080
- * Handles request serialization, response validation, and error mapping.
1081
- */
1082
- call<T>(method: string, params?: unknown[]): Promise<T>;
1083
- /**
1084
- * Validate JSON-RPC response structure
1085
- */
1086
- private isValidJsonRpcResponse;
1087
- /**
1088
- * Generates the next request ID with Overflow Protection.
1089
- * @returns The next request ID.
1090
- */
1091
- private nextRequestId;
1092
- /**
1093
- * Returns the configured RPC endpoint URL.
1094
- */
1095
- getUrl(): string;
1096
- }
1097
-
1098
1068
  /** A 32-byte public key, base58-encoded on the wire. */
1099
1069
 
1100
1070
  /** A 64-byte Ed25519 signature, base58-encoded on the wire. */
@@ -1108,7 +1078,7 @@ type ConfigHashPrefix = bigint;
1108
1078
  /**
1109
1079
  * Information about an on-chain account.
1110
1080
  */
1111
- interface AccountInfo$1 {
1081
+ interface AccountInfo {
1112
1082
  /** Account balance in kelvins. */
1113
1083
  kelvin: Kelvin;
1114
1084
  /** Owner program public key. */
@@ -1175,7 +1145,7 @@ interface TransactionStatusMetadata {
1175
1145
  /**
1176
1146
  * Full response for a transaction query.
1177
1147
  */
1178
- interface TransactionResponse$1 {
1148
+ interface TransactionResponse {
1179
1149
  /** Block height where this transaction was processed. */
1180
1150
  blockHeight: bigint;
1181
1151
  /** Unix timestamp of the block (if available). */
@@ -1197,7 +1167,7 @@ interface TransactionWithMeta {
1197
1167
  /**
1198
1168
  * Status of a transaction signature.
1199
1169
  */
1200
- interface SignatureStatus$1 {
1170
+ interface SignatureStatus {
1201
1171
  /** Slot in which the transaction was processed. */
1202
1172
  slot: bigint;
1203
1173
  /** Whether the transaction has been executed. */
@@ -1225,7 +1195,7 @@ interface EpochInfo {
1225
1195
  /**
1226
1196
  * Options for submitting a transaction.
1227
1197
  */
1228
- interface SendTransactionOptions$1 {
1198
+ interface SendTransactionOptions {
1229
1199
  /** Skip preflight simulation. */
1230
1200
  skipPreflight: boolean;
1231
1201
  /** Maximum retries by the RPC node. */
@@ -1236,7 +1206,7 @@ interface SendTransactionOptions$1 {
1236
1206
  /**
1237
1207
  * Options for confirming a transaction.
1238
1208
  */
1239
- interface ConfirmTransactionOptions$1 {
1209
+ interface ConfirmTransactionOptions {
1240
1210
  /** Maximum polling attempts (default: 30). */
1241
1211
  maxRetries: number;
1242
1212
  /** Delay between polls in milliseconds (default: 1000). */
@@ -1245,7 +1215,7 @@ interface ConfirmTransactionOptions$1 {
1245
1215
  /**
1246
1216
  * Combined options for send-and-confirm.
1247
1217
  */
1248
- interface SendAndConfirmOptions$1 {
1218
+ interface SendAndConfirmOptions {
1249
1219
  /** Send options. */
1250
1220
  skipPreflight: boolean;
1251
1221
  maxRetries: number;
@@ -1256,7 +1226,7 @@ interface SendAndConfirmOptions$1 {
1256
1226
  /**
1257
1227
  * Result of a confirmed transaction.
1258
1228
  */
1259
- interface ConfirmedTransaction$1 {
1229
+ interface ConfirmedTransaction {
1260
1230
  /** Transaction signature (base58). */
1261
1231
  signature: string;
1262
1232
  /** Whether the transaction was executed. */
@@ -1283,7 +1253,7 @@ interface IsBlockhashValidResponse {
1283
1253
  /**
1284
1254
  * Configuration for getSignaturesForAddress.
1285
1255
  */
1286
- interface GetSignaturesForAddressConfig$1 {
1256
+ interface GetSignaturesForAddressConfig {
1287
1257
  /** Maximum number of signatures to return. */
1288
1258
  limit?: number;
1289
1259
  /** Search backwards from this signature (base58). */
@@ -1294,7 +1264,7 @@ interface GetSignaturesForAddressConfig$1 {
1294
1264
  /**
1295
1265
  * Information about a single signature.
1296
1266
  */
1297
- interface SignatureInfo$1 {
1267
+ interface SignatureInfo {
1298
1268
  /** Transaction signature (base58). */
1299
1269
  signature: string;
1300
1270
  /** Block height where the transaction was processed. */
@@ -1307,7 +1277,7 @@ interface SignatureInfo$1 {
1307
1277
  /**
1308
1278
  * Kind of subscription.
1309
1279
  */
1310
- type SubscriptionKind$1 = "Persistent" | "OneShot";
1280
+ type SubscriptionKind = "Persistent" | "OneShot";
1311
1281
  /**
1312
1282
  * Metadata about an account used in a subscription instruction.
1313
1283
  */
@@ -1333,8 +1303,8 @@ interface SubscriptionInstruction {
1333
1303
  /**
1334
1304
  * A subscription record.
1335
1305
  */
1336
- interface Subscription$1 {
1337
- kind: SubscriptionKind$1;
1306
+ interface Subscription {
1307
+ kind: SubscriptionKind;
1338
1308
  topic: string;
1339
1309
  /** Instructions to be executed when triggered. */
1340
1310
  instructions: SubscriptionInstruction[];
@@ -1347,7 +1317,7 @@ interface Subscription$1 {
1347
1317
  /**
1348
1318
  * A transaction triggered by a subscription.
1349
1319
  */
1350
- interface TriggeredTransaction$1 {
1320
+ interface TriggeredTransaction {
1351
1321
  /** Transaction signature (base58). */
1352
1322
  signature: string;
1353
1323
  /** Block number where executed. */
@@ -1356,29 +1326,29 @@ interface TriggeredTransaction$1 {
1356
1326
  /**
1357
1327
  * Event data from a workflow trigger.
1358
1328
  */
1359
- interface EventData$1 {
1329
+ interface EventData {
1360
1330
  topic: string;
1361
1331
  }
1362
1332
  /**
1363
1333
  * Timestamp range.
1364
1334
  */
1365
- interface TimestampRange$1 {
1335
+ interface TimestampRange {
1366
1336
  start: bigint;
1367
1337
  end: bigint;
1368
1338
  }
1369
1339
  /**
1370
1340
  * Information about what triggered a workflow transaction.
1371
1341
  */
1372
- interface TriggerInfo$1 {
1373
- event: EventData$1;
1342
+ interface TriggerInfo {
1343
+ event: EventData;
1374
1344
  subscriptionPubkey: string;
1375
- timestampRange?: TimestampRange$1;
1345
+ timestampRange?: TimestampRange;
1376
1346
  eventAccount?: string;
1377
1347
  }
1378
1348
  /**
1379
1349
  * Transaction data within a workflow node.
1380
1350
  */
1381
- interface TransactionNodeData$1 {
1351
+ interface TransactionNodeData {
1382
1352
  blockHeight: bigint;
1383
1353
  timestamp: bigint;
1384
1354
  success: boolean;
@@ -1388,17 +1358,17 @@ interface TransactionNodeData$1 {
1388
1358
  /**
1389
1359
  * A node in the workflow lineage tree.
1390
1360
  */
1391
- interface WorkflowNode$1 {
1361
+ interface WorkflowNode {
1392
1362
  /** Transaction signature (base58). */
1393
1363
  id: string;
1394
1364
  /** Distance from the root transaction. */
1395
1365
  depth: number;
1396
1366
  /** Transaction data. */
1397
- data: TransactionNodeData$1;
1367
+ data: TransactionNodeData;
1398
1368
  /** Subscriptions associated with this transaction. */
1399
- subscriptions: Subscription$1[];
1369
+ subscriptions: Subscription[];
1400
1370
  /** Trigger information if this node was triggered by a subscription event. */
1401
- triggeredBy?: TriggerInfo$1;
1371
+ triggeredBy?: TriggerInfo;
1402
1372
  /** Child transaction signatures. */
1403
1373
  workflowChildren: string[];
1404
1374
  /** Whether more children exist beyond what is shown. */
@@ -1407,11 +1377,11 @@ interface WorkflowNode$1 {
1407
1377
  /**
1408
1378
  * Reason for truncating workflow traversal.
1409
1379
  */
1410
- type TruncationReason$1 = "maxDepth" | "maxNodes" | "none";
1380
+ type TruncationReason = "maxDepth" | "maxNodes" | "none";
1411
1381
  /**
1412
1382
  * Workflow lineage request parameters.
1413
1383
  */
1414
- interface GetWorkflowLineageRequest$1 {
1384
+ interface GetWorkflowLineageRequest {
1415
1385
  /** Root transaction signature (base58). */
1416
1386
  signature: string;
1417
1387
  /** Maximum traversal depth (1-100, default 3). */
@@ -1423,22 +1393,22 @@ interface GetWorkflowLineageRequest$1 {
1423
1393
  * Workflow lineage response.
1424
1394
  * The lineage tree structure.
1425
1395
  */
1426
- interface WorkflowLineage$1 {
1396
+ interface WorkflowLineage {
1427
1397
  /** All nodes (transactions) in the lineage tree. */
1428
- workflowNodes: WorkflowNode$1[];
1398
+ workflowNodes: WorkflowNode[];
1429
1399
  }
1430
1400
  /**
1431
1401
  * Workflow lineage response.
1432
1402
  */
1433
- interface GetWorkflowLineageResponse$1 {
1403
+ interface GetWorkflowLineageResponse {
1434
1404
  /** The lineage graph data. */
1435
- lineage: WorkflowLineage$1;
1405
+ lineage: WorkflowLineage;
1436
1406
  /** Leaf transaction signatures (base58-encoded). */
1437
1407
  leaves: string[];
1438
1408
  /** Whether the traversal was truncated due to max-depth. */
1439
1409
  truncated: boolean;
1440
1410
  /** The reason for truncation. */
1441
- truncationReason: TruncationReason$1;
1411
+ truncationReason: TruncationReason;
1442
1412
  /** Hints for continuation (base58-encoded). */
1443
1413
  continuationHints: string[];
1444
1414
  }
@@ -1469,11 +1439,11 @@ interface TransactionInfo {
1469
1439
  /**
1470
1440
  * Filter for what kind of accounts to return.
1471
1441
  */
1472
- type AccountFilter$1 = "programAccounts" | "tokenAccounts";
1442
+ type AccountFilter = "programAccounts" | "tokenAccounts";
1473
1443
  /**
1474
1444
  * Configuration for getAccountsByOwner pagination.
1475
1445
  */
1476
- interface GetAccountsByOwnerConfig$1 {
1446
+ interface GetAccountsByOwnerConfig {
1477
1447
  /** Maximum number of accounts to return. */
1478
1448
  limit?: number;
1479
1449
  /** Cursor for pagination: accounts after this pubkey (base58). */
@@ -1482,22 +1452,22 @@ interface GetAccountsByOwnerConfig$1 {
1482
1452
  /**
1483
1453
  * An account returned by getAccountsByOwner.
1484
1454
  */
1485
- interface OwnerAccount$1 {
1455
+ interface OwnerAccount {
1486
1456
  /** Account public key. */
1487
1457
  pubkey: PublicKey;
1488
1458
  /** Account information. */
1489
- account: AccountInfo$1;
1459
+ account: AccountInfo;
1490
1460
  }
1491
1461
  /**
1492
1462
  * Pagination metadata.
1493
1463
  */
1494
- interface PaginationInfo$1 {
1464
+ interface PaginationInfo {
1495
1465
  hasMore: boolean;
1496
1466
  nextCursor?: string;
1497
1467
  }
1498
1468
  /** A single entry in a getMultipleAccounts response.
1499
1469
  Absent if the account does not exist. */
1500
- type OptionalAccountInfo = AccountInfo$1 | undefined;
1470
+ type OptionalAccountInfo = AccountInfo | undefined;
1501
1471
  /**
1502
1472
  * Validator health status.
1503
1473
  */
@@ -1616,7 +1586,7 @@ interface AllAccountsEntry {
1616
1586
  /** Account public key (base58). */
1617
1587
  pubkey: string;
1618
1588
  /** Account information. */
1619
- account: AccountInfo$1;
1589
+ account: AccountInfo;
1620
1590
  }
1621
1591
  /**
1622
1592
  * State of a stake account.
@@ -1736,6 +1706,46 @@ interface RexInfoAndDuties {
1736
1706
  duties: RexDuty[];
1737
1707
  }
1738
1708
 
1709
+ /**
1710
+ * Base client with JSON-RPC protocol handling.
1711
+ *
1712
+ * All specific clients (QueryClient, TransactionClient) extend this.
1713
+ */
1714
+ declare class BaseRpcClient {
1715
+ protected readonly transport: HttpTransport;
1716
+ private requestId;
1717
+ constructor(transport: HttpTransport);
1718
+ /**
1719
+ * Makes a JSON-RPC 2.0 method call with type safety.
1720
+ *
1721
+ * Handles request serialization, response validation, and error mapping.
1722
+ */
1723
+ call<T>(method: string, params?: unknown[]): Promise<T>;
1724
+ /**
1725
+ * Validate JSON-RPC response structure
1726
+ */
1727
+ private isValidJsonRpcResponse;
1728
+ /**
1729
+ * Generates the next request ID with Overflow Protection.
1730
+ * @returns The next request ID.
1731
+ */
1732
+ private nextRequestId;
1733
+ /**
1734
+ * Returns the configured RPC endpoint URL.
1735
+ */
1736
+ getUrl(): string;
1737
+ /**
1738
+ * Call an arbitrary RPC method with a JSON string body.
1739
+ *
1740
+ * Escape hatch for methods not yet in the typed interface.
1741
+ *
1742
+ * @param method - The RPC method name
1743
+ * @param params - JSON string of parameters
1744
+ * @returns JSON string of the result
1745
+ */
1746
+ callWithJson(method: string, params: string): Promise<string>;
1747
+ }
1748
+
1739
1749
  /**
1740
1750
  * RpcClient interface — generated from spec.wit.
1741
1751
  *
@@ -1773,7 +1783,7 @@ declare abstract class RpcClient {
1773
1783
  *
1774
1784
  * Returns an error if the RPC call fails or the account does not exist.
1775
1785
  */
1776
- abstract getAccountInfo(pubkey: PublicKey): Promise<AccountInfo$1>;
1786
+ abstract getAccountInfo(pubkey: PublicKey): Promise<AccountInfo>;
1777
1787
  /**
1778
1788
  * Gets the current finalized block height from the blockchain.
1779
1789
  *
@@ -1825,7 +1835,7 @@ declare abstract class RpcClient {
1825
1835
  *
1826
1836
  * Returns an error if the RPC call fails or the transaction is not found.
1827
1837
  */
1828
- abstract getTransaction(sig: Signature): Promise<TransactionResponse$1>;
1838
+ abstract getTransaction(sig: Signature): Promise<TransactionResponse>;
1829
1839
  /**
1830
1840
  * Gets the total number of transactions processed since genesis.
1831
1841
  *
@@ -1872,7 +1882,7 @@ declare abstract class RpcClient {
1872
1882
  *
1873
1883
  * Returns an error if the RPC call fails.
1874
1884
  */
1875
- abstract getSignatureStatuses(signatures: Signature[]): Promise<(SignatureStatus$1 | undefined)[]>;
1885
+ abstract getSignatureStatuses(signatures: Signature[]): Promise<(SignatureStatus | undefined)[]>;
1876
1886
  /**
1877
1887
  * Gets signatures associated with an address, with optional pagination.
1878
1888
  *
@@ -1889,7 +1899,7 @@ declare abstract class RpcClient {
1889
1899
  *
1890
1900
  * Returns an error if the RPC call fails.
1891
1901
  */
1892
- abstract getSignaturesForAddress(address: PublicKey, config: GetSignaturesForAddressConfig$1 | undefined): Promise<SignatureInfo$1[]>;
1902
+ abstract getSignaturesForAddress(address: PublicKey, config: GetSignaturesForAddressConfig | undefined): Promise<SignatureInfo[]>;
1893
1903
  /**
1894
1904
  * Gets current epoch information.
1895
1905
  *
@@ -1958,7 +1968,7 @@ declare abstract class RpcClient {
1958
1968
  *
1959
1969
  * Returns an error if the RPC call fails.
1960
1970
  */
1961
- abstract getAccountsByOwner(owner: PublicKey, filter: AccountFilter$1 | undefined, config: GetAccountsByOwnerConfig$1 | undefined): Promise<[OwnerAccount$1[], PaginationInfo$1 | undefined]>;
1971
+ abstract getAccountsByOwner(owner: PublicKey, filter: AccountFilter | undefined, config: GetAccountsByOwnerConfig | undefined): Promise<[OwnerAccount[], PaginationInfo | undefined]>;
1962
1972
  /**
1963
1973
  * Gets a subscription by subscriber public key and nonce.
1964
1974
  *
@@ -1975,7 +1985,7 @@ declare abstract class RpcClient {
1975
1985
  *
1976
1986
  * Returns an error if the RPC call fails or the subscription is not found.
1977
1987
  */
1978
- abstract getSubscription(subscriber: PublicKey, nonce: string): Promise<Subscription$1>;
1988
+ abstract getSubscription(subscriber: PublicKey, nonce: string): Promise<Subscription>;
1979
1989
  /**
1980
1990
  * Gets transactions triggered by a subscription.
1981
1991
  *
@@ -1995,7 +2005,7 @@ declare abstract class RpcClient {
1995
2005
  *
1996
2006
  * Returns an error if the RPC call fails.
1997
2007
  */
1998
- abstract getTriggeredTransactions(subscriptionAccount: PublicKey, limit: number | undefined): Promise<TriggeredTransaction$1[]>;
2008
+ abstract getTriggeredTransactions(subscriptionAccount: PublicKey, limit: number | undefined): Promise<TriggeredTransaction[]>;
1999
2009
  /**
2000
2010
  * Gets the workflow lineage tree for a transaction.
2001
2011
  *
@@ -2015,7 +2025,7 @@ declare abstract class RpcClient {
2015
2025
  *
2016
2026
  * Returns an error if the RPC call fails or the root transaction is not found.
2017
2027
  */
2018
- abstract getWorkflowLineage(request: GetWorkflowLineageRequest$1): Promise<GetWorkflowLineageResponse$1>;
2028
+ abstract getWorkflowLineage(request: GetWorkflowLineageRequest): Promise<GetWorkflowLineageResponse>;
2019
2029
  /**
2020
2030
  * Gets paginated transactions from the blockchain.
2021
2031
  *
@@ -2306,7 +2316,7 @@ declare abstract class RpcClient {
2306
2316
  *
2307
2317
  * Returns an error if the RPC call fails or the transaction is rejected.
2308
2318
  */
2309
- abstract sendTransaction(transaction: Uint8Array, options: SendTransactionOptions$1 | undefined): Promise<Signature>;
2319
+ abstract sendTransaction(transaction: Uint8Array, options: SendTransactionOptions | undefined): Promise<Signature>;
2310
2320
  /**
2311
2321
  * Requests an airdrop of tokens to the specified account.
2312
2322
  *
@@ -2347,7 +2357,7 @@ declare abstract class RpcClient {
2347
2357
  *
2348
2358
  * Returns an error if the transaction fails or confirmation times out.
2349
2359
  */
2350
- abstract confirmTransaction(sig: string, options: ConfirmTransactionOptions$1 | undefined): Promise<ConfirmedTransaction$1>;
2360
+ abstract confirmTransaction(sig: string, options: ConfirmTransactionOptions | undefined): Promise<ConfirmedTransaction>;
2351
2361
  /**
2352
2362
  * Sends a transaction and waits for confirmation.
2353
2363
  *
@@ -2368,7 +2378,7 @@ declare abstract class RpcClient {
2368
2378
  * Returns an error if sending fails, the transaction is rejected,
2369
2379
  * or confirmation times out.
2370
2380
  */
2371
- abstract sendAndConfirmTransaction(transaction: Uint8Array, options: SendAndConfirmOptions$1 | undefined): Promise<ConfirmedTransaction$1>;
2381
+ abstract sendAndConfirmTransaction(transaction: Uint8Array, options: SendAndConfirmOptions | undefined): Promise<ConfirmedTransaction>;
2372
2382
  /**
2373
2383
  * Requests an airdrop and waits for confirmation.
2374
2384
  *
@@ -2388,7 +2398,7 @@ declare abstract class RpcClient {
2388
2398
  *
2389
2399
  * Returns an error if the airdrop fails or confirmation times out.
2390
2400
  */
2391
- abstract requestAirdropAndConfirm(pubkey: PublicKey, amount: Kelvin): Promise<ConfirmedTransaction$1>;
2401
+ abstract requestAirdropAndConfirm(pubkey: PublicKey, amount: Kelvin): Promise<ConfirmedTransaction>;
2392
2402
  /**
2393
2403
  * Submits an epoch change transaction (admin-only).
2394
2404
  *
@@ -2440,7 +2450,6 @@ declare class RialoClient extends RpcClient {
2440
2450
  private readonly transactionClient;
2441
2451
  private readonly transport;
2442
2452
  private readonly chain;
2443
- private readonly rpcHelper;
2444
2453
  constructor(transport: HttpTransport, chain: ChainDefinition);
2445
2454
  /**
2446
2455
  * Returns the configured RPC endpoint URL.
@@ -2463,7 +2472,7 @@ declare class RialoClient extends RpcClient {
2463
2472
  *
2464
2473
  * @returns Account info or null if account doesn't exist
2465
2474
  */
2466
- getAccountInfo(pubkey: PublicKey): Promise<AccountInfo$1>;
2475
+ getAccountInfo(pubkey: PublicKey): Promise<AccountInfo>;
2467
2476
  /**
2468
2477
  * Retrieves the current block height.
2469
2478
  */
@@ -2475,13 +2484,13 @@ declare class RialoClient extends RpcClient {
2475
2484
  /**
2476
2485
  * Retrieves the signatures for an address.
2477
2486
  */
2478
- getSignaturesForAddress(address: PublicKey, config: GetSignaturesForAddressConfig$1 | undefined): Promise<SignatureInfo$1[]>;
2487
+ getSignaturesForAddress(address: PublicKey, config: GetSignaturesForAddressConfig | undefined): Promise<SignatureInfo[]>;
2479
2488
  /**
2480
2489
  * Retrieves detailed information about a transaction.
2481
2490
  *
2482
2491
  * @returns Full transaction response
2483
2492
  */
2484
- getTransaction(sig: Signature): Promise<TransactionResponse$1>;
2493
+ getTransaction(sig: Signature): Promise<TransactionResponse>;
2485
2494
  /**
2486
2495
  * Retrieves the total number of transactions processed since genesis.
2487
2496
  */
@@ -2489,7 +2498,7 @@ declare class RialoClient extends RpcClient {
2489
2498
  /**
2490
2499
  * Retrieves the status of multiple transaction signatures.
2491
2500
  */
2492
- getSignatureStatuses(signatures: Signature[]): Promise<(SignatureStatus$1 | undefined)[]>;
2501
+ getSignatureStatuses(signatures: Signature[]): Promise<(SignatureStatus | undefined)[]>;
2493
2502
  /**
2494
2503
  * Retrieves current epoch information.
2495
2504
  */
@@ -2507,7 +2516,7 @@ declare class RialoClient extends RpcClient {
2507
2516
  * @param options - Transaction submission options
2508
2517
  * @returns Transaction signature
2509
2518
  */
2510
- sendTransaction(transaction: Uint8Array, options?: Partial<SendTransactionOptions$1>): Promise<Signature>;
2519
+ sendTransaction(transaction: Uint8Array, options?: Partial<SendTransactionOptions>): Promise<Signature>;
2511
2520
  /**
2512
2521
  * Requests an airdrop of tokens to an account.
2513
2522
  *
@@ -2533,7 +2542,7 @@ declare class RialoClient extends RpcClient {
2533
2542
  * console.log(`Confirmed in slot ${result.slot}`);
2534
2543
  * ```
2535
2544
  */
2536
- sendAndConfirmTransaction(transaction: Uint8Array, options?: Partial<SendAndConfirmOptions$1>): Promise<ConfirmedTransaction$1>;
2545
+ sendAndConfirmTransaction(transaction: Uint8Array, options?: Partial<SendAndConfirmOptions>): Promise<ConfirmedTransaction>;
2537
2546
  /**
2538
2547
  * Waits for a transaction to be confirmed.
2539
2548
  *
@@ -2541,13 +2550,13 @@ declare class RialoClient extends RpcClient {
2541
2550
  * @param options - Confirmation options
2542
2551
  * @returns Confirmed transaction details
2543
2552
  */
2544
- confirmTransaction(sig: string, options?: Partial<ConfirmTransactionOptions$1>): Promise<ConfirmedTransaction$1>;
2553
+ confirmTransaction(sig: string, options?: Partial<ConfirmTransactionOptions>): Promise<ConfirmedTransaction>;
2545
2554
  /**
2546
2555
  * Requests an airdrop and waits for confirmation.
2547
2556
  *
2548
2557
  * **Note**: Only available on devnet and testnet.
2549
2558
  */
2550
- requestAirdropAndConfirm(pubkey: PublicKey, amount: Kelvin): Promise<ConfirmedTransaction$1>;
2559
+ requestAirdropAndConfirm(pubkey: PublicKey, amount: Kelvin): Promise<ConfirmedTransaction>;
2551
2560
  /**
2552
2561
  * Calculate the minimum balance required for an account to be rent-exempt.
2553
2562
  *
@@ -2577,14 +2586,14 @@ declare class RialoClient extends RpcClient {
2577
2586
  * @param config - Optional configuration for pagination and encoding
2578
2587
  * @returns Tuple of accounts and optional pagination info
2579
2588
  */
2580
- getAccountsByOwner(owner: PublicKey, filter: AccountFilter$1 | undefined, config: GetAccountsByOwnerConfig$1 | undefined): Promise<[OwnerAccount$1[], PaginationInfo$1 | undefined]>;
2589
+ getAccountsByOwner(owner: PublicKey, filter: AccountFilter | undefined, config: GetAccountsByOwnerConfig | undefined): Promise<[OwnerAccount[], PaginationInfo | undefined]>;
2581
2590
  /**
2582
2591
  * Get workflow lineage information for tracking execution history.
2583
2592
  *
2584
2593
  * @param request - Workflow lineage request with signature and options
2585
2594
  * @returns Workflow lineage tree with nodes and metadata
2586
2595
  */
2587
- getWorkflowLineage(request: GetWorkflowLineageRequest$1): Promise<GetWorkflowLineageResponse$1>;
2596
+ getWorkflowLineage(request: GetWorkflowLineageRequest): Promise<GetWorkflowLineageResponse>;
2588
2597
  /**
2589
2598
  * Get subscription for a given subscriber address and nonce.
2590
2599
  *
@@ -2592,7 +2601,7 @@ declare class RialoClient extends RpcClient {
2592
2601
  * @param nonce - The nonce identifying the subscription
2593
2602
  * @returns The subscription for the subscriber and nonce
2594
2603
  */
2595
- getSubscription(subscriber: PublicKey, nonce: string): Promise<Subscription$1>;
2604
+ getSubscription(subscriber: PublicKey, nonce: string): Promise<Subscription>;
2596
2605
  /**
2597
2606
  * Get transactions triggered by a subscription account.
2598
2607
  *
@@ -2600,7 +2609,7 @@ declare class RialoClient extends RpcClient {
2600
2609
  * @param limit - Optional limit on transactions returned
2601
2610
  * @returns Triggered transactions for the subscription
2602
2611
  */
2603
- getTriggeredTransactions(subscriptionAccount: PublicKey, limit: number | undefined): Promise<TriggeredTransaction$1[]>;
2612
+ getTriggeredTransactions(subscriptionAccount: PublicKey, limit: number | undefined): Promise<TriggeredTransaction[]>;
2604
2613
  /**
2605
2614
  * Gets paginated transactions from the blockchain.
2606
2615
  */
@@ -2676,10 +2685,6 @@ declare class RialoClient extends RpcClient {
2676
2685
  callWithJson(method: string, params: string): Promise<string>;
2677
2686
  }
2678
2687
 
2679
- /**
2680
- * Query client for read-only RPC operations.
2681
- */
2682
-
2683
2688
  /**
2684
2689
  * Filter for what kind of accounts to return from getAccountsByOwner.
2685
2690
  * Uses the serde-compatible discriminated union format expected by the RPC.
@@ -2728,7 +2733,7 @@ declare class QueryRpcClient extends BaseRpcClient {
2728
2733
  * }
2729
2734
  * ```
2730
2735
  */
2731
- getAccountInfo(pubkey: PublicKey): Promise<AccountInfo$1 | null>;
2736
+ getAccountInfo(pubkey: PublicKey): Promise<AccountInfo | null>;
2732
2737
  /**
2733
2738
  * Retrieve the current block height of the blockchain.
2734
2739
  *
@@ -2763,7 +2768,7 @@ declare class QueryRpcClient extends BaseRpcClient {
2763
2768
  * });
2764
2769
  * ```
2765
2770
  */
2766
- getSignaturesForAddress(address: PublicKey, config?: GetSignaturesForAddressConfig$1): Promise<SignatureInfo$1[]>;
2771
+ getSignaturesForAddress(address: PublicKey, config?: GetSignaturesForAddressConfig): Promise<SignatureInfo[]>;
2767
2772
  /**
2768
2773
  * Retrieve the total number of transactions processed since genesis.
2769
2774
  *
@@ -2797,7 +2802,7 @@ declare class QueryRpcClient extends BaseRpcClient {
2797
2802
  * });
2798
2803
  * ```
2799
2804
  */
2800
- getSignatureStatuses(signatures: string[]): Promise<(SignatureStatus$1 | null)[]>;
2805
+ getSignatureStatuses(signatures: string[]): Promise<(SignatureStatus | null)[]>;
2801
2806
  /**
2802
2807
  * Retrieve information about the current epoch.
2803
2808
  *
@@ -2882,7 +2887,7 @@ declare class QueryRpcClient extends BaseRpcClient {
2882
2887
  * });
2883
2888
  * ```
2884
2889
  */
2885
- getMultipleAccounts(pubkeys: PublicKey[]): Promise<Array<AccountInfo$1 | null>>;
2890
+ getMultipleAccounts(pubkeys: PublicKey[]): Promise<Array<AccountInfo | null>>;
2886
2891
  /**
2887
2892
  * Get all accounts owned by a specific program or address.
2888
2893
  *
@@ -2902,7 +2907,7 @@ declare class QueryRpcClient extends BaseRpcClient {
2902
2907
  * });
2903
2908
  * ```
2904
2909
  */
2905
- getAccountsByOwner(owner: PublicKey, filter?: AccountFilterParam, config?: GetAccountsByOwnerConfig$1): Promise<[OwnerAccount$1[], PaginationInfo$1 | undefined]>;
2910
+ getAccountsByOwner(owner: PublicKey, filter?: AccountFilterParam, config?: GetAccountsByOwnerConfig): Promise<[OwnerAccount[], PaginationInfo | undefined]>;
2906
2911
  /**
2907
2912
  * Get workflow lineage information for tracking execution history.
2908
2913
  *
@@ -2921,7 +2926,7 @@ declare class QueryRpcClient extends BaseRpcClient {
2921
2926
  * console.log(`Found ${lineage.lineage.workflowNodes.length} nodes`);
2922
2927
  * ```
2923
2928
  */
2924
- getWorkflowLineage(request: GetWorkflowLineageRequest$1): Promise<GetWorkflowLineageResponse$1>;
2929
+ getWorkflowLineage(request: GetWorkflowLineageRequest): Promise<GetWorkflowLineageResponse>;
2925
2930
  /**
2926
2931
  * Get subscriptions for a given subscriber address.
2927
2932
  *
@@ -2937,7 +2942,7 @@ declare class QueryRpcClient extends BaseRpcClient {
2937
2942
  * console.log(`Topic: ${subscription.topic}, Kind: ${subscription.kind}`);
2938
2943
  * ```
2939
2944
  */
2940
- getSubscription(subscriber: PublicKey, nonce: string): Promise<Subscription$1>;
2945
+ getSubscription(subscriber: PublicKey, nonce: string): Promise<Subscription>;
2941
2946
  /**
2942
2947
  * Get transactions triggered by a subscription account.
2943
2948
  *
@@ -2956,7 +2961,7 @@ declare class QueryRpcClient extends BaseRpcClient {
2956
2961
  * });
2957
2962
  * ```
2958
2963
  */
2959
- getTriggeredTransactions(subscriptionAccount: PublicKey, limit?: number): Promise<TriggeredTransaction$1[]>;
2964
+ getTriggeredTransactions(subscriptionAccount: PublicKey, limit?: number): Promise<TriggeredTransaction[]>;
2960
2965
  /**
2961
2966
  * Retrieve the REX X25519 public key for secret sharing encryption.
2962
2967
  *
@@ -3001,317 +3006,127 @@ declare class QueryRpcClient extends BaseRpcClient {
3001
3006
  * ```
3002
3007
  */
3003
3008
  getConfigHashPrefix(): Promise<bigint>;
3004
- }
3005
-
3006
- /**
3007
- * RPC type definitions for the Rialo blockchain.
3008
- */
3009
-
3010
- /**
3011
- * Account information response.
3012
- */
3013
- interface AccountInfo {
3014
- /** Account balance in smallest denomination */
3015
- balance: bigint;
3016
- /** Owner program public key */
3017
- owner: PublicKey;
3018
- /** Account data */
3019
- data: Uint8Array;
3020
- /** Whether the account is executable */
3021
- executable: boolean;
3022
- /** Rent epoch */
3023
- rentEpoch: bigint;
3024
- }
3025
- /**
3026
- * Transaction response.
3027
- */
3028
- interface TransactionResponse {
3029
- /** Transaction signature */
3030
- signature: string;
3031
- /** Block height */
3032
- blockHeight?: bigint;
3033
- /** Error message if transaction failed */
3034
- err?: string;
3035
- }
3036
- /**
3037
- * Options for sending a transaction.
3038
- */
3039
- interface SendTransactionOptions {
3040
- /** Skip preflight transaction checks */
3041
- skipPreflight?: boolean;
3042
- /** Maximum number of times to retry */
3043
- maxRetries?: number;
3044
- }
3045
- /**
3046
- * Epoch information response.
3047
- */
3048
- interface EpochInfoResponse {
3049
- /** Current epoch */
3050
- epoch: bigint;
3051
- /** Current slot in the epoch */
3052
- slotIndex: bigint;
3053
- /** Total slots in the epoch */
3054
- slotsInEpoch: bigint;
3055
- /** Absolute slot number */
3056
- absoluteSlot: bigint;
3057
- /** Block height */
3058
- blockHeight: bigint;
3059
- /** Transaction count */
3060
- transactionCount?: bigint;
3061
- }
3062
- /**
3063
- * Subscription kind.
3064
- */
3065
- type SubscriptionKind = "Persistent" | "OneShot";
3066
- /**
3067
- * Subscription data.
3068
- */
3069
- interface Subscription {
3070
- /** Type of subscription */
3071
- kind: SubscriptionKind;
3072
- /** Topic for the subscription */
3073
- topic: string;
3074
- /** Instructions to execute when triggered */
3075
- instructions: unknown[];
3076
- /** Subscriber public key (base58) */
3077
- subscriber: string;
3078
- /** Event account public key (base58) */
3079
- eventAccount?: string;
3080
- /** Timestamp range [start, end] */
3081
- timestampRange?: [bigint, bigint];
3082
- }
3083
- /**
3084
- * Triggered transaction data.
3085
- */
3086
- interface TriggeredTransaction {
3087
- /** Transaction signature (base58) */
3088
- signature: string;
3089
- /** Block number where the transaction was executed */
3090
- blockNumber: bigint;
3091
- }
3092
- /**
3093
- * Get workflow lineage request.
3094
- */
3095
- interface GetWorkflowLineageRequest {
3096
- /** Root transaction signature (base58) */
3097
- signature: string;
3098
- /** Maximum depth to traverse (1-100, default 3) */
3099
- maxDepth?: number;
3100
- /** Whether to include event details */
3101
- includeEvents?: boolean;
3102
- }
3103
- /**
3104
- * Event data from a workflow trigger.
3105
- */
3106
- interface EventData {
3107
- /** Event topic */
3108
- topic: string;
3109
- /** Event attributes */
3110
- attributes: Record<string, unknown>;
3111
- }
3112
- /**
3113
- * Timestamp range.
3114
- */
3115
- interface TimestampRange {
3116
- /** Start timestamp (unix) */
3117
- from: bigint;
3118
- /** End timestamp (unix) */
3119
- to: bigint;
3120
- }
3121
- /**
3122
- * Information about what triggered a workflow transaction.
3123
- */
3124
- interface TriggerInfo {
3125
- /** Event that triggered the transaction */
3126
- event: EventData;
3127
- /** Subscription public key (base58) */
3128
- subscriptionPubkey: string;
3129
- /** Timestamp range for the trigger */
3130
- timestampRange?: TimestampRange;
3131
- /** Event account public key (base58) */
3132
- eventAccount?: string;
3133
- }
3134
- /**
3135
- * Transaction node data within a workflow.
3136
- */
3137
- interface TransactionNodeData {
3138
- /** Block height */
3139
- blockHeight: bigint;
3140
- /** Timestamp (unix) */
3141
- timestamp: bigint;
3142
- /** Whether the transaction succeeded */
3143
- success: boolean;
3144
- /** Number of instructions */
3145
- instructionCount: number;
3146
- /** Program IDs of instructions (base58) */
3147
- instructionProgramIds: string[];
3148
- }
3149
- /**
3150
- * A node in the workflow lineage tree.
3151
- */
3152
- interface WorkflowNode {
3153
- /** Transaction signature (base58) */
3154
- id: string;
3155
- /** Distance from root transaction */
3156
- depth: number;
3157
- /** Transaction data */
3158
- data: TransactionNodeData;
3159
- /** Subscriptions on this transaction */
3160
- subscriptions: Subscription[];
3161
- /** What triggered this transaction */
3162
- triggeredBy?: TriggerInfo;
3163
- /** Child transaction signatures (base58) */
3164
- workflowChildren: string[];
3165
- /** Whether there are more children not shown */
3166
- hasMoreChildren: boolean;
3167
- }
3168
- /**
3169
- * Workflow lineage tree.
3170
- */
3171
- interface WorkflowLineage {
3172
- /** Nodes in the workflow tree */
3173
- workflowNodes: WorkflowNode[];
3174
- }
3175
- /**
3176
- * Reason for truncating workflow lineage traversal.
3177
- */
3178
- type TruncationReason = "MaxDepth" | "MaxNodes" | "None";
3179
- /**
3180
- * Get workflow lineage response.
3181
- */
3182
- interface GetWorkflowLineageResponse {
3183
- /** Workflow lineage tree */
3184
- lineage: WorkflowLineage;
3185
- /** Leaf transaction signatures (base58) */
3186
- leaves: string[];
3187
- /** Whether traversal was truncated */
3188
- truncated: boolean;
3189
- /** Reason for truncation */
3190
- truncationReason: TruncationReason;
3191
- /** Hints for continuing traversal (base58 signatures) */
3192
- continuationHints: string[];
3193
- }
3194
- /**
3195
- * Get signatures for address configuration.
3196
- */
3197
- interface GetSignaturesForAddressConfig {
3198
- /** Maximum number of signatures to return */
3199
- limit?: number;
3200
- /** Start searching backwards from this signature */
3201
- before?: string;
3202
- /** Start searching forwards from this signature */
3203
- until?: string;
3204
- }
3205
- /**
3206
- * Signature information.
3207
- */
3208
- interface SignatureInfo {
3209
- signature: string;
3210
- blockHeight: bigint;
3211
- blockTime: bigint;
3212
- err?: string;
3213
- }
3214
- /**
3215
- * Get health response.
3216
- */
3217
- type GetHealthResponse = "ok" | string;
3218
- /**
3219
- * Get transactions response.
3220
- */
3221
- interface GetTransactionsResponse {
3222
- /** Array of transaction data */
3223
- transactions: Array<Record<string, unknown>>;
3224
- }
3225
- /**
3226
- * Signature status from the RPC.
3227
- */
3228
- interface SignatureStatus {
3229
- /** Slot in which the transaction was processed */
3230
- slot: bigint;
3231
- /** Whether the transaction has been executed */
3232
- executed: boolean;
3233
- /** Error message if transaction failed */
3234
- err?: string;
3235
- }
3236
- /**
3237
- * Options for confirming a transaction.
3238
- */
3239
- interface ConfirmTransactionOptions {
3240
- /** Maximum number of retry attempts (default: 30) */
3241
- maxRetries?: number;
3242
- /** Delay between retries in milliseconds (default: 1000) */
3243
- retryDelay?: number;
3244
- }
3245
- /**
3246
- * Options for sending and confirming a transaction.
3247
- */
3248
- interface SendAndConfirmOptions extends SendTransactionOptions, ConfirmTransactionOptions {
3249
- }
3250
- /**
3251
- * Result of a confirmed transaction.
3252
- */
3253
- interface ConfirmedTransaction {
3254
- /** Transaction signature */
3255
- signature: string;
3256
- /** Whether the transaction was executed */
3257
- executed: boolean;
3258
- /** Error message if transaction failed */
3259
- err?: string;
3260
- }
3261
- /**
3262
- * Configuration for getAccountsByOwner.
3263
- */
3264
- interface GetAccountsByOwnerConfig {
3265
- /** Maximum number of accounts to return */
3266
- limit?: number;
3267
- /** Cursor for pagination (base58 pubkey) */
3268
- after?: string;
3269
- }
3270
- /**
3271
- * Filter for getAccountsByOwner.
3272
- * Matches Rust serde serialization format.
3273
- */
3274
- type AccountFilter = {
3275
- type: "programAccounts";
3276
- } | {
3277
- type: "tokenAccounts";
3278
- mint?: string;
3279
- };
3280
- /**
3281
- * An account owned by a program or address.
3282
- */
3283
- interface OwnerAccount {
3284
- /** Account public key */
3285
- pubkey: PublicKey;
3286
- /** Account information */
3287
- account: AccountInfo;
3288
- }
3289
- /**
3290
- * Pagination information.
3291
- */
3292
- interface PaginationInfo {
3293
- /** Whether there are more results */
3294
- hasMore: boolean;
3295
- /** Cursor for next page (base58 pubkey) */
3296
- nextCursor?: string;
3297
- }
3298
- /**
3299
- * Get accounts by owner response.
3300
- */
3301
- interface GetAccountsByOwnerResponse {
3302
- /** Array of owned accounts */
3303
- value: OwnerAccount[];
3304
- /** Pagination information */
3305
- pagination?: PaginationInfo;
3306
- }
3307
- /**
3308
- * Get secret sharing public key response.
3309
- *
3310
- * Contains the TEE's X25519 public key for HPKE encryption.
3311
- */
3312
- interface GetSecretSharingPubkeyResponse {
3313
- /** The TEE's X25519 public key as a hex-encoded string */
3314
- public_key: string;
3009
+ /**
3010
+ * Retrieve the current block height with an optional minimum context slot.
3011
+ *
3012
+ * When minContextSlot is provided, the RPC will only return a result
3013
+ * if the node has processed at least that slot.
3014
+ *
3015
+ * @param minContextSlot - Minimum slot the node must have processed
3016
+ * @returns The current block height
3017
+ */
3018
+ getBlockHeightWithConfig(minContextSlot: bigint | undefined): Promise<bigint>;
3019
+ /**
3020
+ * Retrieve full transaction details by signature.
3021
+ *
3022
+ * Returns the complete transaction including metadata (fee, errors, logs),
3023
+ * the transaction body (signatures, message, instructions), and block context.
3024
+ *
3025
+ * @param sig - Transaction signature (Uint8Array)
3026
+ * @returns Full transaction response with block height, metadata, and body
3027
+ */
3028
+ getTransactionDetails(sig: Signature): Promise<TransactionResponse>;
3029
+ /**
3030
+ * Retrieve a paginated list of recent transactions.
3031
+ *
3032
+ * @param config - Optional pagination config (limit, before cursor)
3033
+ * @returns Array of transaction summaries with signature, slot, time, and error status
3034
+ */
3035
+ getTransactions(config: GetTransactionsConfig | undefined): Promise<TransactionInfo[]>;
3036
+ /**
3037
+ * Check whether a blockhash is still valid for transaction submission.
3038
+ *
3039
+ * @param blockhash - The blockhash to check (Uint8Array)
3040
+ * @returns Slot context and validity boolean
3041
+ */
3042
+ isBlockhashValid(blockhash: Hash): Promise<IsBlockhashValidResponse>;
3043
+ /**
3044
+ * Get the health status of the validator node.
3045
+ *
3046
+ * @returns Validator health details
3047
+ */
3048
+ getValidatorHealth(): Promise<ValidatorHealth>;
3049
+ /**
3050
+ * Get the list of full nodes connected to the validator or full node.
3051
+ *
3052
+ * @returns Array of connected nodes with their public key and connection duration
3053
+ */
3054
+ getConnectedFullNodes(): Promise<ConnectedNode[]>;
3055
+ /**
3056
+ * Get all accounts in the system.
3057
+ *
3058
+ * @param config - Optional filtering/pagination config
3059
+ * @returns Array of all account entries with pubkey and account data
3060
+ */
3061
+ getAllAccounts(config: GetAllAccountsConfig | undefined): Promise<AllAccountsEntry[]>;
3062
+ /**
3063
+ * Get a block by its height.
3064
+ *
3065
+ * @param blockHeight - The height of the block to retrieve
3066
+ * @param config - Optional config to control transaction detail level
3067
+ * @returns Block info including hash, height, time, and optional signatures
3068
+ */
3069
+ getBlock(blockHeight: bigint, config: GetBlockConfig | undefined): Promise<BlockInfo>;
3070
+ /**
3071
+ * Get a list of confirmed block heights in a range.
3072
+ *
3073
+ * @param startHeight - Start of the range (inclusive)
3074
+ * @param endHeight - End of the range (inclusive), or undefined for open-ended
3075
+ * @returns Array of confirmed block heights
3076
+ */
3077
+ getBlocks(startHeight: bigint, endHeight: bigint | undefined): Promise<bigint[]>;
3078
+ /**
3079
+ * Get detailed information about a stake account.
3080
+ *
3081
+ * @param pubkey - The public key of the stake account
3082
+ * @returns Stake account info, or undefined if the account doesn't exist
3083
+ */
3084
+ getStakeAccount(pubkey: PublicKey): Promise<StakeAccountInfo | undefined>;
3085
+ /**
3086
+ * Get all registered validator accounts.
3087
+ *
3088
+ * @param request - Request config (e.g. whether to use frozen state)
3089
+ * @returns Array of validator account info
3090
+ */
3091
+ getValidatorAccounts(request: GetValidatorAccountsRequest): Promise<ValidatorAccountInfo[]>;
3092
+ /**
3093
+ * Get the token balance of an SPL Token account.
3094
+ *
3095
+ * @param pubkey - The public key of the token account
3096
+ * @returns Token balance with amount, decimals, and UI-formatted string
3097
+ */
3098
+ getTokenAccountBalance(pubkey: PublicKey): Promise<TokenBalance>;
3099
+ /**
3100
+ * Get registered REX requests for a creator.
3101
+ *
3102
+ * REX (Remote EXecution) requests are scheduled jobs that validators
3103
+ * execute on behalf of a creator.
3104
+ *
3105
+ * @param creator - The creator's public key
3106
+ * @param nonce - Optional nonce to filter a specific request
3107
+ * @returns Array of REX request info with their assigned duties
3108
+ */
3109
+ getRexRequests(creator: PublicKey, nonce: string | undefined): Promise<RexInfoAndDuties[]>;
3110
+ /**
3111
+ * Get missed REX duty proposal rounds for a specific REX request.
3112
+ *
3113
+ * @param creator - The creator's public key
3114
+ * @param nonce - The nonce identifying the REX request
3115
+ * @returns Array of proposal round numbers where duties were missed
3116
+ */
3117
+ getRexMissedDuties(creator: PublicKey, nonce: string): Promise<bigint[]>;
3118
+ /**
3119
+ * Get information about all known cluster nodes.
3120
+ *
3121
+ * @returns Array of cluster node info with stake, addresses, and keys
3122
+ */
3123
+ getClusterNodes(): Promise<ClusterNodeInfo[]>;
3124
+ /**
3125
+ * Get the list of validator indices this node is connected to.
3126
+ *
3127
+ * @returns Array of validator indices
3128
+ */
3129
+ getConnectedValidators(): Promise<number[]>;
3315
3130
  }
3316
3131
 
3317
3132
  /**
@@ -3348,7 +3163,7 @@ declare class TransactionRpcClient extends BaseRpcClient {
3348
3163
  * });
3349
3164
  * ```
3350
3165
  */
3351
- sendTransaction(transaction: Uint8Array, options?: SendTransactionOptions): Promise<string>;
3166
+ sendTransaction(transaction: Uint8Array, options?: Partial<SendTransactionOptions>): Promise<string>;
3352
3167
  /**
3353
3168
  * Wait for a transaction to be confirmed.
3354
3169
  *
@@ -3361,7 +3176,7 @@ declare class TransactionRpcClient extends BaseRpcClient {
3361
3176
  * @throws {TransactionFailedError} If the transaction fails on-chain
3362
3177
  * @throws {TransactionConfirmationTimeoutError} If confirmation times out
3363
3178
  */
3364
- confirmTransaction(signature: string, options?: ConfirmTransactionOptions): Promise<ConfirmedTransaction>;
3179
+ confirmTransaction(signature: string, options?: Partial<ConfirmTransactionOptions>): Promise<ConfirmedTransaction>;
3365
3180
  /**
3366
3181
  * Submit a signed transaction and wait for confirmation.
3367
3182
  *
@@ -3382,11 +3197,12 @@ declare class TransactionRpcClient extends BaseRpcClient {
3382
3197
  * // With custom retry settings
3383
3198
  * const result = await client.sendAndConfirmTransaction(signedTx, {
3384
3199
  * maxRetries: 3,
3385
- * retryDelay: 500,
3200
+ * confirmMaxRetries: 10,
3201
+ * confirmRetryDelayMs: 500,
3386
3202
  * });
3387
3203
  * ```
3388
3204
  */
3389
- sendAndConfirmTransaction(transaction: Uint8Array, options?: SendAndConfirmOptions): Promise<ConfirmedTransaction>;
3205
+ sendAndConfirmTransaction(transaction: Uint8Array, options?: Partial<SendAndConfirmOptions>): Promise<ConfirmedTransaction>;
3390
3206
  /**
3391
3207
  * Request an airdrop of tokens to an account.
3392
3208
  *
@@ -3428,7 +3244,14 @@ declare class TransactionRpcClient extends BaseRpcClient {
3428
3244
  * }
3429
3245
  * ```
3430
3246
  */
3431
- requestAirdropAndConfirm(pubkey: PublicKey, amount: bigint, options?: ConfirmTransactionOptions): Promise<ConfirmedTransaction>;
3247
+ requestAirdropAndConfirm(pubkey: PublicKey, amount: bigint, options?: Partial<ConfirmTransactionOptions>): Promise<ConfirmedTransaction>;
3248
+ /**
3249
+ * Submit an epoch change transaction (admin-only).
3250
+ *
3251
+ * @param request - The epoch change request payload
3252
+ * @returns Response from the epoch change submission
3253
+ */
3254
+ sendAdminTransaction(request: SubmitEpochChangeRequest): Promise<SubmitEpochChangeResponse>;
3432
3255
  private getTransaction;
3433
3256
  /**
3434
3257
  * Sleeps for a given number of milliseconds.
@@ -4680,4 +4503,4 @@ declare function getMainnetUrl(): string;
4680
4503
  */
4681
4504
  declare function getLocalnetUrl(): string;
4682
4505
 
4683
- export { type AccountFilter, type AccountFilterParam, type AccountInfo, type AccountMeta, AccountMetaTable, BASE_DERIVATION_PATH, BaseRpcClient, BincodeReader, type BincodeSchema, BincodeWriter, type Bump, CHACHA20_POLY1305_TAG_LENGTH, type ChainDefinition, type CompiledInstruction, type ConfirmTransactionOptions, type ConfirmedTransaction, CryptoError, CryptoErrorCode, DEFAULT_NUM_ACCOUNTS, ED25519_PUBLIC_KEY_LENGTH, type EnumVariant, type EpochInfoResponse, type EventData, type GetAccountsByOwnerConfig, type GetAccountsByOwnerResponse, type GetHealthResponse, type GetSecretSharingPubkeyResponse, type GetSignaturesForAddressConfig, type GetTransactionsResponse, type GetWorkflowLineageRequest, type GetWorkflowLineageResponse, HPKE_ENC_LENGTH, HPKE_OVERHEAD_LENGTH, HpkeError, HpkeErrorCode, HttpTransport, type HttpTransportConfig, type IdentifierString, type InferSchema, type Instruction, KELVIN_PER_RLO, Keypair, KeypairSigner, Message, type MessageHeader, Mnemonic, type MnemonicStrength, type OwnerAccount, type PDA, PUBLIC_KEY_LENGTH, type PaginationInfo, PublicKey, QueryRpcClient, RIALO_DEVNET_CHAIN, RIALO_LOCALNET_CHAIN, RIALO_MAINNET_CHAIN, RIALO_TESTNET_CHAIN, RexValue, RexValueVariant, RialoClient, type RialoClientConfig, RialoError, RialoErrorType, type RialoNetwork, RpcError, RpcErrorCode, type RpcErrorDetails$1 as RpcErrorDetails, SECRET_KEY_LENGTH, SECRET_SHARING_HPKE_INFO, SIGNATURE_LENGTH, SYSTEM_PROGRAM_ID, Schema, type Seed, type SendAndConfirmOptions, type SendTransactionOptions, Signature$1 as Signature, type SignatureInfo, type SignatureStatus, type Signer, type StructField, type Subscription, type SubscriptionKind, SystemInstruction, type TimestampRange, Transaction, TransactionBuilder, TransactionError, TransactionErrorCode, type TransactionNodeData, type TransactionResponse, TransactionRpcClient, type TriggerInfo, type TriggeredTransaction, type TruncationReason, URL_DEVNET, URL_LOCALNET, URL_MAINNET, URL_TESTNET, USER_SECRET_AAD, type WorkflowLineage, type WorkflowNode, X25519_PUBLIC_KEY_LENGTH, allocateInstruction, assignInstruction, calculateBackoff, concatBytes, createAccount, createBorshInstruction, createRialoClient, deserialize, deserializeBorsh, deserializeCompactU16, deserializeStrict, encodeBorshData, encryptForRex, fromBase64, getCiphertextLength, getDefaultRialoClientConfig, getDevnetUrl, getLocalnetUrl, getMainnetUrl, getTestnetUrl, hpkeEncrypt, isOnCurve, isValidCiphertextLength, seedToBytes, serialize, serializeBorsh, serializeCompactU16, sleep, toBase64, transferInstruction, writeCompactU16 };
4506
+ export { type AccountFilter, type AccountFilterParam, type AccountInfo, type AccountMeta, AccountMetaTable, type AllAccountsEntry, BASE_DERIVATION_PATH, BaseRpcClient, BincodeReader, type BincodeSchema, BincodeWriter, type BlockInfo, type Bump, CHACHA20_POLY1305_TAG_LENGTH, type ChainDefinition, type ClusterNodeInfo, type CompiledInstruction, type ConfigHashPrefix, type ConfirmTransactionOptions, type ConfirmedTransaction, type ConnectedNode, CryptoError, CryptoErrorCode, DEFAULT_NUM_ACCOUNTS, ED25519_PUBLIC_KEY_LENGTH, type EnumVariant, type EpochConsensusConfigRequest, type EpochInfo, type EventData, type FeeResponse, type GetAccountsByOwnerConfig, type GetAllAccountsConfig, type GetBlockConfig, type GetSignaturesForAddressConfig, type GetTransactionsConfig, type GetValidatorAccountsRequest, type GetWorkflowLineageRequest, type GetWorkflowLineageResponse, HPKE_ENC_LENGTH, HPKE_OVERHEAD_LENGTH, HpkeError, HpkeErrorCode, HttpTransport, type HttpTransportConfig, type IdentifierString, type InferSchema, type Instruction, type IsBlockhashValidResponse, KELVIN_PER_RLO, type Kelvin, Keypair, KeypairSigner, Message, type MessageHeader, Mnemonic, type MnemonicStrength, type OptionalAccountInfo, type OwnerAccount, type PDA, PUBLIC_KEY_LENGTH, type PaginationInfo, PublicKey, QueryRpcClient, RIALO_DEVNET_CHAIN, RIALO_LOCALNET_CHAIN, RIALO_MAINNET_CHAIN, RIALO_TESTNET_CHAIN, type RexDuty, type RexInfoAndDuties, RexValue, RexValueVariant, RialoClient, type RialoClientConfig, RialoError, RialoErrorType, type RialoNetwork, RpcError, RpcErrorCode, type RpcErrorDetails$1 as RpcErrorDetails, SECRET_KEY_LENGTH, SECRET_SHARING_HPKE_INFO, SIGNATURE_LENGTH, SYSTEM_PROGRAM_ID, Schema, type SecretSharingPubkey, type Seed, type SendAndConfirmOptions, type SendTransactionOptions, Signature$1 as Signature, type SignatureInfo, type SignatureStatus, type Signer, type StakeAccountInfo, type StakeState, type StructField, type SubmitEpochChangeRequest, type SubmitEpochChangeResponse, type Subscription, type SubscriptionAccountMeta, type SubscriptionInstruction, type SubscriptionKind, SystemInstruction, type TimestampRange, type TokenBalance, Transaction, TransactionBuilder, type TransactionData, TransactionError, TransactionErrorCode, type TransactionInfo, type TransactionMessage, type TransactionNodeData, type TransactionResponse, TransactionRpcClient, type TransactionStatusMetadata, type TransactionWithMeta, type TriggerInfo, type TriggeredTransaction, type TruncationReason, URL_DEVNET, URL_LOCALNET, URL_MAINNET, URL_TESTNET, USER_SECRET_AAD, type ValidatorAccountInfo, type ValidatorHealth, type ValidatorInfoRequest, type WorkflowLineage, type WorkflowNode, X25519_PUBLIC_KEY_LENGTH, allocateInstruction, assignInstruction, calculateBackoff, concatBytes, createAccount, createBorshInstruction, createRialoClient, deserialize, deserializeBorsh, deserializeCompactU16, deserializeStrict, encodeBorshData, encryptForRex, fromBase64, getCiphertextLength, getDefaultRialoClientConfig, getDevnetUrl, getLocalnetUrl, getMainnetUrl, getTestnetUrl, hpkeEncrypt, isOnCurve, isValidCiphertextLength, seedToBytes, serialize, serializeBorsh, serializeCompactU16, sleep, toBase64, transferInstruction, writeCompactU16 };