✨
BLINKZ
  • Blinkz
    • Our Mission
    • Try It Now
    • Table of Contents
  • SDK
    • Blinkz Actions SDK
      • Introduction
      • Quick Start
      • Getting Started
      • Core Concepts
      • SDK Reference
      • Examples
      • Best Practices
      • How to Contribute
      • API Reference
      • Resources
      • FAQ
  • Extension
    • Blinkz Actions Extension
      • Overview
      • Key Components
      • Key Features
      • Usage
      • Development Status
      • Additional Resources
  • Generator
    • Blinkz Actions Generator
      • Overview
      • Key Components
      • Using The Actions Generator
      • Deployment
      • Extending The Generator
      • Additional Resources
  • Conclusion
    • Conclusion
Powered by GitBook
On this page
  1. SDK
  2. Blinkz Actions SDK

API Reference

1.9.1 Core Types

Action

interface Action {
    title: string;
    icon: string;
    description: string;
    label: string;
    links?: LinkedAction[];
    error?: ActionError;
}

LinkedAction

type LinkedAction = LinkAction | ReferenceAction | TxAction | TxMultiAction | TransferAction;

1.9.2 Functions

validateAction

function validateAction(action: Action): { valid: boolean; errors: string[] | null }

Validates an Action object against the Actions specification.

deployToIpfs

function deployToIpfs(action: Action, pinataCredentials: PinataCredentials): Promise<string | Error>

Deploys an Action to IPFS using Pinata.

1.9.3 Constants

The SDK provides the following constants:

chainId

An object mapping network names to their chain IDs.

globalInputs

Constant values for global inputs.

erc20FunctionSignatures

Mapping of ERC20 function names to their signatures.

erc721FunctionSignatures

Mapping of ERC721 function names to their signatures.

PreviousHow to ContributeNextResources

Last updated 6 months ago