@orbinum/sdk 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -498,535 +498,12 @@ declare class EvmExplorer {
498
498
  private static hexToDecimalStr;
499
499
  }
500
500
 
501
- /** Configuration for IndexerClient. */
502
- interface IndexerClientConfig {
503
- /** Base URL of the indexer REST API (no trailing slash). */
504
- baseUrl: string;
505
- /** Request timeout in ms. Default: 10_000. */
506
- timeoutMs?: number;
507
- }
508
- /** Generic paginated result returned by list endpoints. */
509
- interface PaginatedResult<T> {
510
- data: T[];
511
- pagination: {
512
- page: number;
513
- limit: number;
514
- total: number;
515
- };
516
- }
517
- /** A shielded commitment (shield event) stored by the indexer. */
518
- interface ShieldedCommitment {
519
- commitmentHex: string;
520
- blockNumber: number;
521
- extrinsicIndex: number | null;
522
- leafIndex: number;
523
- assetId: string;
524
- source: 'shield' | 'transfer' | 'unshield';
525
- encryptedMemo: string | null;
526
- circuitVersion: number | null;
527
- timestampMs: number | null;
528
- }
529
- /** A spent nullifier stored by the indexer. */
530
- interface SpentNullifier {
531
- nullifierHex: string;
532
- blockNumber: number;
533
- extrinsicIndex: number | null;
534
- txType: 'unshield' | 'private_transfer';
535
- timestampMs: number | null;
536
- }
537
- /** One sealed, immutable chunk of the spent-nullifier set (manifest entry). */
538
- interface NullifierChunkInfo {
539
- idx: number;
540
- /** Exact number of nullifiers in the chunk. */
541
- count: number;
542
- /** sha256 (hex) of the chunk's nullifier hexes sorted ascending — goes in the chunk URL. */
543
- digest: string;
544
- }
545
- /**
546
- * Universal index of the sealed nullifier chunks — identical for every caller.
547
- * No client-supplied position parameter exists anywhere in the chunk flow, so
548
- * the PIR-A property of `/nullifiers/all` is preserved while transfers become
549
- * incremental (clients persist chunks locally and only fetch new ones).
550
- */
551
- interface NullifierManifest {
552
- /** Bumped by the operator on semantic corrections; a change means: resync from zero. */
553
- generation: string;
554
- /** Target chunk size (informational; each chunk's exact size is its `count`). */
555
- chunkSize: number;
556
- chunks: NullifierChunkInfo[];
557
- /** Σ sealed counts + current tail size. */
558
- total: number;
559
- }
560
- /** The mutable remainder of the nullifier set after the last sealed chunk. */
561
- interface NullifierTail {
562
- /** Number of sealed chunks the tail starts after (detects a chunk sealed mid-sync). */
563
- afterChunks: number;
564
- data: string[];
565
- }
566
- /** Temporal metadata for a private transfer. No graph data (inputs ↔ outputs) exposed. */
567
- interface PrivateTransferTimestamp {
568
- blockNumber: number;
569
- extrinsicIndex: number | null;
570
- /** Blake2-256 hash of the raw extrinsic, 0x-prefixed. Null if the extrinsic was not decoded. */
571
- hash: string | null;
572
- timestampMs: number | null;
573
- /**
574
- * Subset of the queried nullifiers that were spent in this specific extrinsic.
575
- * Returned by `getTransfersByNullifiers`. Use to identify which input vault notes
576
- * belong to this transfer for local reconstruction.
577
- */
578
- matchedNullifiers?: string[];
579
- /**
580
- * Subset of the queried commitments that were inserted in this specific extrinsic.
581
- * Returned by `getTransfersByCommitments`. Use to identify which output vault notes
582
- * (change notes or received notes) belong to this transfer.
583
- */
584
- matchedCommitments?: string[];
585
- }
586
- /** An unshield event stored by the indexer. */
587
- interface Unshield {
588
- /** "{blockNumber}-{extrinsicIndex}" */
589
- id: string;
590
- blockNumber: number;
591
- extrinsicIndex: number | null;
592
- /** Blake2-256 hash of the raw extrinsic, 0x-prefixed. Null if the extrinsic was not decoded. */
593
- hash: string | null;
594
- nullifierHex: string;
595
- /** Asset ID as decimal string. */
596
- assetId: string;
597
- /** Amount as decimal string (bigint-safe). */
598
- amount: string;
599
- recipient: string;
600
- timestampMs: number | null;
601
- }
602
- /** A Merkle root checkpoint stored by the indexer. */
603
- interface MerkleRoot {
604
- id: number;
605
- rootHex: string;
606
- blockNumber: number;
607
- oldRootHex: string | null;
608
- treeSize: number;
609
- timestampMs: number | null;
610
- }
611
- /** Response from the nullifier status endpoint. */
612
- interface NullifierStatusResult {
613
- nullifier: string;
614
- spent: boolean;
615
- txType?: 'unshield' | 'private_transfer';
616
- blockNumber?: number;
617
- }
618
- /** A substrate extrinsic row returned by the address indexer endpoint. */
619
- interface IndexedExtrinsic {
620
- id: string;
621
- blockNumber: number;
622
- index: number;
623
- hash: string | null;
624
- section: string;
625
- method: string;
626
- signer: string | null;
627
- success: boolean;
628
- feePaid: string | null;
629
- eventsJson: string;
630
- argsJson: string;
631
- timestampMs: number | null;
632
- }
633
- /** An indexed EVM transaction returned by explorer endpoints. */
634
- interface IndexedEvmTx {
635
- hash: string;
636
- blockNumber: number;
637
- fromAddress: string | null;
638
- toAddress: string | null;
639
- value: string;
640
- gasUsed: number | null;
641
- gasPrice: string | null;
642
- status: number | null;
643
- inputData: string | null;
644
- nonce: number | null;
645
- transactionIndex: number | null;
646
- timestampMs: number | null;
647
- evmBlockHash: string | null;
648
- }
649
- /** An indexed block returned by the blocks endpoint. */
650
- interface IndexedBlock {
651
- number: number;
652
- hash: string;
653
- parentHash: string;
654
- timestampMs: number | null;
655
- author: string | null;
656
- extrinsicCount: number;
657
- evmTxCount: number;
658
- evmHash: string | null;
659
- evmParentHash?: string | null;
660
- evmMiner?: string | null;
661
- evmGasUsed?: string | null;
662
- evmGasLimit?: string | null;
663
- evmBaseFeePerGas?: string | null;
664
- }
665
- /** Aggregated statistics returned by the /stats endpoint. */
666
- interface IndexerStats {
667
- blocks: {
668
- indexed: number;
669
- latest: number | null;
670
- latestHash: string | null;
671
- latestTimestampMs: number | null;
672
- };
673
- extrinsics: {
674
- total: number;
675
- signed: number;
676
- };
677
- evm: {
678
- transactions: number;
679
- };
680
- shielded: {
681
- commitments: number;
682
- spentNullifiers: number;
683
- merkleRoot: string | null;
684
- treeSize: number | null;
685
- };
686
- relayers: {
687
- active: number;
688
- };
689
- zkVerifier: {
690
- total: number;
691
- successful: number;
692
- };
693
- }
694
- /** One hour-bucket of transaction activity from `/stats/activity`. */
695
- interface ActivityBucket {
696
- hourStartMs: number;
697
- transactions: number;
698
- signedExtrinsics: number;
699
- evmTransactions: number;
700
- }
701
- /** Transaction activity bucketed per hour over the last N hours of chain time. */
702
- interface IndexerActivity {
703
- hours: number;
704
- anchorMs: number | null;
705
- buckets: ActivityBucket[];
706
- }
707
- /** A registered relayer stored by the indexer. */
708
- interface Relayer {
709
- evmAddress: string;
710
- account: string;
711
- active: boolean;
712
- registeredAtBlock: number;
713
- unregisteredAtBlock: number | null;
714
- timestampMs: number | null;
715
- }
716
- /** A relay fee accumulation or consumption event stored by the indexer. */
717
- interface RelayFeeEvent {
718
- id: number;
719
- relayer: string;
720
- assetId: string;
721
- /** Amount as decimal string (bigint-safe). */
722
- amount: string;
723
- eventType: 'accumulated' | 'consumed';
724
- blockNumber: number;
725
- timestampMs: number | null;
726
- }
727
- /** Aggregated relay fee balance per asset for a given relayer. */
728
- interface RelayFeeSummaryEntry {
729
- assetId: string;
730
- /** Total accumulated (bigint string). */
731
- accumulated: string;
732
- /** Total consumed (bigint string). */
733
- consumed: string;
734
- /** pending = accumulated − consumed (bigint string). */
735
- pending: string;
736
- }
737
- /** A registered asset stored by the indexer. */
738
- interface RegisteredAsset {
739
- assetId: string;
740
- name: string | null;
741
- symbol: string | null;
742
- decimals: number | null;
743
- contractAddress: string | null;
744
- /** Whether the asset is verified by the protocol. */
745
- verified: boolean;
746
- registeredAtBlock: number;
747
- timestampMs: number | null;
748
- }
749
- /**
750
- * One shielded-pool BOUNDARY event for an address, as served by
751
- * `GET /shielded/address/:addr`. Only boundary facts are exposed — block,
752
- * asset, amount (unshield), time, tx hash. Note internals (commitment hex,
753
- * leaf index, nullifier, memo, sender/recipient) are never returned
754
- * per-address: a public sender→leaf mapping would shrink the shielded pool's
755
- * anonymity set. Private transfers carry no address and are never included.
756
- */
757
- interface ShieldedAddressEvent {
758
- /** 'shield' = deposit into the pool by this address; 'unshield' = withdrawal received by it. */
759
- kind: 'shield' | 'unshield';
760
- blockNumber: number;
761
- extrinsicIndex: number | null;
762
- /** Asset ID as decimal string. */
763
- assetId: string;
764
- /**
765
- * Amount as decimal string (bigint-safe) for unshields.
766
- * Always null for shields — the shield amount lives in the extrinsic, not the index.
767
- */
768
- amount: string | null;
769
- timestampMs: number | null;
770
- /** Blake2-256 hash of the enclosing extrinsic, 0x-prefixed. Null if not decoded. */
771
- hash: string | null;
772
- }
773
- /** A validator node indexed from pallet-validator-set events. */
774
- interface IndexedValidator {
775
- account: string;
776
- /** Current lifecycle status of the validator. */
777
- status: 'pending' | 'approved' | 'rejected' | 'removed';
778
- /** Reserved bond amount as decimal string (bigint-safe). Null if no bond was reserved. */
779
- bondAmount: string | null;
780
- requestedAtBlock: number | null;
781
- approvedAtBlock: number | null;
782
- removedAtBlock: number | null;
783
- timestampMs: number | null;
784
- }
785
- /** A session rotation event indexed from pallet-session NewSession events. */
786
- interface IndexedSession {
787
- sessionIndex: number;
788
- blockNumber: number;
789
- timestampMs: number | null;
790
- }
791
- /**
792
- * Lightweight hint returned by the stealth scan endpoint.
793
- * Contains only the fields required for a wallet to:
794
- * 1. Compute ECDH shared secret: ephPkHex × ivsk
795
- * 2. Attempt ChaCha20-Poly1305 decryption of encryptedMemo
796
- * Ordered ascending by leafIndex for incremental cursor compatibility.
797
- */
798
- interface StealthScanHint {
799
- leafIndex: number;
800
- commitmentHex: string;
801
- /**
802
- * Asset ID as decimal string.
803
- * For shield-origin commitments this is the real asset ID.
804
- * For transfer-origin commitments this is always `"0"` — the chain does not emit the asset ID
805
- * in `CommitmentsInserted` events by design (privacy: prevents cross-asset graph correlation).
806
- * Recover the true asset by decrypting `encryptedMemo`.
807
- */
808
- assetId: string;
809
- /** Ephemeral public key (last 32 bytes of encrypted_memo), 0x-prefixed. null if memo absent. */
810
- ephPkHex: string | null;
811
- /** Full 180-byte encrypted memo (0x-prefixed hex). null if not present. The note's
812
- * circuit version travels inside this memo — recovered by NoteDecryptor on scan. */
813
- encryptedMemo: string | null;
814
- }
815
-
816
- /**
817
- * HTTP client for the Orbinum indexer REST API.
818
- *
819
- * All methods throw on network errors.
820
- * Methods returning a single entity return `null` when the server responds 404.
821
- */
822
- declare class IndexerClient {
823
- private readonly baseUrl;
824
- private readonly timeoutMs;
825
- constructor(config: IndexerClientConfig);
826
- private _fetchResponse;
827
- private get;
828
- private getOrNull;
829
- private buildQuery;
830
- /** Returns the total count of shielded commitments. */
831
- getCommitmentsCount(): Promise<number>;
832
- /** Returns a paginated list of shielded commitments. */
833
- getCommitments(params?: {
834
- page?: number;
835
- limit?: number;
836
- sinceLeafIndex?: number;
837
- }): Promise<PaginatedResult<ShieldedCommitment>>;
838
- /** Returns a single commitment by its hex string, or null if not found. */
839
- getCommitmentByHex(hex: string): Promise<ShieldedCommitment | null>;
840
- /**
841
- * Returns a paginated list of stealth scan hints ordered ascending by leafIndex.
842
- * Each hint contains only the fields required for ECDH triage and decryption:
843
- * leafIndex, commitmentHex, assetId, ephPkHex, encryptedMemo, circuitVersion.
844
- *
845
- * Use `sinceLeafIndex` for incremental scans (cursor = last seen leafIndex + 1).
846
- */
847
- getScanHints(params?: {
848
- page?: number;
849
- limit?: number;
850
- sinceLeafIndex?: number;
851
- }): Promise<PaginatedResult<StealthScanHint>>;
852
- /** Returns a paginated list of spent nullifiers. */
853
- getNullifiers(params?: {
854
- page?: number;
855
- limit?: number;
856
- }): Promise<PaginatedResult<SpentNullifier>>;
857
- /** Returns the spent/unspent status of a nullifier. */
858
- getNullifierStatus(hex: string): Promise<NullifierStatusResult>;
859
- /**
860
- * Downloads the full spent nullifier set and returns it as a Set of lowercase hex strings.
861
- *
862
- * The server sees an identical GET request regardless of which notes the wallet holds —
863
- * the intersection is computed locally (PIR-A privacy model).
864
- *
865
- * Kept as the FALLBACK for readers that don't serve sealed chunks yet (and for
866
- * small sets). New integrations should prefer the incremental chunk flow:
867
- * `getNullifierManifest` → `getNullifierChunk` for missing chunks →
868
- * `getNullifierTail`, persisting the set locally between rescans.
869
- */
870
- getAllSpentNullifiers(): Promise<Set<string>>;
871
- /**
872
- * Universal index of the sealed nullifier chunks — identical request and
873
- * response for every caller (no client-supplied position: PIR-A preserved).
874
- *
875
- * Returns `null` when the reader does not serve chunks yet (404) — the
876
- * caller should fall back to `getAllSpentNullifiers`.
877
- */
878
- getNullifierManifest(): Promise<NullifierManifest | null>;
879
- /**
880
- * One sealed, immutable chunk of the spent-nullifier set (ascending hex,
881
- * lowercased). The digest comes from the manifest and lives in the URL, so
882
- * a corrected chunk is a different URL — safe to cache forever client-side.
883
- */
884
- getNullifierChunk(idx: number, digest: string): Promise<string[]>;
885
- /**
886
- * The mutable remainder of the nullifier set after the last sealed chunk.
887
- * Identical request for every caller (no input). `afterChunks` lets the
888
- * client detect a chunk sealed between its manifest fetch and this one.
889
- */
890
- getNullifierTail(): Promise<NullifierTail>;
891
- /** Server-enforced max items per by-nullifiers / by-commitments request. */
892
- private static readonly TRANSFER_LOOKUP_CHUNK;
893
- /**
894
- * Chunked fetch for the transfer timestamp lookups. The reader silently
895
- * truncates each request to 50 items, so larger inputs MUST be split or
896
- * results are silently lost. Responses are merged per extrinsic
897
- * (`blockNumber:extrinsicIndex`), concatenating the matched arrays, and
898
- * sorted by block descending.
899
- *
900
- * Privacy note: these lookups send the wallet's own note identifiers to
901
- * the indexer — a bounded, documented linkage tradeoff for timestamp
902
- * recovery. They are NEVER used for spent-STATUS checks (PIR-A: status
903
- * comes from the anonymous full-set `/shielded/nullifiers/all` download).
904
- */
905
- private fetchTransfersChunked;
906
- /**
907
- * Returns temporal metadata for private transfers that spent any of the given nullifiers.
908
- * Only blockNumber, extrinsicIndex, timestampMs, and hash are returned — no cross-link
909
- * between inputs and outputs to prevent graph reconstruction.
910
- * Inputs of any size are transparently chunked into requests of 50 (the server cap)
911
- * and merged per extrinsic.
912
- */
913
- getTransfersByNullifiers(nullifiers: string[]): Promise<PrivateTransferTimestamp[]>;
914
- /**
915
- * Returns temporal metadata for private transfers that produced any of the given commitments.
916
- * Only blockNumber, extrinsicIndex, timestampMs, and hash are returned — no cross-link
917
- * between outputs and inputs to prevent graph reconstruction.
918
- * Inputs of any size are transparently chunked into requests of 50 (the server cap)
919
- * and merged per extrinsic.
920
- */
921
- getTransfersByCommitments(commitments: string[]): Promise<PrivateTransferTimestamp[]>;
922
- /** Returns a paginated list of unshield events. */
923
- getUnshields(params?: {
924
- page?: number;
925
- limit?: number;
926
- }): Promise<PaginatedResult<Unshield>>;
927
- /** Returns a paginated list of Merkle root checkpoints. */
928
- getMerkleRoots(params?: {
929
- page?: number;
930
- limit?: number;
931
- }): Promise<PaginatedResult<MerkleRoot>>;
932
- /** Returns the latest Merkle root, or null if none exists. */
933
- getLatestMerkleRoot(): Promise<MerkleRoot | null>;
934
- /** Returns a paginated list of extrinsics signed by the given address. */
935
- getAddressExtrinsics(address: string, params?: {
936
- page?: number;
937
- limit?: number;
938
- }): Promise<PaginatedResult<IndexedExtrinsic>>;
939
- /** Returns a paginated list of EVM transactions filtered by address and/or block number. */
940
- getEvmTransactions(params?: {
941
- page?: number;
942
- limit?: number;
943
- address?: string;
944
- blockNumber?: number;
945
- }): Promise<PaginatedResult<IndexedEvmTx>>;
946
- /** Returns a single EVM transaction by hash, or null if not found. */
947
- getEvmTransactionByHash(hash: string): Promise<IndexedEvmTx | null>;
948
- /** Returns a paginated list of indexed blocks. */
949
- getBlocks(params?: {
950
- page?: number;
951
- limit?: number;
952
- }): Promise<PaginatedResult<IndexedBlock>>;
953
- /** Returns a single block by number or hash, or null if not found. */
954
- getBlock(numberOrHash: string | number): Promise<IndexedBlock | null>;
955
- /**
956
- * Returns a paginated list of unshield events where the given address is the recipient.
957
- * Accepts a 0x-prefixed EVM address or an SS58 Substrate address.
958
- */
959
- getAddressUnshields(address: string, params?: {
960
- page?: number;
961
- limit?: number;
962
- }): Promise<PaginatedResult<Unshield>>;
963
- /**
964
- * Returns the shielded-pool BOUNDARY activity for an address: shields it
965
- * deposited and unshields it received, tagged `kind: 'shield' | 'unshield'`.
966
- * Only boundary fields are returned (block, asset, amount for unshields,
967
- * timestamp, tx hash) — note internals are never served per-address, and
968
- * private transfers carry no address at all (PIR-A).
969
- */
970
- getAddressShieldedActivity(address: string, params?: {
971
- page?: number;
972
- limit?: number;
973
- }): Promise<PaginatedResult<ShieldedAddressEvent>>;
974
- /** Returns a paginated list of relayers. Filter by active status with `active`. */
975
- getRelayers(params?: {
976
- page?: number;
977
- limit?: number;
978
- active?: boolean;
979
- }): Promise<PaginatedResult<Relayer>>;
980
- /** Returns a single relayer by EVM address, or null if not found. */
981
- getRelayer(evmAddress: string): Promise<Relayer | null>;
982
- /** Returns a paginated list of relay fee events. */
983
- getRelayFees(params?: {
984
- page?: number;
985
- limit?: number;
986
- relayer?: string;
987
- type?: 'accumulated' | 'consumed';
988
- }): Promise<PaginatedResult<RelayFeeEvent>>;
989
- /** Returns aggregated relay fee balances per asset for a given relayer account. */
990
- getRelayFeesSummary(relayer: string): Promise<RelayFeeSummaryEntry[]>;
991
- /** Returns a paginated list of assets registered via register_asset. */
992
- getRegisteredAssets(params?: {
993
- page?: number;
994
- limit?: number;
995
- }): Promise<PaginatedResult<RegisteredAsset>>;
996
- /** Returns a single registered asset by its ID, or null if not found. */
997
- getRegisteredAsset(assetId: string): Promise<RegisteredAsset | null>;
998
- /** Returns a paginated list of validators. Filter by lifecycle status with `status`. */
999
- getValidators(params?: {
1000
- page?: number;
1001
- limit?: number;
1002
- status?: 'pending' | 'approved' | 'rejected' | 'removed';
1003
- }): Promise<PaginatedResult<IndexedValidator>>;
1004
- /** Returns a single validator by account address, or null if not found. */
1005
- getValidator(account: string): Promise<IndexedValidator | null>;
1006
- /** Returns a paginated list of session rotations, ordered by most recent first. */
1007
- getSessions(params?: {
1008
- page?: number;
1009
- limit?: number;
1010
- }): Promise<PaginatedResult<IndexedSession>>;
1011
- /** Returns aggregated indexer statistics. */
1012
- getStats(): Promise<IndexerStats>;
1013
- /**
1014
- * Returns transaction activity bucketed per hour over the last `hours` hours
1015
- * of chain time (default 24, max 168). For sparklines / activity charts.
1016
- */
1017
- getActivity(hours?: number): Promise<IndexerActivity>;
1018
- /** Returns true if the indexer health endpoint responds OK. */
1019
- isHealthy(): Promise<boolean>;
1020
- }
1021
-
1022
501
  /** Configuration passed to `OrbinumClient.connect()`. */
1023
502
  type OrbinumClientConfig = {
1024
503
  /** WebSocket URL of the Orbinum Substrate node (e.g. `"ws://localhost:9944"`). */
1025
504
  substrateWs: string;
1026
505
  /** HTTP URL of the EVM JSON-RPC endpoint (e.g. `"http://localhost:9933"`). Omit to disable EVM support. */
1027
506
  evmRpc?: string;
1028
- /** Base URL of the Orbinum indexer REST API (e.g. `"https://indexer.orbinum.io"`). Omit to disable indexer support. */
1029
- indexerUrl?: string;
1030
507
  /** Timeout for the initial WebSocket handshake in milliseconds. Default: `15_000`. */
1031
508
  connectTimeoutMs?: number;
1032
509
  /**
@@ -2179,12 +1656,6 @@ declare class OrbinumClient {
2179
1656
  * `null` when `evmRpc` is not configured.
2180
1657
  */
2181
1658
  readonly evmExplorer: EvmExplorer | null;
2182
- /**
2183
- * HTTP client for the Orbinum indexer REST API.
2184
- * Provides paginated access to indexed blocks, extrinsics, shielded events, and nullifiers.
2185
- * `null` when `indexerUrl` is not configured.
2186
- */
2187
- readonly indexer: IndexerClient | null;
2188
1659
  /** Shielded-pool extrinsics and Merkle tree queries (`shield`, `unshield`, `privateTransfer`, …). */
2189
1660
  readonly shieldedPool: ShieldedPoolModule;
2190
1661
  /** Account-mapping extrinsics: aliases, chain links, metadata, marketplace, and identity. */
@@ -2244,8 +1715,6 @@ interface ClientProviderConfig {
2244
1715
  substrateWs: string;
2245
1716
  /** HTTP URL of the EVM JSON-RPC endpoint (e.g. `"http://localhost:9933"`). Omit to disable EVM support. */
2246
1717
  evmRpc?: string;
2247
- /** Base URL of the Orbinum indexer REST API (e.g. `"https://indexer.orbinum.io"`). Omit to disable indexer support. */
2248
- indexerUrl?: string;
2249
1718
  /** Base URL of a circuits-artifact mirror (manifest.json + artifacts). Omit to use the default npm CDN. */
2250
1719
  circuitsBaseUrl?: string;
2251
1720
  /** Timeout for the initial WebSocket handshake in milliseconds. Default: `8_000`. */
@@ -4703,4 +4172,4 @@ interface ExtrinsicFailedData {
4703
4172
  dispatch_info: DispatchInfo;
4704
4173
  }
4705
4174
 
4706
- export { type AccountListing, type AccountMappedData, type AccountMappedEvent, type AccountMappingCall, type AccountMappingEvent, AccountMappingModule, AccountMappingPrecompile, type AccountMetadata, type AccountUnmappedEvent, type ActiveVersionSetEvent, type ActivityBucket, type AddChainLinkArgs, type AddChainLinkParams, type AddSupportedChainArgs, type AliasFullIdentity, type AliasInfo, type AliasListedForSaleEvent, type AliasOnSaleData, type AliasRegisteredData, type AliasRegisteredEvent, type AliasReleasedEvent, type AliasSaleCancelledEvent, type AliasSoldData, type AliasSoldEvent, type AliasTransferredData, type AliasTransferredEvent, type AssetRegisteredEvent, type AssetUnverifiedEvent, type AssetVerifiedEvent, BABYJUB_SUBORDER, BN254_R, type BatchRegisterVerificationKeysArgs, type BatchVerificationKeysRegisteredEvent, type BlockInfo, type BuyAliasArgs, type Bytes32, CURRENT_CIRCUIT_VERSION, type ChainInfo, type ChainLink, type ChainLinkAddedEvent, type ChainLinkRemovedEvent, CircuitId, CircuitId as CircuitIdType, CircuitVersionResolver, type ClaimShieldedFeesParams, type ClientProviderConfig, type CommitmentsInsertedEvent, type CommitmentsInsertedEventData, type ConnectionStatus, CryptoPrecompiles, type DecodedAddChainLinkArgs, type DecodedBatchArgs, type DecodedDispatchAsPrivateLinkArgs, type DecodedEthereumTransactArgs, type DecodedEvmCallArgs, type DecodedPrecompile, type DecodedPrivateTransferArgs, type DecodedPutAliasForSaleArgs, type DecodedRegisterAliasArgs, type DecodedRemarkArgs, type DecodedRevealPrivateLinkArgs, type DecodedSetAccountMetadataArgs, type DecodedShieldArgs, type DecodedShieldBatchArgs, type DecodedShieldBatchOperation, type DecodedSudoArgs, type DecodedTransferAllArgs, type DecodedTransferArgs, type DecodedTransferKeepAliveArgs, type DecodedUnshieldArgs, type DecryptedMemo, type DispatchAsLinkedAccountArgs, type DispatchAsLinkedParams, type DispatchAsPrivateLinkArgs, type DispatchError, type DispatchInfo, type DynamicBuilder, ENCRYPTED_MEMO_SIZE, EncryptedMemo, type EncryptedNoteRecord, type EndowedEventData, type EthereumExecutedData, type EventData, type EventPhase, type EventRecord, type EvmAddressInfo, type EvmBlock, EvmClient, type EvmExecutedData, type EvmExitReason, EvmExplorer, type EvmLog, type EvmSigner, type EvmTransaction, type EvmTxRequest, type EvmTxSummary, type ExtrinsicDecoder, type ExtrinsicFailedData, type ExtrinsicSuccessData, type FeeClaimProofInputs, type FormatOptions, type IndexedBlock, type IndexedEvmTx, type IndexedExtrinsic, type IndexedSession, type IndexedValidator, type IndexerActivity, IndexerClient, type IndexerClientConfig, type IndexerStats, KNOWN_PRECOMPILES, type KnownPrecompileInfo, type ListingInfo, type MerkleRoot, type MerkleRootUpdatedData, type MerkleRootUpdatedEvent, type MerkleTreeInfo, type MetadataUpdatedEvent, NoteBuilder, type NoteDisclosure, type NoteInput, type NoteStatusUpdate, type NullifierChunkInfo, type NullifierManifest, type NullifierStatusResult, type NullifierTail, type NullifiersSpentEvent, type NullifiersSpentEventData, OrbinumClient, type OrbinumClientConfig, OrbinumClientProvider, PRECOMPILE_ADDR, type PaginatedResult, PrivacyKeyManager, type PrivacyMerkleProof, PrivacyModule, type PrivateChainLinkAddedEvent, type PrivateChainLinkRemovedEvent, type PrivateChainLinkRevealedEvent, type PrivateLink, type PrivateLinkDispatchExecutedEvent, type PrivateTransferArgs, type PrivateTransferInput, type PrivateTransferOutput, type PrivateTransferParams, type PrivateTransferProofInputs, type PrivateTransferTimestamp, type ProofVerificationFailedEvent, type ProofVerifiedEvent, type ProxyCallExecutedEvent, type PutAliasOnSaleArgs, type PutOnSaleParams, type RawBlock, type RawBlockHeader, type RawTransferInput, type RawTransferOutput, type RegisterAliasArgs, type RegisterAssetArgs, type RegisterPrivateLinkArgs, type RegisterVerificationKeyArgs, type RegisteredAsset, type RelayFeeEvent, type RelayFeeSummaryEntry, type Relayer, type RelayerInfo, RelayerStatusModule, type RemoveChainLinkArgs, type RemovePrivateLinkArgs, type RemoveSupportedChainArgs, type RemoveVerificationKeyArgs, type ReservedEventData, type ResolvedAlias, type ResolvedSpendVersion, type RevealPrivateLinkArgs, type RpcV2MerkleProof, type RpcV2NullifierStatus, type RpcV2PoolAssetBalance, type RpcV2PoolStats, SLIP0044_NAMESPACE, type ScanCommitment, type SetAccountMetadataArgs, type SetActiveVersionArgs, type SetMetadataParams, type ShieldArgs, type ShieldBatchArgs, type ShieldBatchItem, type ShieldBatchParams, type ShieldOperation, type ShieldParams, type ShieldedAddressEvent, type ShieldedCommitment, type ShieldedEvent, type ShieldedEventData, type ShieldedPoolCall, type ShieldedPoolEvent, ShieldedPoolModule, ShieldedPoolPrecompile, SignatureScheme, type SpentNullifier, type StatusChangeEvent, type StatusListener, type StealthScanHint, SubstrateClient, type SupportedChain, type SupportedChainAddedEvent, type SupportedChainRemovedEvent, type SystemHealth, type TokenInfo, type TokenTransfer, type TransferAliasArgs, type TransferEventData, type TransferInputNote, type TransferOutputNote, type TxResult, type UnsafeTxOptions, type Unshield, type UnshieldArgs, type UnshieldParams, type UnshieldProofInputs, type UnshieldedEvent, type UnshieldedEventData, type UnverifyAssetArgs, VaultLockedError, type VerificationKeyRegisteredEvent, type VerificationKeyRemovedEvent, type VerifyAssetArgs, type VerifyProofArgs, type VkEntry, type ZkNote, type ZkVerifierCall, type ZkVerifierCircuitVersionInfo, type ZkVerifierEvent, type ZkVerifierHistoricalVersion, ZkVerifierModule, type ZkVerifierVersionStats, type ZkVerifierVkHash, accountIdHexToSs58, addressToAccountIdHex, applyNoteStatus, bigintTo32Be, bigintTo32Le, bigintTo32LeArr, blindTag, buildDummyTransferInput, bytesToBigintLE, computeNullifier, computePathIndices, createNoteDisclosureKey, decodeNoteDisclosureKey, decodePrecompileCalldata, decryptJson, decryptNoteRecord, deriveMasterKeyBytes, deriveOwnerPk, deriveSpendingKeyFromSignature, deriveSpendingKeyMessage, deriveStealthOwnerPk, deriveStealthSk, deriveVaultBlindKey, deriveVaultKey, deriveViewingPublicKey, deriveViewingSecretKey, encryptJson, encryptNote, ensureHexPrefix, evmAddressToAccountId, evmToImplicitSubstrate, evmToMappedAccountHex, evmToSubstrate, formatBalance, formatORB, fromBase64, fromHex, generateFeeClaimProof, generateTransferProof, generateUnshieldProof, getPrecompileLabel, hexToBigint, hexToNumber, implicitSubstrateToEvm, isEvmAddress, isImplicitEvmAccount, isSs58, isSubstrateAddress, isUnifiedAddress, leHexToBigint, mapExtrinsicArgs, mapZkEventData, normalizeEvmAddress, noteBlindTag, randomBlinding, recoverOwnerPkPoint, selectNotes, shortHash, substrateSs58ToAccountIdHex, substrateToEvm, toBase64, toHex, toTxResult, truncateMiddle, tryDecryptNote, tryDecryptNoteVerbose, vaultReplacer, vaultReviver };
4175
+ export { type AccountListing, type AccountMappedData, type AccountMappedEvent, type AccountMappingCall, type AccountMappingEvent, AccountMappingModule, AccountMappingPrecompile, type AccountMetadata, type AccountUnmappedEvent, type ActiveVersionSetEvent, type AddChainLinkArgs, type AddChainLinkParams, type AddSupportedChainArgs, type AliasFullIdentity, type AliasInfo, type AliasListedForSaleEvent, type AliasOnSaleData, type AliasRegisteredData, type AliasRegisteredEvent, type AliasReleasedEvent, type AliasSaleCancelledEvent, type AliasSoldData, type AliasSoldEvent, type AliasTransferredData, type AliasTransferredEvent, type AssetRegisteredEvent, type AssetUnverifiedEvent, type AssetVerifiedEvent, BABYJUB_SUBORDER, BN254_R, type BatchRegisterVerificationKeysArgs, type BatchVerificationKeysRegisteredEvent, type BlockInfo, type BuyAliasArgs, type Bytes32, CURRENT_CIRCUIT_VERSION, type ChainInfo, type ChainLink, type ChainLinkAddedEvent, type ChainLinkRemovedEvent, CircuitId, CircuitId as CircuitIdType, CircuitVersionResolver, type ClaimShieldedFeesParams, type ClientProviderConfig, type CommitmentsInsertedEvent, type CommitmentsInsertedEventData, type ConnectionStatus, CryptoPrecompiles, type DecodedAddChainLinkArgs, type DecodedBatchArgs, type DecodedDispatchAsPrivateLinkArgs, type DecodedEthereumTransactArgs, type DecodedEvmCallArgs, type DecodedPrecompile, type DecodedPrivateTransferArgs, type DecodedPutAliasForSaleArgs, type DecodedRegisterAliasArgs, type DecodedRemarkArgs, type DecodedRevealPrivateLinkArgs, type DecodedSetAccountMetadataArgs, type DecodedShieldArgs, type DecodedShieldBatchArgs, type DecodedShieldBatchOperation, type DecodedSudoArgs, type DecodedTransferAllArgs, type DecodedTransferArgs, type DecodedTransferKeepAliveArgs, type DecodedUnshieldArgs, type DecryptedMemo, type DispatchAsLinkedAccountArgs, type DispatchAsLinkedParams, type DispatchAsPrivateLinkArgs, type DispatchError, type DispatchInfo, type DynamicBuilder, ENCRYPTED_MEMO_SIZE, EncryptedMemo, type EncryptedNoteRecord, type EndowedEventData, type EthereumExecutedData, type EventData, type EventPhase, type EventRecord, type EvmAddressInfo, type EvmBlock, EvmClient, type EvmExecutedData, type EvmExitReason, EvmExplorer, type EvmLog, type EvmSigner, type EvmTransaction, type EvmTxRequest, type EvmTxSummary, type ExtrinsicDecoder, type ExtrinsicFailedData, type ExtrinsicSuccessData, type FeeClaimProofInputs, type FormatOptions, KNOWN_PRECOMPILES, type KnownPrecompileInfo, type ListingInfo, type MerkleRootUpdatedData, type MerkleRootUpdatedEvent, type MerkleTreeInfo, type MetadataUpdatedEvent, NoteBuilder, type NoteDisclosure, type NoteInput, type NoteStatusUpdate, type NullifiersSpentEvent, type NullifiersSpentEventData, OrbinumClient, type OrbinumClientConfig, OrbinumClientProvider, PRECOMPILE_ADDR, PrivacyKeyManager, type PrivacyMerkleProof, PrivacyModule, type PrivateChainLinkAddedEvent, type PrivateChainLinkRemovedEvent, type PrivateChainLinkRevealedEvent, type PrivateLink, type PrivateLinkDispatchExecutedEvent, type PrivateTransferArgs, type PrivateTransferInput, type PrivateTransferOutput, type PrivateTransferParams, type PrivateTransferProofInputs, type ProofVerificationFailedEvent, type ProofVerifiedEvent, type ProxyCallExecutedEvent, type PutAliasOnSaleArgs, type PutOnSaleParams, type RawBlock, type RawBlockHeader, type RawTransferInput, type RawTransferOutput, type RegisterAliasArgs, type RegisterAssetArgs, type RegisterPrivateLinkArgs, type RegisterVerificationKeyArgs, type RelayerInfo, RelayerStatusModule, type RemoveChainLinkArgs, type RemovePrivateLinkArgs, type RemoveSupportedChainArgs, type RemoveVerificationKeyArgs, type ReservedEventData, type ResolvedAlias, type ResolvedSpendVersion, type RevealPrivateLinkArgs, type RpcV2MerkleProof, type RpcV2NullifierStatus, type RpcV2PoolAssetBalance, type RpcV2PoolStats, SLIP0044_NAMESPACE, type ScanCommitment, type SetAccountMetadataArgs, type SetActiveVersionArgs, type SetMetadataParams, type ShieldArgs, type ShieldBatchArgs, type ShieldBatchItem, type ShieldBatchParams, type ShieldOperation, type ShieldParams, type ShieldedEvent, type ShieldedEventData, type ShieldedPoolCall, type ShieldedPoolEvent, ShieldedPoolModule, ShieldedPoolPrecompile, SignatureScheme, type StatusChangeEvent, type StatusListener, SubstrateClient, type SupportedChain, type SupportedChainAddedEvent, type SupportedChainRemovedEvent, type SystemHealth, type TokenInfo, type TokenTransfer, type TransferAliasArgs, type TransferEventData, type TransferInputNote, type TransferOutputNote, type TxResult, type UnsafeTxOptions, type UnshieldArgs, type UnshieldParams, type UnshieldProofInputs, type UnshieldedEvent, type UnshieldedEventData, type UnverifyAssetArgs, VaultLockedError, type VerificationKeyRegisteredEvent, type VerificationKeyRemovedEvent, type VerifyAssetArgs, type VerifyProofArgs, type VkEntry, type ZkNote, type ZkVerifierCall, type ZkVerifierCircuitVersionInfo, type ZkVerifierEvent, type ZkVerifierHistoricalVersion, ZkVerifierModule, type ZkVerifierVersionStats, type ZkVerifierVkHash, accountIdHexToSs58, addressToAccountIdHex, applyNoteStatus, bigintTo32Be, bigintTo32Le, bigintTo32LeArr, blindTag, buildDummyTransferInput, bytesToBigintLE, computeNullifier, computePathIndices, createNoteDisclosureKey, decodeNoteDisclosureKey, decodePrecompileCalldata, decryptJson, decryptNoteRecord, deriveMasterKeyBytes, deriveOwnerPk, deriveSpendingKeyFromSignature, deriveSpendingKeyMessage, deriveStealthOwnerPk, deriveStealthSk, deriveVaultBlindKey, deriveVaultKey, deriveViewingPublicKey, deriveViewingSecretKey, encryptJson, encryptNote, ensureHexPrefix, evmAddressToAccountId, evmToImplicitSubstrate, evmToMappedAccountHex, evmToSubstrate, formatBalance, formatORB, fromBase64, fromHex, generateFeeClaimProof, generateTransferProof, generateUnshieldProof, getPrecompileLabel, hexToBigint, hexToNumber, implicitSubstrateToEvm, isEvmAddress, isImplicitEvmAccount, isSs58, isSubstrateAddress, isUnifiedAddress, leHexToBigint, mapExtrinsicArgs, mapZkEventData, normalizeEvmAddress, noteBlindTag, randomBlinding, recoverOwnerPkPoint, selectNotes, shortHash, substrateSs58ToAccountIdHex, substrateToEvm, toBase64, toHex, toTxResult, truncateMiddle, tryDecryptNote, tryDecryptNoteVerbose, vaultReplacer, vaultReviver };