Skip to content

Instantly share code, notes, and snippets.

@AustinWoetzel
AustinWoetzel / secretJS-keplr-staking.js
Last active Feb 16, 2022
SecretJS + Keplr Staking Function
View secretJS-keplr-staking.js
//Built using VueJS
const {
SigningCosmWasmClient,
// Secp256k1Pen,
// makeSignBytes,
} = require("secretjs");
if (!window.getOfflineSigner || !window.keplr) {
alert(
@AustinWoetzel
AustinWoetzel / aws-proxy.js
Last active Jun 2, 2021
AWS Lambda Function for CORS proxy
View aws-proxy.js
const axios = require('axios');
exports.handler = async (event) => {
const route = event.path
const request = {
url: 'https://secret-2--lcd--full.datahub.figment.io/apikey/xxxxxxxxxxxxxxxxxxxxxxxx' + route,
method: event.httpMethod,
data: event.body,
params: event.params