@relayerfi/action-kit) is the TypeScript library for building blockchain action metadata. It defines the action schema, validates metadata before submission, and provides template helpers for common parameter types. Use it to create the metadata object that powers a Relayer Trigger.
The Relayer SDK metadata layer is mode-agnostic. Whether your integration uses Passkey Signing (passkey) or Metadata Mode (bring your own wallet), the metadata schema and validation are identical. The SDK defines what action to perform — the integration mode determines how signing happens.
Install
viem is a required peer dependency.Core Concepts
- Blockchain action metadata is a typed
Metadataobject withurl,icon,title,description, and anactionsarray. - Each action in the array is one of:
transfer,blockchain,http,dynamic, or a nestedflow. - Call
createMetadata(metadata)to validate and process the metadata. It throws if the input is invalid. - Call
validateMetadata(metadata)for non-throwing validation that returns a detailed result object with anerrorsarray.
Action Types
Quick Start — Transfer Action
Quick Start — Blockchain Action
Validation
UsevalidateMetadata for non-throwing validation with detailed error reporting:
Parameter Templates
PARAM_TEMPLATES provides predefined parameter shapes (email, token select, etc.) so you do not have to hand-craft common parameter structures:
Supported Chains
API Reference
Debug Your Trigger
Use the Relayer Debugger to test and preview blockchain action metadata before embedding. Paste your metadata JSON or URL and see the rendered Trigger in real time.Next Steps
Integration Guide
Embed the Trigger component in your app.
Action Kit
Register and publish blockchain actions via the Relayer API.