Handshake is a Universal SDK for AI Agents to Interact Securely with Web3. It provides a modular and extensible SDK that simplifies key management for AI agents, enabling them to securely interact with blockchain ecosystems. By abstracting the complexities of cryptographic operations, Handshake allows AI frameworks to seamlessly integrate Web3 functionalities without compromising security or flexibility.
Handshake has been integrated within ElizaOS, the integration can be found here.
- Node.js (latest stable version)
- npm or yarn
- TypeScript
Install Handshake via npm:
npm install handshake-ts
Or using yarn:
yarn add handshake-ts
Import and initialize Handshake in your project:
import { Handshake } from 'handshake-ts';
const handshake = new Handshake()
const savingsWallet = handshake.walletManager.createNewWallet("saving wallet 1")
const tradingWallet = handshake.walletManager.createNewWallet("trading wallet 1")
await handshake.assetsManager.transferToken(savingsWallet, 0.01, "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", "arb:0x123..")
If you don't specify anything, the default KMS is Keyring.
Contributions are welcome! Please open an issue or submit a pull request with improvements.
This project is licensed under the MIT License.