Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@agoric/client-utils

Package Overview
Dependencies
Maintainers
10
Versions
723
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agoric/client-utils

Utilities for building Agoric clients

latest
agoric-upgrade-22
npmnpm
Version
0.2.0-u22.2
Version published
Weekly downloads
5.7K
5.51%
Maintainers
10
Weekly downloads
 
Created
Source

Client Utils

Utilities for building clients of an Agoric chain

Overview

The Agoric chain takes mutations through signed messages and reveals state updates through vstorage. This package abstracts the calls to RPC nodes into a CQRS interface. The commands are made mostly through an on-chain Smart Wallet and the queries through vstorage.

Design

This package will be used in several kinds of clients:

  • CLI (such as the agoric command)
  • GUI (such as dapps)
  • Tests (such as a3p-integration tests)

As such the modules cannot assume they're running in Node. There are some ambient authorities in common in the above environments (e.g. setTimeout) but a further constraint is that these modules will not export ambient authority. Instead they will provide interfaces that are ergonomic for creating empowered objects in the client context.

Layering

  • HTTP (fetch)
  • RPC (fetch + cosmic-proto)
  • vstorage - layer at which protobuf is involved (vstorage.js)
  • marshalling (vstorage-kit.js)
  • agoricNames / board (smart-wallet-kit.js)

cli

agoric package has a command line UI (CLI) for working with an Agoric chain. It's in this repository at packages/agoric-cli.

rpc

@agoric/rpc is a small library that currently just has utilities for watching vstorage. This package avoids depending on @agoric/rpc for now because it:

  • is in a separate repository (ui-kit) so not part of agoric-sdk CI
  • depends on axios and vite which are unnecessary constraints

Some of the functionality in this package could make sense in that package, but for now it will be ignored.

cosmic-proto

@agoric/cosmic-proto is a package that contains the protobuf stubs for the Agoric cosmos-sdk module. At various points it has also held generated RPC clients. Because that package is imported into contracts we've kept those out. They may end up in @agoric/rpc eventually.

* / clientSupport

The clientSupport.js module of several packages. Some packages export this module with certain helpers that this package may abstract.

FAQs

Package last updated on 09 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts