Oracle Subscription (Stokenet)
This page allows you to manage your Oracle subscription on the Stokenet test network. To use the Morpher Oracle, you need to purchase a subscription NFT.
Oracle Subscription
Connected to Stokenet
The Morpher Oracle 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 Oracle subscriptions yet
Oracle Subscription
Secure, real-time price data for your DApps
- 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 an Oracle Subscription?
An Oracle subscription is represented by a non-fungible token (NFT) that:
- Grants access to the Oracle’s signed price data
- Stores your public key for authentication
- Tracks your subscription expiration date
- Provides a secure way to verify your requests
How to Use Your Subscription
After purchasing a subscription, follow these steps to start using the Oracle:
-
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);
-
Enroll Your Public Key:
- Enter your public key in the subscription manager
- This key will be used to authenticate your requests to the Oracle
-
Set Up Your Backend:
- Store your private key securely in your backend
- Use it to sign requests to the Oracle API
- See the Integration Guide for details
-
Start Making Oracle 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 Oracle, see the Integration Guide.