Skip to content

@armada/sdk / index / ArmadaSdkConfig

Interface: ArmadaSdkConfig ​

Defined in: src/index.ts:114

Properties ​

pool ​

readonly pool: PoolConfig

Defined in: src/index.ts:115


rpc ​

readonly rpc: RpcConfig

Defined in: src/index.ts:116


storage ​

readonly storage: StorageAdapter

Defined in: src/index.ts:117


prover ​

readonly prover: ProverAdapter

Defined in: src/index.ts:118


artifacts ​

readonly artifacts: ArtifactSource

Defined in: src/index.ts:119


telemetry? ​

readonly optional telemetry?: TelemetrySink

Defined in: src/index.ts:120


indexer? ​

readonly optional indexer?: object

Defined in: src/index.ts:126

Optional native quick-sync indexer (e.g. the relayer-v2 watcher) serving the /v2/quick-sync wire contract. When set it is the primary event source, with RPC getLogs covering the tail and verifying results against the on-chain root. Omit to sync purely from RPC.

url ​

readonly url: string

fetchFn? ​

readonly optional fetchFn?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Inject a custom fetch (proxy, instrumentation, tests). Defaults to the global fetch.

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

RequestInfo | URL

init? ​

RequestInit

Returns ​

Promise<Response>

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

string | Request | URL

init? ​

RequestInit

Returns ​

Promise<Response>


dangerouslyAllowPlaintextStorage? ​

readonly optional dangerouslyAllowPlaintextStorage?: boolean

Defined in: src/index.ts:138

Escape hatch that disables the SDK's at-rest encryption (SPEC §4.3). Decrypted note data, TXO records, balances, and history are AEAD-encrypted at rest by default under a per-wallet key the SDK derives itself — the caller's storage adapter is auto-wrapped, so plaintext never reaches disk without setting this flag. Set it ONLY for ephemeral/test stores where at-rest secrecy is a non-goal; in production it defeats WS7.2 Option B.