@moneyos/core
v0.1.0
Published
Core runtime interfaces, types, and registries for MoneyOS
Downloads
23
Readme
@moneyos/core
Bare-metal runtime contracts, shared types, and registries for MoneyOS.
Use this package when you are building tools, providers, or custom runtimes.
If you want the default SDK and CLI, install moneyos.
Install
npm install @moneyos/core viemWhat it includes
- runtime contracts such as
ReadClient,ExecutionClient,ActionContext, andMoneyOSRuntime - shared value types such as
Balance,SendResult, andChain - built-in chain and token registries
- shared keystore interfaces
Example
import type { ActionContext, MoneyOSAction } from "@moneyos/core";
type PingInput = { message: string };
type PingResult = { echoed: string };
export const pingAction: MoneyOSAction<PingInput, PingResult> = {
name: "ping",
description: "Example action built on the MoneyOS runtime seam",
async run(input: PingInput, _ctx: ActionContext): Promise<PingResult> {
return { echoed: input.message };
},
};Related packages
moneyosfor the default SDK and CLI@moneyos/swapfor the canonical swap package
