This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Show Docker | |
# @raycast.mode compact | |
# Optional parameters: | |
# @raycast.icon 🐋 | |
# Documentation: | |
# @raycast.description Go to the dashboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using test vectors from various sources, we generate and verify addresses and the raw hash bytes of those addresses. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { setFetchOptions } from '@stacks/common'; | |
setFetchOptions({ | |
headers: [ | |
['X-Header', 'Hello header!'], | |
], | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AppConfig, UserSession } from "@stacks/connect"; | |
import { Storage } from "@stacks/storage"; | |
const appConfig = new AppConfig(["store_write", "publish_data"]); | |
const userSession = new UserSession({ appConfig }); | |
const storage = new Storage({ userSession }); | |
let fileName = "car.json"; | |
await storage.deleteFile(fileName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AppConfig, UserSession } from "@stacks/connect"; | |
import { Storage } from "@stacks/storage"; | |
const appConfig = new AppConfig(["store_write", "publish_data"]); | |
const userSession = new UserSession({ appConfig }); | |
const storage = new Storage({ userSession }); | |
const fileName = "car.json"; | |
const options = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AppConfig, UserSession } from "@stacks/connect"; | |
import { Storage } from "@stacks/storage"; | |
const appConfig = new AppConfig(["store_write", "publish_data"]); | |
const userSession = new UserSession({ appConfig }); | |
const storage = new Storage({ userSession }); | |
const fileName = "car.json"; | |
const fileData = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
onFinish: (data) => { | |
const explorerTransactionUrl = "https://explorer.stacks.co/txid/${data.txId}"; | |
console.log("View transaction in explorer:", explorerTransactionUrl); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { openSTXTransfer } from "@stacks/connect"; | |
import { StacksTestnet } from "@stacks/network"; | |
openSTXTransfer({ | |
recipient: "ST2EB9WEQNR9P0K28D2DC352TM75YG3K0GT7V13CV", | |
amount: "100", | |
memo: "Reimbursement", | |
network: new StacksTestnet(), // for mainnet, `new StacksMainnet()` | |
appDetails: { | |
name: "My App", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const address = userSession.loadUserData().profile.stxAddress; | |
const mainnetAddress = address.mainnet; | |
// "SP2K5SJNTB6YP3VCTCBE8G35WZBPVN6TDMDJ96QAH" | |
const testnetAddress = address.testnet; | |
// "ST2K5SJNTB6YP3VCTCBE8G35WZBPVN6TDMFEVESR6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AppConfig, UserSession, showConnect } from "@stacks/connect"; | |
const appConfig = new AppConfig(["store_write", "publish_data"]); | |
const userSession = new UserSession({ appConfig }); | |
function authenticate() { | |
showConnect({ | |
appDetails: { | |
name: "My App", | |
icon: window.location.origin + "/my-app-logo.svg", |
NewerOlder