SDKs

JavaScript / Node.js SDK

Official SDK for JavaScript and Node.js applications.

Coming Soon

The official PYRE JavaScript SDK is under development. In the meantime, you can use our REST APIs directly.

Using REST APIs Directly

While the SDK is in development, you can integrate PYRE APIs directly using fetch or axios:

JavaScript / fetch
// Example: Get crypto price
const response = await fetch('https://pyrefm.xyz/api/data/crypto?symbol=SOL', {
  headers: {
    'Content-Type': 'application/json',
    'x-wallet-address': 'YOUR_WALLET_ADDRESS',
    'x-payment-proof': 'BASE64_PAYMENT_PROOF',
  },
});

const data = await response.json();
console.log(data);
Node.js / axios
import axios from 'axios';

// Example: AI Chat
const response = await axios.post('https://pyrefm.xyz/api/ai/chat', 
  { message: 'Hello!' },
  {
    headers: {
      'x-wallet-address': 'YOUR_WALLET_ADDRESS',
      'x-payment-proof': 'BASE64_PAYMENT_PROOF',
    },
  }
);

console.log(response.data);

Get Notified

Follow us on Twitter @pyrefm to be notified when the SDK is released.