What is Nostr?
heady_wook
npub1mm5…07y3
2024-06-25 03:57:35
in reply to nevent1q…x5f8

heady_wook on Nostr: # BTC USD btc_usd = [from your node] # Price of the product in USD. product_usd = ...

# BTC USD
btc_usd = [from your node]

# Price of the product in USD.
product_usd = 15.00

# Convert to sats
product_sats = (product_usd / btc_usd) * 100000000

# Format price to display with commas at hundreds place and sats units
product_sats_label = format(round(product_sats), ',') + " sats"
Author Public Key
npub1mm5h2xq80qyqj969q92yr9f6mq2vyt2w4646dxtrsk3a0hpary0qrs07y3