New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@bitteprotocol/agent-sdk

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitteprotocol/agent-sdk

Agent SDK for Bitte Protocol

  • 0.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-78.38%
Maintainers
0
Weekly downloads
 
Created
Source

Bitte Protocol agent-sdk

This is a TypeScript SDK for building agents on the Bitte Protocol.

Usage

Define and validate Agent input parameters by example:

Suppose we want to build an agent that transfers an amount of a token to a recipient (i.e. an ERC20 transfer).

// Declare Route Input
interface Input {
  chainId: number;
  amount: number;
  token: string;
  recipient: Address;
}

const parsers: FieldParser<Input> = {
  chainId: numberField,
  // Note that this is a float (i.e. token units)
  amount: floatField,
  token: addressOrSymbolField,
  recipient: addressField,
};

Then the route could be implemented as in examples/erc20transfer.ts - which utilizes other utils from this package.

Development

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.1.33. Bun is a fast all-in-one JavaScript runtime.

Keywords

FAQs

Package last updated on 20 Dec 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc