Skip to Content
DocumentationRadixStokenetDataFeed Subscription

DataFeed Subscription (Stokenet)

This page allows you to manage your DataFeed subscription on the Stokenet test network. To use the Morpher DataFeed, you need to purchase a subscription NFT.

You are connected to the Stokenet test network

DataFeed Subscription

Connected to Stokenet

The Morpher DataFeed provides real-time, cryptographically signed price data for your DApps. Purchase or manage your subscription below.

No Active Subscriptions

You don't have any active DataFeed subscriptions yet

DataFeed Subscription

Secure, real-time price data for your DApps

SALE
$999$1/month
  • Real-time price data from multiple exchanges
  • Cryptographically signed data for on-chain verification
  • Access to all supported markets and assets
  • 30-day subscription with unlimited API calls

* Introductory pricing for early adopters. Regular price will be $999/month.

What is a DataFeed Subscription?

A DataFeed subscription is represented by a non-fungible token (NFT) that:

  1. Grants access to the DataFeed’s signed price data
  2. Stores your public key for authentication
  3. Tracks your subscription expiration date
  4. Provides a secure way to verify your requests

How to Use Your Subscription

After purchasing a subscription, follow these steps to start using the DataFeed:

  1. Generate a BLS12-381 Key Pair:

    import * as ed from '@noble/ed25519'; import { bls12_381 as bls } from '@noble/curves/bls12-381'; // Generate a secure random private key const privateKey = ed.utils.randomPrivateKey(); const hexPrivateKey = ed.etc.bytesToHex(privateKey); // Derive the public key function getPublicKey(privateKey) { return Array.from( bls.getPublicKey(privateKey), byte => byte.toString(16).padStart(2, '0') ).join(''); } const publicKey = getPublicKey(privateKey);
  2. Enroll Your Public Key:

    • Enter your public key in the subscription manager
    • This key will be used to authenticate your requests to the DataFeed
  3. Set Up Your Backend:

    • Store your private key securely in your backend
    • Use it to sign requests to the DataFeed API
    • See the Integration Guide for details
  4. Start Making DataFeed Requests:

    • Your backend can now request signed price data
    • Include this data in transaction manifests
    • Smart contracts can verify the data on-chain

Technical Details

The subscription NFT contains the following data:

  • Expiration Time: When your subscription expires
  • Authorized Public Key: Your BLS12-381 public key
  • Current Nonce: Tracks the number of requests made
  • Maximum Nonce: The maximum number of requests allowed

For more technical details on how to integrate with the DataFeed, see the Integration Guide.