Catalog npm
PACKAGE EXPLORERView in registry

@0xarshia/policyvault

npm

Agent SDK — spend USDC under PolicyVault policy on Base

agentbaseerc-8021policyvaultusdcx402
Versions collected1
Direct dependencies3From release 0.1.1
Last observed20 Oct, 22:40 UTC

README

Current package documentation

@arshiaxbt/policyvault

Spend USDC from a PolicyVault on Base under owner-set limits.

Private keys stay in your environment. The website never asks for them.

npm i @arshiaxbt/policyvault
import { createPolicyAgent } from '@arshiaxbt/policyvault';

const agent = createPolicyAgent({
  vaultId: 0n,
  agentPrivateKey: process.env.AGENT_PRIVATE_KEY as `0x${string}`,
});

await agent.spend('0xMerchant…', 0.05, 'exa-search');

Contract (Base): 0xA99bfE8D56A42C4060568C681804D08432Ab2bD5
Builder Code: bc_aby8yf1k

Publish (first time)

The scope must match your npm username exactly (npm whoami).

cd sdk
npm whoami
# if it prints something other than arshiaxbt, edit package.json "name" to @THAT_NAME/policyvault

npm publish --access public --otp=YOUR_2FA_CODE

If you still get 404, your token cannot create packages — create a Granular Access Token with:

  • Read and write
  • Allow create new packages / unrestricted packages
  • Bypass 2FA for automation (optional if you pass --otp)

Then:

npm config set //registry.npmjs.org/:_authToken=npm_YOUR_TOKEN
npm publish --access public --otp=YOUR_2FA_CODE

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.1Registry latest12 Aug 20263

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
arshiaxbt/policyvault

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:40 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:d69732776d828206f3ada4695c8ca20dd846bbc65442215059c9d78785dd343d