銘文のガイド

Individual gros can be inscribed with arbitrary content, creating Groestlcoin-native digital artifacts that can be held in a Groestlcoin wallet and transferred using Groestlcoin transactions. Inscriptions are as durable, immutable, secure, and decentralized as Groestlcoin itself.

Working with inscriptions requires a Groestlcoin full node, to give you a view of the current state of the Groestlcoin blockchain, and a wallet that can create inscriptions and perform gro control when constructing transactions to send inscriptions to another wallet.

Groestlcoin Core provides both a Groestlcoin full node and wallet. However, the Groestlcoin Core wallet cannot create inscriptions and does not perform gro control.

This requires ord, the ordinal utility. ord doesn't implement its own wallet, so ord wallet subcommands interact with Groestlcoin Core wallets.

このガイドの含まれ:

  1. Groestlcoin Coreを取り付けます。
  2. ビットコインのブロックを同期します。
  3. Groestlcoin Core ウォレットを作り上げます。
  4. Using ord wallet receive to receive gros
  5. ord wallet inscribeを使って、銘文を作り上げます。
  6. ord wallet sendを使って`銘文を発送します
  7. ord wallet receiveを使って`銘文を受け取ります。

助けを求めます。

If you get stuck, try asking for help on the Groestlcoin Discord Server, or checking GitHub for relevant issues.

Groestlcoin Coreを取り付けます。

Groestlcoin Core is available from groestlcoin.org.

銘文を作成するにはGroestlcoin Core 24以降が必要です。

This guide does not cover installing Groestlcoin Core in detail. Once Groestlcoin Core is installed, you should be able to run groestlcoind -version successfully from the command line. Do NOT use groestlcoin-qt.

Groestlcoin Coreを配置します。

ord requires Groestlcoin Core's transaction index and rest interface.

トランザクションインデックスを配置するためにGroestlcoin Coreフェーズを設定します,'groestlcoin.conf'に追加する必要があります::

txindex=1

または, groestlcoind-txindexを運行します:

groestlcoind -txindex

Details on creating or modifying your groestlcoin.conf file can be found here.

ビットコインのブロックを同期にします。

ブロックを同期にして、運行します:

groestlcoind -txindex

getblockcount運行するまで:

groestlcoin-cli getblockcount

ブロックチェーンブラウザのように[the mempool.space block explorer](https://mempool.space/)のようにブロックを記述する...ordは'groestlcoind'と相互作用するので、'ord'を使用するときは'groestlcoind'をバックグラウンドで実行する必要があります。

The blockchain takes about 600GB of disk space. If you have an external drive you want to store blocks on, use the configuration option blocksdir=<external_drive_path>. This is much simpler than using the datadir option because the cookie file will still be in the default location for groestlcoin-cli and ord to find.

故障排除

Make sure you can access groestlcoind with groestlcoin-cli -getinfo and that it is fully synced.

If groestlcoin-cli -getinfo returns Could not connect to the server, groestlcoind is not running.

Make sure rpcuser, rpcpassword, or rpcauth are NOT set in your groestlcoin.conf file. ord requires using cookie authentication. Make sure there is a file .cookie in your groestlcoin data directory.

If groestlcoin-cli -getinfo returns Could not locate RPC credentials, then you must specify the cookie file location. If you are using a custom data directory (specifying the datadir option), then you must specify the cookie location like groestlcoin-cli -rpccookiefile=<your_groestlcoin_datadir>/.cookie -getinfo. When running ord you must specify the cookie file location with --cookie-file=<your_groestlcoin_datadir>/.cookie.

Make sure you do NOT have disablewallet=1 in your groestlcoin.conf file. If groestlcoin-cli listwallets returns Method not found then the wallet is disabled and you won't be able to use ord.

Make sure txindex=1 is set. Run groestlcoin-cli getindexinfo and it should return something like

{ "txindex": { "synced": true, "best_block_height": 776546 } }

If it only returns {}, txindex is not set. If it returns "synced": false, groestlcoind is still creating the txindex. Wait until "synced": true before using ord.

If you have maxuploadtarget set it can interfere with fetching blocks for ord index. Either remove it or set whitebind=127.0.0.1:1331.

ord取り付けます。

The ord utility is written in Rust and can be built from source. Pre-built binaries are available on the releases page.

コマンドラインで次のコマンドを使用して、最新のファイルをインストールすることもできます。:

curl --proto '=https' --tlsv1.2 -fsLS https://raw.githubusercontent.com/Groestlcoin/ord-groestlcoin/master/install.sh | bash -s

'ord'が正常にインストールされた後、あなたは実行することができます :

ord --version

これにより、「ord」のバージョン番号が出力されます。

『ord』という名前のGroestlcoin Coreウォレットを作成します。

ord Groestlcoin Coreを使用して秘密鍵を管理し、トランザクションに署名し、ビットコインネットワークにトランザクションをブロードキャストします。。

『ord』という名前のGroestlcoin Coreウォレットを作成し、運行します:

ord wallet create

Receiving Gros

Inscriptions are made on individual gros, using normal Groestlcoin transactions that pay fees in gros, so your wallet will need some gros.

'ord'ウォレットの新しいアドレスを作成して、実行します::

ord wallet receive

上記の住所に資金を発送します。

以下のコマンドで取引状況を見ることができます:

ord wallet transactions

取引が確認されたら、'ord wallet outputs'を使って取引の輸出を見ることができるはずです;

銘文の内容を作成します。

Gros can be inscribed with any kind of content, but the ord wallet only supports content types that can be displayed by the ord block explorer.

また、銘文は取引に含まれているため、内容が大きいほど銘文取引にかかる費用が高くなります。

銘文の内容は取引証言に含まれ、証言割引を受ける。トランザクションへの書き込みで支払われる費用の概算を計算するには、コンテンツサイズを4で割ってから、レートを掛けてください。

銘文取引は400,000重量測定単位未満でなければならない。そうでなければ、Groestlcoin Coreに中継されないの1バイトの銘文内容には重み測定単位が必要です。銘文取引は銘文の内容だけではないので、銘文の内容は400、000重量計量単位以内に制限されている。390、000の重み測定単位は安全でなければならなりません。

銘文を作成します。

『FILE』の内容で銘文を作成し、実行する必要があります:

ord wallet inscribe --fee-rate FEE_RATE FILE

Ordは2つの取引IDが出力されます。1つはcommit取引、もう1つはreveal取引、そして銘文IDです。銘文IDのフォーマットは、'TXIDiN'であり、'TXID'は、取引を開示する取引IDであり、'N'は、取引における銘文を開示するインデックスであ。

The commit transaction commits to a tapscript containing the content of the inscription, and the reveal transaction spends from that tapscript, revealing the content on chain and inscribing it on the first gro of the input that contains the corresponding tapscript.

Wait for the reveal transaction to be mined. You can check the status of the commit and reveal transactions using the esplora block explorer.

reveal取引が記帳を完了したら、以下のコマンドを使用して銘文IDを照会できます

ord wallet inscriptions

Parent-Child Inscriptions

Parent-child inscriptions enable what is colloquially known as collections, see provenance for more information.

To make an inscription a child of another, the parent inscription has to be inscribed and present in the wallet. To choose a parent run ord wallet inscriptions and copy the inscription id (<PARENT_INSCRIPTION_ID>).

Now inscribe the child inscription and specify the parent like so:

ord wallet inscribe --fee-rate FEE_RATE --parent <PARENT_INSCRIPTION_ID> CHILD_FILE

This relationship cannot be added retroactively, the parent has to be present at inception of the child.

銘文を発送します

銘文受信者は次のコマンドを使って住所を生成する

ord wallet receive

コマンドを使用して銘文を発送します:

ord wallet send --fee-rate <FEE_RATE> <ADDRESS> <INSCRIPTION_ID>

できなかった取引状況を検査します:

ord wallet transactions

取引が確認されると、受信者は次のコマンドを使用して受信した銘文を見ることができます

ord wallet inscriptions

銘文を受け取ります

次のコマンドを使用して新しい受信アドレスを生成する

ord wallet receive

送信者はコマンドを使用してあなたの住所に銘文を送信します

ord wallet send ADDRESS INSCRIPTION_ID

できなかった取引状況を検査します:

ord wallet transactions

取引が確認されると、受信者は次のコマンドを使用して受信した銘文を見ることができます

ord wallet inscriptions