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.
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) => { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Popup test</title> | |
</head> | |
<body> | |
<button class="js-button">Open popup</button> | |
</body> | |
<script> | |
const btn = document.querySelector('.js-button'); |
export interface PostConditionStx { | |
principal: PostConditionPrincipal; | |
condition_code: PostConditionFungibleConditionCode; | |
amount: string; | |
type: "stx"; | |
} | |
export interface PostConditionFungible { | |
principal: PostConditionPrincipal; | |
condition_code: PostConditionFungibleConditionCode; | |
type: "fungible"; |
export interface PostConditionFungible { | |
principal: | |
| { | |
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. |
import * as BigNum from 'bn.js'; | |
import * as qs from 'qs'; | |
import axios from 'axios'; | |
import { | |
makeSTXTokenTransfer, | |
StacksNetwork, | |
TransactionVersion, | |
ChainID, | |
getPublicKey, | |
createStacksPrivateKey, |
# Setting up Restish for Stacks Blockchain API | |
[Read about Restish here](https://rest.sh/#/configuration) | |
## Install | |
``` | |
# Add the tap | |
$ brew tap danielgtaylor/restish |
openapi: 3.0.2 | |
servers: | |
- url: 'https://stacks-node-api.mainnet.stacks.co' | |
description: Mainnet | |
- url: 'https://stacks-node-api.testnet.stacks.co' | |
description: Testnet | |
- url: 'http://localhost:3999' | |
description: Local | |
info: | |
title: Stacks 2.0 Blockchain API |
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. | |
Features | |
- 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) |
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.
:root { | |
--hiro-logo-frame6: 0 0; | |
--hiro-logo-frame5: 0 -53px; | |
--hiro-logo-frame4: 0 -106px; | |
--hiro-logo-frame3: 0 -159px; | |
--hiro-logo-frame2: 0 -212px; | |
--hiro-logo-frame1: 0 -265px; | |
--img: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIkAAAE+CAYAAAC5nDOwAAAXV0lEQVR42uydeagVVRzHf6+Zufe+1VLzaYhFZbaYLRQpGplRGoWkpaFpUbYTVkjRYlpGtPdHQTtEi1G5BJFJtplWaJuGqSVaqS2SaT417bnV70dPeBx+M3fmntm67/uBH9m7c8/MPed7zu9sc34EAAAAAAAAAACAaqam6LpDC647m22W53k3EoiPguNcwBk7o725rjuYkqfRvK/nOE9SBfDzTvJc9x/DPiQQD5yZXxmZ20pETZQsUrADzIKtUCRF+a5mRNSJgB2lUukwJXPnUwpwy/Gucd/djY2NXSg69X4ikRaRgB3su68zM5b/NpGSp5Ny33WVat1PJFwJDidg7Wq+MDJ2pzTfKYizv1Lrp1mk94aS3noCdtTW1vZSat+8lFzNHOO+e4iozmZ04znOEyyW1QXP+5HTn0sgltp8rdLkX56Rq1lLIJeuZpEyqimlMKo5Q3EN9xHIF8Vi8YiMXI2I8yPF1dQTyJ2ruUlp8q+g5OkKVxMLDlt9mzlJiWSpUVi7UnI1pyuu5n4qT0k6plEshhbvkTD3UfKtQVpq/uwq89qS655JlVGQOS3ukE/lsltl5iF31n/izx4sFAr9YilHTuhoxdW8l5Kred+4796QrqZJro9iMTzr1jD34Ydv3j9g5IKaIu7T93rPu5mi4XJ5jeLvbonw2/8uOM5Yq6kMWfxSHv7KTFyN46wmpgpEIiO2P43PbEUiaX4n36vQNsg0R6Ui+dpIbIfUghRczUD |