The DID of the keypair associated with this client.
The keypair used by this client for signing.
The array of underlying node clients for the cluster.
Creates a new collection on all nodes.
Creates a new index on a collection.
Creates a new saved query on all nodes.
Creates one or more standard data documents in a collection.
Deletes the builder and associated resources from all nodes.
Deletes a collection its data from all nodes.
Deletes data from a collection based on a filter.
Deletes a saved query from all nodes.
Drops an index from a collection.
Finds data in a collection, revealing concealed values if a key is configured.
Deletes all data from a collection.
Retrieves a list of all saved queries.
Retrieves a single saved query by its id.
Retrieves information about each node in the cluster.
Reads the metadata for a single collection.
Reads a list of all collections from the cluster.
Reads the builder's profile from the cluster.
Reads the results of a completed query run from each node.
Fetches a new root NUC token from the configured nilAuth server.
Registers the builder with all nodes in the cluster.
Starts a query execution job.
Checks subscription status by the builder's Did.
Reads the last N documents from a collection, revealing concealed values if a key is configured.
Updates the builder's profile on all nodes.
Updates documents in a collection, concealing the update payload if a key is configured.
Static
fromCreates and initializes a new SecretVaultBuilderClient instance.
Configuration options for the client
Optional
blindfold?: BlindfoldFactoryConfigOptional blindfold configuration for concealed data
The builder's keypair for authentication
Nillion service URLs configuration from https://docs.nillion.com/build/network-config
URL of the nilAuth authentication service
URL of the nilChain URL
URL Array of nilDB node endpoints
A promise that resolves to a configured SecretVaultBuilderClient
const client = await SecretVaultBuilderClient.from({
keypair: myKeypair,
urls: {
chain: "http://rpc.testnet.nilchain-rpc-proxy.nilogy.xyz",
auth: "https://nilauth.sandbox.app-cluster.sandbox.nilogy.xyz",
dbs: ["https://nildb-stg-n1.nillion.network", "https://nildb-stg-n2.nillion.network", "https://nildb-stg-n3.nillion.network"]
},
blindfold: {
// optional blindfold config
}
});
Client for performing builder operations on SecretVaults.
This client handles all builder-specific operations including registration, collection management, data operations, and query execution. It supports automatic handling of concealed data when configured with blindfold.
Example