Skip to content

Instantly share code, notes, and snippets.

@mike-luabase
mike-luabase / luabase_api.ipynb
Last active August 29, 2022 13:27
q.luabase.com testing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const API_URL = 'https://app.posthog.com/';
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET,HEAD,POST,OPTIONS',
'Access-Control-Max-Age': '86400',
};
const ORIGIN = new URL(API_URL).origin
var supdb = openDatabase('mike@luabase.com', '262', 'blah', 2 * 1024 * 1024);
function successHandler(tx, results) {
var arr = []
console.log('found: ', results.rows.length)
for (let i = 0; i < results.rows.length; i++) {
let row = results.rows.item([i]);
arr.push(row)
}
console.log(arr)
import pandas as pd
import requests
url = "https://api.luabase.com/run"
address = "0x283af0b28c62c092c9727f1ee09c02ca627eb7f5"
payload = {
"uuid": "b84f9d2ca5204449a42e96eaca30954b",
"parameters": {
"address": {
"value": address,