Skip to content

Instantly share code, notes, and snippets.

View taylorjdawson's full-sized avatar
🤘

Taylor Dawson taylorjdawson

🤘
  • Portland
  • 23:30 (UTC -07:00)
  • X @tjd_im
View GitHub Profile
@taylorjdawson
taylorjdawson / AmberdataChainlink.sol
Created May 20, 2019 22:27
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 / supported_methods.md
Last active August 29, 2019 21:50
simple supported methods
Feature Web3.js Ethers.js Web3data.js
getHashrate ×
getGasPrice
getAccounts ×
getBlockNumber
getBalance
getStorageAt
getCode
getBlock
require('dotenv').config(); // Load your environment variables with 'dotenv'
const EthereumTx = require('ethereumjs-tx').Transaction;
const { privateToAddress } = require('ethereumjs-util');
const Web3Data = require("web3data-js");
const w3d = new Web3Data(process.env.API_KEY);
const TO_ADDRESS = 'YOUR_ADDRESS';
const API_KEY = 'YOUR_API_KEY'; // Need one? see amberdata.io/onboarding
const PRIV_KEY = Buffer.from('YOUR_PRIVATE_KEY', 'hex');
// We need a function that will evaluate the order that a set of tasks will be completed in.
// When idle, the CPU will take the next task that has been queued with the lowest time to complete.
// Tasks are queued at the moment in time given by queued_at.
// Tasks will keep the CPU busy for execution_duration units of time. queued_at and execution_duration are not in a particular unit of time,
// but you may consider them in seconds, milliseconds, or whatever makes sense to you.
// The CPU can only execute 1 task at a time.
// You can use anything from Rust's std library.

Turnkey SDK Examples Overview

This document provides a comprehensive overview of all examples in the Turnkey SDK repository, detailing what features each example showcases and their Turnkey package dependencies.

Dependencies Table

Example sdk-server http api-key-stamper sdk-react ethers viem solana webauthn-stamper sdk-browser crypto encoding sdk-types wallet-stamper iframe-stamper cosmjs eip-1193-provider indexed-db-stamper react-wallet-kit sdk-js Total
with-ethers 4
with-viem 4