• Home
  • Live Rates
  • Privacy Policy
  • Shop
  • Terms of Service
Thursday, January 1, 2026
  • Home
  • Crypto News
  • Bitcoin
  • Ethereum
  • NFT
  • DeFi
  • Blockchain
  • Metaverse
  • Altcoin
  • Tether
  • Solana
    • Dogecoin
  • Live Rates
  • Shop
No Result
View All Result
XXL24
Ledger - Crypto Beginners Pack
  • Home
  • Crypto News
  • Bitcoin
  • Ethereum
  • NFT
  • DeFi
  • Blockchain
  • Metaverse
  • Altcoin
  • Tether
  • Solana
    • Dogecoin
  • Live Rates
  • Shop
No Result
View All Result
XXL24
No Result
View All Result

Integrate Ordinals with smart contracts on Bitcoin: Part 4

October 3, 2023
in Bitcoin
0

This post was first published on Medium. Read Part 1 here, Part 2 here, and Part 3 here.

Control Distribution of BSV-20 Tokens

In our last article, we have shown smart contracts can control transfers of BSV-20 tokens after minting. Today, we demonstrate how to control distribution/issuance of such tokens.

Tickerless mode

BSV-20 introduces a tickerless mode in V2 and takes a different approach from V1.

Deploy
To deploy and mint a token with a supply of 21000000, you inscribe the following JSON (ContentType: application/bsv-20):

Note, unlike V1, there is no designated tick field (thus tickerless).

Issue

To issue 10000 tokens above, you create a transfer inscription with the following JSON.

Instead of a ticker, a token is identified by an id field, made of the transaction ID and output index where the token was deployed, formatted as <txid>_<vout>.

Also the first issuance transaction must spend from deployment transaction since the whole supply is minted at once, while minting transaction does not spend from it and they are separate in V1. That means every transaction of a token can traceback to that token’s genesis deployment, and each is in a DAG (Directed Acyclic Graph) rooted at genesis transaction. This allows BSV-20 indexer to scale more efficiently since it does not have to scan the entire blockchain and order minting transactions, to enforce “first is first” minting.

For more details on how BSV-20 token V2 works, please read the official documentation.

Fair launch

A notable characteristic of BSV- 20 V1 tokens is fair launch, contrasting with ERC-20 tokens. Specifically, once someone deploys a transaction of the tokens on BSV-20, everyone has the same chance to claim the tokens. Issuers cannot reserve a portion for free, i.e., there is no pre-mine.

If a token’s total supply is minted at once when deployed in V2 tickerless mode, is it possible to maintain fair launch?

The answer is yes. Instead of locking the whole supply in a standard issuer address (P2PKH script) when deployed, we lock it into a smart contract. The smart contract can be called by anyone and any distribution policy can be enforced in it.

Chain of issuance transactions

In the diagram above, each box represents a token UTXO and stacked UTXOs are in the same transaction. The second transaction spends the UTXO of the first deployment transaction, indicated by the first arrow, and creates two UTXOs:

  • a spawned copy of the same contract in genesis, but with reduced remaining supply
  • newly issued tokens.

The chain of transactions goes on till the whole token supply is issued. Note the contract can be called by anyone.

We list a few policies as examples.

Rate limit

Under this policy, anyone can claim tokens as long as it is more than, say, 5 minutes away from the last claim. Contract is listed below.

Contract

Line 6–12 enforce rate limiting. Line 26–30 ensure supply is not exceeded. If yes, Line 38–52 create an output containing the same contract but with updated state: remaining supply. Line 55–58 issue tokens to a destination address.

mini PoW

The policy ensures anyone can claim tokens, as long as she finds a nonce meeting some specified difficulty requirement, as in Bitcoin’s Proof of Work (PoW).

Credit: David Case

ICO

A policy can be implemented so that anyone can receive tokens by sending bitcoin to a specific address in a trustless way, similar to an initial coin offering (ICO). In the diagram above, a third output is added for bitcoin payment, which is validated in a contract.

Watch The Bitcoin Masterclasses #3 Day 2 – Afternoon Session: Accounting and mapping transaction on-chain

width=”560″ height=”315″ frameborder=”0″ allowfullscreen=”allowfullscreen”>

New to blockchain? Check out CoinGeek’s Blockchain for Beginners section, the ultimate resource guide to learn more about blockchain technology.



This news is republished from another source.


Previous Post

Ethereum futures ETFs garner lukewarm reception on first day of trading

Next Post

Binance Aids Thai Police in Crackdown on Crypto-Related Criminal Networks

Next Post

Binance Aids Thai Police in Crackdown on Crypto-Related Criminal Networks

Name Price
Kinza Babylon Staked BTC
Kinza Babylon Staked BTC (KBTC)
$83,270.00
Steakhouse EURCV Morpho Vault
Steakhouse EURCV Morpho Vault (STEAKEURCV)
$0.000000
Eureka Bridged PAX Gold (Terra)
Eureka Bridged PAX Gold (Terra) (PAXG)
$4,182.54
Vested XOR
Vested XOR (VXOR)
$3,404.23
ICPanda DAO
ICPanda DAO (PANDA)
$0.003106
TruFin Staked APT
TruFin Staked APT (TRUAPT)
$8.02
ApeSwap
ApeSwap (BANANA)
$0.000000
bitcoin
Bitcoin (BTC)
$88,101.00
ethereum
Ethereum (ETH)
$2,985.08
tether
Tether (USDT)
$1.00

Dogecoin

Will Dogecoin Recover or Dive Below $0.1? 5thScape Set to Dominate 2024! %

July 15, 2024

Investors Shift to Clandeno (CLD) ICO Amid Global Market Uncertainty as Dogecoin (DOGE) and Polkadot (DOT) Drop

July 14, 2024

Dogecoin (DOGE) and Solana (SOL) Lead Crypto Market Recovery as Bitcoin (BTC) Reclaims $60K

July 14, 2024

DOGECOIN PRICE ANALYSIS & PREDICTION (July 13) – Doge Trades Calmly At $0.1, Can It Gain Strength From This Key Level? 

July 14, 2024

Analyst Who Bought Solana At $0.11 And Sold For $250 Says Buy ETFSwap (ETFS) At $0.01831 Now Instead Of Dogecoin (DOGE)

July 13, 2024

Leap Ahead with MOONHOP Presale As 4900% Growth Projection Dwarfs Notcoin & Dogecoin’s Declines

July 13, 2024

Metaverse

Ciz Verse Announces the Launch of Its Bitcoin-Powered Metaverse

July 15, 2024

Mil.k partners AirAsia rewards and The Sandbox to engage consumers in the metaverse

July 15, 2024

Lado Okhotnikov Reveals The Secrets Of The Realistic Meta Force Metaverse

July 14, 2024

GensoKishi Metaverse (MV) Price Down 18.4% This Week

July 14, 2024

The 3 Smartest Metaverse Stocks to Buy With $500 Right Now

July 14, 2024

Top 3 Metaverse Tokens For 3X Surge This Bull Rally!

July 13, 2024

transcosmos launches Roblox metaverse services with EbuAction

July 13, 2024
No Result
View All Result

Pages

  • Home
  • Live Rates
  • Privacy Policy
  • Shop
  • Terms of Service

Tether

Zimbabwe ZiG Hits Record Low as Interest in Tether (USDT) Rises

July 15, 2024

Solana

How Solana flipped Ethereum, Bitcoin in NFT Adoption

July 15, 2024

Solana Reaches Market Capitalization of $67.27 Billion (SOL)

July 14, 2024

Advertisement

  • Shop
  • Privacy Policy
  • Terms of Service

© 2023 XXL24


No Result
View All Result
  • Home
  • Crypto News
  • Bitcoin
  • Ethereum
  • NFT
  • DeFi
  • Blockchain
  • Metaverse
  • Altcoin
  • Tether
  • Solana
    • Dogecoin
  • Live Rates
  • Shop

© 2023 XXL24


  • Kinza Babylon Staked BTCKinza Babylon Staked BTC(KBTC)$83,270.000.00%
  • Steakhouse EURCV Morpho VaultSteakhouse EURCV Morpho Vault(STEAKEURCV)$0.000000-100.00%
  • Eureka Bridged PAX Gold (Terra)Eureka Bridged PAX Gold (Terra)(PAXG)$4,182.540.23%
  • Vested XORVested XOR(VXOR)$3,404.231,000.00%
  • ICPanda DAOICPanda DAO(PANDA)$0.003106-39.39%
  • TruFin Staked APTTruFin Staked APT(TRUAPT)$8.020.00%
  • ApeSwapApeSwap(BANANA)$0.0000000.00%
  • bitcoinBitcoin(BTC)$88,101.000.36%
  • ethereumEthereum(ETH)$2,985.080.18%
  • tetherTether(USDT)$1.00-0.01%
  • binancecoinBNB(BNB)$858.70-0.49%
  • rippleXRP(XRP)$1.871.61%
  • JPool Staked SOLJPool Staked SOL(JSOL)$170.103.95%
  • usd-coinUSDC(USDC)$1.00-0.01%
  • solanaSolana(SOL)$125.10-0.01%
  • tronTRON(TRX)$0.2849050.77%
  • staked-etherLido Staked Ether(STETH)$2,982.710.16%
  • dogecoinDogecoin(DOGE)$0.1246975.81%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.02-1.98%
  • cardanoCardano(ADA)$0.3511194.91%
  • Gaj FinanceGaj Finance(GAJ)$0.0059271.46%
  • Content BitcoinContent Bitcoin(CTB)$24.482.55%
  • WhiteBIT CoinWhiteBIT Coin(WBT)$56.670.29%
  • USD OneUSD One(USD1)$1.000.11%
  • bitcoin-cashBitcoin Cash(BCH)$588.89-1.47%
  • Wrapped stETHWrapped stETH(WSTETH)$3,651.230.15%
  • wrapped-bitcoinWrapped Bitcoin(WBTC)$87,883.000.55%
  • Wrapped Beacon ETHWrapped Beacon ETH(WBETH)$3,245.010.22%
  • UGOLD Inc.UGOLD Inc.(UGOLD)$3,042.460.08%
  • ParkcoinParkcoin(KPK)$1.101.76%
  • Wrapped eETHWrapped eETH(WEETH)$3,237.090.17%
  • USDSUSDS(USDS)$1.00-0.01%
  • Binance Bridged USDT (BNB Smart Chain)Binance Bridged USDT (BNB Smart Chain)(BSC-USD)$1.00-0.01%
  • chainlinkChainlink(LINK)$12.441.23%
  • leo-tokenLEO Token(LEO)$9.552.34%
  • zcashZcash(ZEC)$519.561.54%
  • wethWETH(WETH)$2,984.520.14%
  • moneroMonero(XMR)$421.88-4.58%
  • Yay StakeStone EtherYay StakeStone Ether(YAYSTONE)$2,671.07-2.84%
  • stellarStellar(XLM)$0.2082784.09%
  • Coinbase Wrapped BTCCoinbase Wrapped BTC(CBBTC)$88,115.000.57%
  • Ethena USDeEthena USDe(USDE)$1.00-0.01%
  • litecoinLitecoin(LTC)$78.882.84%
  • PengPeng(PENG)$0.60-13.59%
  • HyperliquidHyperliquid(HYPE)$24.42-4.77%
  • SuiSui(SUI)$1.442.61%
  • CantonCanton(CC)$0.1506212.26%
  • avalanche-2Avalanche(AVAX)$12.722.94%
  • MurasakiMurasaki(MURA)$4.32-12.46%
  • hedera-hashgraphHedera(HBAR)$0.1112754.25%