Skip to content

Instantly share code, notes, and snippets.

kyranjamie /
Created May 4, 2022
How to install Ledger Nano S test app

Guide to installing a developer preview Ledger Stacks app build

To test out the developer preview build of the Hiro Wallet supporting Ledger, you'll need the latest version of the Stacks app on Ledger.

The test app is only supported for Ledger Nano S & Nano S Plus devices.

⚠️ This app is for test purposes only. We recommend using a device that is solely used for development, and does not contain any real funds.

View gist:4ec0c7d85fe80d59b370488bd8cd1fc6
Product: a crypto portfolio value tracker
During this conversation, we’ll talk about building a cryptocurrency portfolio tracker. Users can track the value of their portfolio across various cryptocurrencies.
- Track token (cryptocurrency) prices
- Track the value of your own token holdings
- Add historical transactions (i.e. when the user bought or sold a token)
kyranjamie / openapi.yaml
Created Oct 20, 2021
Flattened OpenAPI spec (sans broken entries)
View openapi.yaml
This file has been truncated, but you can view the full file.
openapi: 3.0.2
- url: ''
description: Mainnet
- url: ''
description: Testnet
- url: 'http://localhost:3999'
description: Local
kyranjamie / gist:b54d2b78894ffbc7cc2816f73afd983f
Last active Oct 20, 2021
Restish with Stacks Blockchain API
View gist:b54d2b78894ffbc7cc2816f73afd983f
This file has been truncated, but you can view the full file.
# Setting up Restish for Stacks Blockchain API
[Read about Restish here](
## Install
# Add the tap
$ brew tap danielgtaylor/restish
View generate-txs.ts
import * as BigNum from 'bn.js';
import * as qs from 'qs';
import axios from 'axios';
import {
kyranjamie / post-conditions.ts
Created Apr 21, 2020
generated post conditions
View post-conditions.ts
export interface PostConditionFungible {
| {
typeId: 1;
| {
typeId: 2;
* Raw data is stored in instances of the Buffer class.
* A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized.
View stacks-entities.tsx
export interface PostConditionStx {
principal: PostConditionPrincipal;
condition_code: PostConditionFungibleConditionCode;
amount: string;
type: "stx";
export interface PostConditionFungible {
principal: PostConditionPrincipal;
condition_code: PostConditionFungibleConditionCode;
type: "fungible";
kyranjamie / index.html
Created Dec 5, 2019
Popup in browser, new tab when mobile/blocked
View index.html
<!DOCTYPE html>
<title>Popup test</title>
<button class="js-button">Open popup</button>
const btn = document.querySelector('.js-button');
View move-letters.ts
const getNextIndex = (currentIndex: number, array: any[]) =>
currentIndex === array.length - 1 ? 0 : currentIndex + 1;
const getPreviousIndex = (currentIndex: number, array: any[]) =>
currentIndex === 0 ? array.length - 1 : currentIndex - 1;
function moveLetters (input: string) {
const sentence = input.split(' ');
return sentence
.map((currentWord, index) => {
View blockstack-verification
Verifying my Blockstack ID is secured with the address 1BEbuhJa19bczuX3HVBMgk6qc5yo2687Wx