Skip to content

Instantly share code, notes, and snippets.

View taylorjdawson's full-sized avatar
🤘

Taylor Dawson taylorjdawson

🤘
  • Portland
  • 18:50 (UTC -07:00)
  • X @tjd_im
View GitHub Profile
Verifying my Blockstack ID is secured with the address 1BVgUd7QYeZjcteHLSzCNuURuvt6A9taXM https://explorer.blockstack.org/address/1BVgUd7QYeZjcteHLSzCNuURuvt6A9taXM
Verifying my Blockstack ID is secured with the address 1BVgUd7QYeZjcteHLSzCNuURuvt6A9taXM https://explorer.blockstack.org/address/1BVgUd7QYeZjcteHLSzCNuURuvt6A9taXM
@taylorjdawson
taylorjdawson / index.html
Created October 16, 2018 15:02
Casual Convo
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1">
<actor t="translate(71,19) rotate(-2)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|0,81|-6,79|13,100">
export ENS_ADDRESS=0x6090A6e47849629b7245Dfa1Ca21D94cd15878Ef
// Topic hashes
export NEW_BID_EVENT=0xb556ff269c1b6714f432c36431e2041d28436a73b6c3f19c021827bbdc6bfc29
export BID_REVEAL_EVENT=0x7b6c4b278d165a6b33958f8ea5dfb00c8c9d4d0acf1985bef5d10786898bc3e7
// Get total new bid events: 419347
curl \
-X GET \
-H "accept: application/json" \
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css">
<script src="http://cmx.io/v/0.1/cmx.js" charset="utf-8"></script>
<style>.cmx-user-scene4 .cmx-text-border .cmx-path {stroke: orange}</style>
<body>
<div style="max-width:900px; -webkit-transform:rotate(0deg)">
<scene id="scene1">
<label t="translate(0,346)">
@taylorjdawson
taylorjdawson / address-metadata.js
Last active April 23, 2019 21:27
Amberdata API Example - Address Metadata
axios({
method:'get',
url: 'https://web3api.io/api/v1/addresses/ETHEREUM_ADDRESS_HERE/metadata',
headers: { 'x-api-key': 'YOUR_API_KEY_HERE' }
}).then(res => {
// response data example:
// {
// "firstSeen": "2017-11-23T05:41:19.000Z",
// "type": "contract",
// "contractTypes": ["ERC721"],
@taylorjdawson
taylorjdawson / address-logs.js
Created April 23, 2019 21:27
Amberdata API Example - Address Logs
axios({
method:'get',
url: 'https://web3api.io/api/v1/addresses/ETHEREUM_ADDRESS_HERE/logs',
headers: { 'x-api-key': 'YOUR_API_KEY_HERE' }
}).then(res => {
// response data example:
{
"totalRecords": 6448870,
"records": [
{
@taylorjdawson
taylorjdawson / address-activity.js
Created April 23, 2019 21:59
Amberdata API Example - Transactions, Logs, Functions
let config = {headers: {"x-api-key": "YOUR_API_KEY_HERE"}}
let getAddressTransactions = axios.get('https://web3api.io/api/v1/addresses/ETHEREUM_ADDRESS_HERE/transactions', config)
let getAddressLogs = axios.get('https://web3api.io/api/v1/addresses/ETHEREUM_ADDRESS_HERE/logs', config)
let getAddressFunctions = axios.get('https://web3api.io/api/v1/addresses/ETHEREUM_ADDRESS_HERE/functions', config)
let responses = await Promise.all([getAddressTransactions(), getAddressLogs(), getAddressFunctions()]
@taylorjdawson
taylorjdawson / AmberdataChainlink.sol
Created May 20, 2019 19:48
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
@taylorjdawson
taylorjdawson / AmberdataChainlink.sol
Created May 20, 2019 19:48
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=