Skip to content

Instantly share code, notes, and snippets.

View javiertc's full-sized avatar

Javier Toledo Cordova javiertc

  • Miami
  • 02:10 (UTC -05:00)
View GitHub Profile
const axios = require('axios').default;
const HOST = 'cardano-testnet.tangocrypto.com';
//prod testnet
const APP_ID = 'XXXXXXXXX';
const API_KEY = 'XXXXXXXXX';
axios.defaults.baseURL = `https://${HOST}/${APP_ID}/v1`;
axios.defaults.headers.common['x-api-key'] = API_KEY;
@javiertc
javiertc / onchain.js
Last active July 15, 2022 18:22
onchain.js
const axios = require('axios').default;
const HOST = 'cardano-testnet.tangocrypto.com';
const APP_ID = 'XXXXX';
const API_KEY = 'XXXXX';
axios.defaults.baseURL = `https://${HOST}/${APP_ID}/v1`;
axios.defaults.headers.common['x-api-key'] = API_KEY;
axios.defaults.headers.post['Content-Type'] = 'application/json';
const axios = require('axios').default;
const TC_HOST = 'cardano-testnet-staging.tangocrypto.com';
const TC_APP_ID = 'xxxxxxxxx';
const TC_API_KEY = 'xxxxxxxxx';
const NMKR_auth = 'xxxxxxxxxx';
const NMKR_host = 'studio-api.testnet.nmkr.io';
const NMKR_collection_id = '5d0c151f-03d7-4320-8252-096a3642c080'