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

radix-meme-gateway

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radix-meme-gateway

Utility to fetch relevant data for radix.meme app directly from the radix ledger

  • 0.0.28
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-86.36%
Maintainers
0
Weekly downloads
 
Created
Source

Radix Meme Gateway

This package provides a utility to fetch data relevant to the radix.meme app directly from the radix ledger by using public gateway APIs. The APIs are called using axios (not with the GatewayAPI SDK).

Usage

Instal

npm install radix-meme-gateway

Initialize Service

import { 
  createRadixMemeGateway,
  Network,
  radixMemeAddressbook
} from "radix-meme-gateway";

// show all stored ledger addresses
console.log(radixMemeAddressbook);

// initialize service
const radixMemeGateway = createRadixMemeGateway(
  Network.STOKENET,
  radixMemeAddressbook.STOKENET.latest.componentAddress
);

// Show config of an instance
console.log(radixMemeGateway.getConfig());

API endpoints

// Fetch all tokens
const tokens = await radixMemeGateway.getAllTokens();

// Fetch token
const token = await radixMemeGateway.getToken(
  "component_tdx_2_1cqcfndu8u4658fw68lu272sm0mwf38ms5p9dchpskn9rxwptpu05k4"
);

// Fetch the last 100 TXs on the radix ledger and filter out all radixMemeEvents
const events = await radixMemeGateway.getLatestRadixMemeTransactions();

REPL test environment

To test the gateway in a JS REPL, you can simply run:

npm run repl

You should see an interactive javascript REPL environment, where you can test the functions in realtime.

Bildschirmfoto 2024-10-15 um 15 43 58

Keywords

FAQs

Package last updated on 14 Jan 2025

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