### Get All Offers Response Example Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/wallet-rpc.md An example response from the `get_all_offers` RPC call, showing the structure of trade records, coins of interest, and offer summaries. ```json { "offers": null, "success": true, "trade_records": [ { "accepted_at_time": null, "coins_of_interest": [ { "amount": 999999, "parent_coin_info": "0x60a8b06515aaefe74236eb234130d769a1b65c99706414901277926fe29c3360", "puzzle_hash": "0xad5de77c7da1316b9b72708d17dbb8937855d740ebaf85669b8bd925275e8d49" } ], "confirmed_at_index": 0, "created_at_time": 1669275137, "is_my_offer": true, "pending": { "0570076f3c2cd8d6e65f9b56f96ab92079d3ce7ab7372c751e1c19fdb42b25d4": 999999 }, "sent": 0, "sent_to": [], "status": "PENDING_ACCEPT", "summary": { "fees": 0, "infos": { "0570076f3c2cd8d6e65f9b56f96ab92079d3ce7ab7372c751e1c19fdb42b25d4": { "tail": "0x0570076f3c2cd8d6e65f9b56f96ab92079d3ce7ab7372c751e1c19fdb42b25d4", "type": "CAT" } }, "offered": { "0570076f3c2cd8d6e65f9b56f96ab92079d3ce7ab7372c751e1c19fdb42b25d4": 1000 }, "requested": { "xch": 1000000000000 } }, "taken_offer": null, "trade_id": "0x84d14398c1a38f376953bf8fa76cbee0d3216b382266d38b5612f17e96bcd1de" } ] } ``` -------------------------------- ### Install Chia Blockchain from Source Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/install-and-setup/timelord-install.md Clones the chia-blockchain repository, changes directory, installs dependencies, and activates the virtual environment. This is the initial setup for building from source. ```bash # Download chia-blockchain (for clusters the chia software is only needed on the main machine all other hosts need the hw vdf repo) git clone https://github.com/Chia-Network/chia-blockchain -b latest --recurse-submodules # Change directory cd chia-blockchain # Install dependencies sh install.sh # Activate virtual environment . ./activate # Initialize chia init . ./activate ``` -------------------------------- ### Sample dApp Local Server Output Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/walletconnect/walletconnect-user-guide.md Example output when the sample dApp is started locally, indicating the network address and port. ```bash ➜ Local: http://127.0.0.1:5173/ ➜ Network: use --host to expose ➜ press h to show help ``` -------------------------------- ### Python RPC Request Example Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/rpc.md This Python snippet demonstrates how to make an RPC request to the Chia full node to get its state. It uses the `requests` library and requires SSL certificates for authentication. Ensure the certificate paths are correct for your setup. ```python import requests import urllib3 import json urllib3.disable_warnings() headers = {'Content-Type': 'application/json'} url = "https://localhost:8555/get_blockchain_state" data = '{}' cert = ('ssl/full_node/private_full_node.crt', 'ssl/full_node/private_full_node.key') response = json.loads(requests.post(url, data=data, headers=headers, cert=cert, verify=False).text) print(json.dumps(response, indent=4, sort_keys=True)) ``` -------------------------------- ### Navigate to Sample dApp Directory Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/walletconnect/walletconnect-user-guide.md Change to the cloned sample dApp's directory to proceed with installation. ```bash cd walletconnect-rpcs-dapp ``` -------------------------------- ### GET /farmer Example Request URL Source: https://github.com/chia-network/chia-docs/blob/main/docs/chia-blockchain/protocol/pool/pool-protocol-specification.md An example of how to construct the URL for the GET /farmer endpoint, including placeholders for the launcher ID, authentication token, and signature. ```plaintext https://poolurl.com/farmer/launcher_id=:launcher_id&authentication_token=:token&signature=:signature ``` -------------------------------- ### Example File Listing After Launch Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/custody/custody-tool-user-guide.md This example shows how the configuration file name changes after the singleton is launched, incorporating a hexadecimal identifier. ```bash (venv) ~/internal-custody/keys_and_sb$ ls 1.pk 1.se 2.pk 2.se 3.pk 3.se 'Configuration (74905b).txt' ``` -------------------------------- ### Verify Chia Installation Source: https://github.com/chia-network/chia-docs/blob/main/docs/chia-blockchain/resources/faq.md Execute this command to check if your Chia installation is set up correctly and to display the installed version. This is a good test after installation or alias setup. ```powershell chia version 1.6.1 ``` -------------------------------- ### Example: Add Token to Wallet and Show Balance Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/crash-course/cats-offers-nfts.md This example demonstrates adding a custom CAT to the wallet and then verifying its presence and balance using wallet commands. ```bash chia wallet add_token -id 2b29eb7875ac24f4da73e55ea45c5f94471ab677de608bce6a5ddd1817724844 -n ccoin ``` ```text Successfully added ccoin with wallet id 2 on key 1660000549 ``` ```bash chia wallet show ``` ```text ... ccoin: -Total Balance: 100000000.0 (100000000000 mojo) -Pending Total Balance: 100000000.0 (100000000000 mojo) -Spendable: 100000000.0 (100000000000 mojo) -Type: CAT -Asset ID: 2b29eb7875ac24f4da73e55ea45c5f94471ab677de608bce6a5ddd1817724844 -Wallet ID: 2 ... ``` -------------------------------- ### Take an Offer Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/wallet-rpc.md This example demonstrates how to take an offer using the `take_offer` RPC. Ensure you provide a valid offer ID. The response will contain the trade record if successful. ```bash chia rpc wallet take_offer '{"offer": "offer1qqzh3wcuu2rykcmqvpsxvgqqwc7hynr6hum6e0mnf72sn7uvvkpt68eyumkhelprk0adeg42nlelk2mpagr90qq0a37v8lc9pfxkwhdhlns4tnwtx933g0gsj06neuds6jjugly4k5x7we0x39h9ur65kfq0nl5ef86n4uv9hlnlhhqs4zu99cwjzf6fp675f8gne67qh42lhyhlxuemvtgqtwftqcjr4t524a70nhx9u2emrfwv7h9c94nxvsv2eqz2rujflx87vxp84jxh6hjnh0grq7mk29q6l78drkfjks408w79ahu6x6alhf420fw27fec0mufmmrp2y6d5sqmdksg6dksgcdk3gcdxn60gdx6gz347qcdtjuz7vxl7uu7zhtt50cmdwv32yfh9r7yx2hq7vylhvmrqmn8vrt7uxje4542svkkqtm8cxuar0tea3w0pmaend2n58e09wd2ahnr4ftjx2f8ldmg4d0gz4s4eq2acuz7vurnv7xrue4h7rkh7aaaa87snmh78038yf8447tqvks4dswpm6ycl7me8jxhu65m6al74k44lsj7hnxmy642z4exc8rxssgxx3qp5e0lzugx4hlada38auvlkqefpx2q6vm9c9nmlnjvfqfd3a9zaln6wf7y9hn4289cu9chjjha0wkmejcd56dmlaln80cakqe0jmln0uq58ek2uufhf9enazlz55e4nah0ntxhujdw03tmufvak7z09ckadt7gqj4t9laluraacee9z4ujekmy7e04w7h229nmtnnlul2ntkckge0rnvhvan4e42xtjzz07l7p7wsz8dlwll9mhv734uuj2t7hxlu0hesm6a7h29x7pfmjmrn0xgut0u0lstxcnr7j3vmjd8565g532cn2lwm5ad27vtzuh4dm8h0h29hk7460lcgx8txung0pl7pzxnyjpwhwjhrflj62flk7nkug7f7d8m04kurr09s2tmewvkd6u478yuqz6g75yramlqzsjvxxfxtaqdg5d0vnp5tmsumnlmx6ejudykahm7wm8uup3tn7rpa63d79x9992fhaud82s5dqwqgr5my703zjparwu8e2t6fedl2lvl0gvww3g73s9le8hqh3el00xma08qh3y6cku6vlu4jal0xh204xd07dymgtr0lfdnknmr8nhe0mhwalcj6pa4z2vux3qu3jc8mdhtmxl5uppk256uk6r794af5xfsuhxwp5a6sdcmwexlg5hhkgw3d66ycj42cc6l8lw3w4td8wu330lszmvzklqry5zxm8t34psew5z6g9k70lm0aaxkghx5afmhxqwtl7f9kycy9uhdhmdchlzesfphs89gmsz7c9nref02n4nau8h2hn7hdpg0sm4h0t9zrrnc6ajdev7s88a90lwpj6r2k782sz4kllpdn077hdvr7ua68g5e0e674h6e5008zvzavnra64c6v6p8nf33zkuulxsppk4ywx2wmdj0e66j82a8l5m4e5ajzw67dchhsuua9hafr3y4qcm2m0cthf8wf4ka2ts0m0hst0cjntnkfghphysfjm7egnych2mc3wly2827ln2ltqxv32wwkx7flukf7rg4tr25j38774tpq5lqc8l5tvv3mdjcl4llgyqrnekfxyz26de6"}' ``` -------------------------------- ### GET /login Request Example Source: https://github.com/chia-network/chia-docs/blob/main/docs/chia-blockchain/protocol/pool/pool-protocol-specification.md Example of a GET request to the /login endpoint. This URL is used for user login to a web interface if the pool supports it. Ensure to replace placeholders with actual values. ```http https://poolurl.com/login?launcher_id=:launcher_id&authentication_token=:token&signature=:signature ``` -------------------------------- ### OpenBSD User Setup Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/install-and-setup/installation.md Create a new user with the 'daemon' login class for memory allocation and switch to that user. ```shell # create a new user with the login class "daemon" so that it can use all # available memory for plotting, then switch to that user doas useradd -m -Ldaemon chia doas -u chia ksh -l cd ``` -------------------------------- ### Get Harvesters Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/farmer-rpc.md Lists all harvesters in the network and details of plots on each harvester. Use this to get a complete overview of your farming setup. ```json chia rpc farmer get_harvesters ``` -------------------------------- ### Example Data Store Creation Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/datalayer/datalayer-user-guide.md This example demonstrates the command to create a data store with a specified fee and shows a typical response from the Chia network, including transaction details. ```bash chia data create_data_store -m 0.00001 ``` ```json { 'id': '1a119374fc7d7055d3419fdcd7f93065f28a1e4acacdf9c73b933b27b685550f', 'success': True, 'txs': [ { 'additions': [ { 'amount': 1, 'parent_coin_info': '0xb4a1a658aaefd10930ecbccd51ac2c9a4853435b14acdb0de84729bfbefc791c', 'puzzle_hash': '0xeff07522495060c066f66f32acc2a77e3a3e737aca8baea4d1a64ea4cdc13da9' }, { 'amount': 14999989999999, 'parent_coin_info': '0xb4a1a658aaefd10930ecbccd51ac2c9a4853435b14acdb0de84729bfbefc791c', 'puzzle_hash': '0x478255c372cec71557c20459f4b690fb1b7c57da3fcfc4b6396d78d9a396e384' }, { 'amount': 1, 'parent_coin_info': '0x1a119374fc7d7055d3419fdcd7f93065f28a1e4acacdf9c73b933b27b685550f', 'puzzle_hash': '0xd650e81d45c7381183c14c3363a81aa78cb3acfe213e46da26df75cd431557f9' } ], 'amount': 1, 'confirmed': False, 'confirmed_at_height': 0, 'created_at_time': 1661141324, 'fee_amount': 10000000, 'memos': [], 'name': '0xaee362ae9d0ce3992b3bfb7cc48bde17f3d794cc383ff1d5e49a4d75dbf004d6', 'removals': [ { 'amount': 15000000000000, 'parent_coin_info': '0x81fc1729bad3f19699461b1ee455a92493ef4c1d60ba37d22ac187a18367e08e', 'puzzle_hash': '0x221c0e9cd9b7f536e9a204ef93519e6c9d4b4c9a049bde8d66fa1816c23120d2' }, { 'amount': 1, 'parent_coin_info': '0xb4a1a658aaefd10930ecbccd51ac2c9a4853435b14acdb0de84729bfbefc791c', 'puzzle_hash': '0xeff07522495060c066f66f32acc2a77e3a3e737aca8baea4d1a64ea4cdc13da9' } ], 'sent': 10, 'sent_to': [], 'spend_bundle': { 'aggregated_signature': '0x8c431f07698ad69fd14ab04d77683801e6b908e441074f5ef5268350483d194a09a8b3cde681cb5c5fcf6444e0c9d4bf00999e8e6ad1522891baa590f82d92e2876b08e34b1f3156d0fe88ce206e5ed1567863e10a0397fd0a8a66bcbd5007b0', 'coin_spends': [ { 'coin': { 'amount': 15000000000000, 'parent_coin_info': '0x81fc1729bad3f19699461b1ee455a92493ef4c1d60ba37d22ac187a18367e08e', 'puzzle_hash': '0x221c0e9cd9b7f536e9a204ef93519e6c9d4b4c9a049bde8d66fa1816c23120d2' }, 'puzzle_reveal': '0xff02ffff01ff02ffff01ff02ffff03ff0bffff01ff02ffff03ffff09ff05ffff1dff0bffff1effff0bff0bffff02ff06ffff04ff02ffff04ff17ff8080808080808080ffff01ff02ff17ff2f80ffff01ff088080ff0180ffff04ffff04ff04ffff04ff05ffff04ffff02ff06ffff04ff02ffff04ff17ff80808080ff80808080ffff02ff17ff2f808080ff0180ffff04ffff01ff32ff02ffff03ffff07ff0580ffff01ff0bffff0102ffff02ff06ffff04ff02ffff04ff09ff80808080ffff02ff06ffff04ff02ffff04ff0dff8080808080ffff01ff0bffff0101ff058080ff018080ffff04ffff01b0b3deeeb00319624e26767c5cf777cf9a02d046510181ed29f233e2847fa8ef28ede05d2770bb1b8f101ea8ae20527d61ff018080', 'solution': '0xff80ffff01ffff33ffa0eff07522495060c066f66f32acc2a77e3a3e737aca8baea4d1a64ea4cdc13da9ff0180ffff33ffa0478255c372cec71557c20459f4b690fb1b7c57da3fcfc4b6396d78d9a396e384ff860da47513597f80ffff34ff840098968080ffff3cffa084f72a9a3ce5152e1d627a259a0c1c90e6af389cb26af48173d84e374ecc518080ffff3dffa03a0ed375dff192685d1ef9a74424788b04655700bee898f0ea8445f8b55d38338080ff8080' }, { 'coin': { 'amount': 1, 'parent_coin_info': '0xb4a1a658aaefd10930ecbccd51ac2c9a4853435b14acdb0de84729bfbefc791c', 'puzzle_hash': '0xeff07522495060c066f66f32acc2a77e3a3e737aca8baea4d1a64ea4cdc13da9' }, 'puzzle_reveal': '0xff02ffff01ff04ffff04ff04ffff04ff05ffff04ff0bff80808080ffff04ffff04ff0affff04ffff02ff0effff04ff02ffff04ffff04ff05ffff04ff0bffff04ff17ff80808080ff80808080ff808080ff808080ffff04ffff01ff33ff3cff02ffff03ffff07ff0580ffff01ff0bffff0102ffff02ff0effff04ff02ffff04ff09ff80808080ffff02ff0effff04ff02ffff04ff0dff8080808080ffff01ff0bffff0101ff058080ff0180ff018080' } ] } } ] } ``` -------------------------------- ### Install Chia Dev Tools Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/cat/cat-creation-tutorial.md Installs chia-dev-tools without its dependencies. This is a specific requirement for the CAT admin tool setup. ```bash pip install chia-dev-tools --no-deps ``` -------------------------------- ### Accept Offer Using Offer File Content Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/crash-course/cats-offers-nfts.md This example demonstrates accepting an offer by providing the content of the offer file directly to the command. It shows the expected output including offer details and confirmation. ```bash chia wallet take_offer offer1qqz83wcsltt6wcmqvpsxygqqwc7hynr6hum6e0mnf72sn7uvvkpt68eyumkhelprk0adeg42nlelk2mpafs8tkhg2qa9qmzp08ydjpg006k9ju0r3x57a2gt5x9u7j0fn7gllxjau2udha0mvnqkm6uqf23vazn6cua3vt4mzmhwjahp50v807ma2fxwhd2kn2njcmytt2emzsln0u44xz8hzvrtqd2t9vz0alaa9m992xy5k9fhkjepaur0hlm088p2vandlnm747hmyl9dxafx44c83lfa0llef54rulm04tg0t7lmxth646y0289h36rexueuq4lq8c68mj37cpfujfr9k8ar4k8ar4k8dr4k8d84sx0fu3jmra6xkl2qptmstehm8cnmc6mdxn0rvdejdfpway2ccm6srenn6urvdmgvand96gat25z4tf4dlxa2yayde2t4h320uwtvf3z0wxta54n797slkhzka3wsnufzputks4vptnqsme69v3sgxdevw7mv507rlpluh89uy54njg6kfl8slkr383kw49j5ka73rre7dnut0v9v6xn9366zu7uaq0fz3yng7rsfcgrzqsgxx3qf5e0lzugx4c0adln8wuhcfavpmjzs5pcm0ya8xkzpcthp90t0n5fgtan0x4hjl28ecrh035ju0h90mp5xctxklh0j4m53hm6qq593ehls26aklf0mn7lvehj5xm26nywsvn389h87h2n2t36dhu68drpg0fp8e4z5q40klut3cvdu7a2vug0mnvwdh5g78wfu2kck6n8hq5vk08llzck4t46e0mtks2gtflmlc8pwcvle0wjpfra4cmd7t2lvncnnvadx68ean9axykk7dj8ypau2a08ll7p9ttuk6swrhx2u5jcljd9r4lt7ul9x9yjkzae8yn42nu66wl0a8wf0qaepevya6nc8ls0rmwhedawwerv0ja00un2md43mfs39dfqx4ucpfrn0p288p0eytsa3x6qa59tdnlc9sndx2u8t3qcjeh8vw6sv88hf7l8m0peahx24h5944y3dk247utstljgvf0lw67mslv0dcvzsdqk95vv02yetz7h06dmnj3ehayrtekh4kwnla285hg9avj0xq70lfndalp345pmt0wd446wtu7j3klxlzhhxgu8xuhc07tykcsjmlunqvt9jejg4903wwa9v39fxpkp0za4hg48t7jg7pjv8t0lhlkxr26hx4a5mk8hjqqr8hvtgyf3fnt4 ``` -------------------------------- ### Get All Mempool Items (Response Example) Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/full-node-rpc.md Example response structure for the `get_all_mempool_items` RPC call, showing a list of mempool items. ```json { "result": { "mempool_items": [ { "coin": { "amount": 45462, "parent_coin_info": "0xe52a976f3c5569f81abde873bb3337627498ad46db5bb6f8741a14bb8779ac93", "puzzle_hash": "0xa35c1e2f5670c8577a6cb6d65560e573fb09b3c98ce9c588e413791700ecfd14" }, "puzzle_reveal": "0xff02ffff01ff02ffff01ff02ffff03ff0bffff01ff02ffff03ffff09ff05ffff1dff0bffff1effff0bff0bffff02ff06ffff04ff02ffff04ff17ff8080808080808080ffff01ff02ff17ff2f80ffff01ff088080ff0180ffff01ff04ffff04ff04ffff04ff05ffff04ffff02ff06ffff04ff02ffff04ff17ff80808080ff80808080ffff02ff17ff2f808080ff0180ffff04ffff01ff32ff02ffff03ffff07ff0580ffff01ff0bffff0102ffff02ff06ffff04ff02ffff04ff09ff80808080ffff02ff06ffff04ff02ffff04ff0dff8080808080ffff01ff0bffff0101ff058080ff0180ff018080ffff04ffff01b0a479ea5e9bfdf1da07521313e4a767dffb566aada757ca914ccfc00b2e832a1c497f0e5f70ebb795aed7cb96361e08b5ff018080", "solution": "0xff80ffff01ffff33ffa0271fb64316ed2bb6504097835d19bf382b3b5d6a761ca65290f2c05fb9c5cf06ff8300b19580ffff34ff0180ffff3cffa05e5e11c7beafaeb57589000532dca89fa2994105ef20c8607a21ce05198eee6880ffff3dffa0f7af688eada984c7c1be8ab93dd4c1f807f155587d9a126ba9dd543f5911dad88080ff8080" } ], "spend_bundle_name": "0xd9bf060978afd797d35026ceb33886b030757735990fe0f03791fec3e695bbda" }, "id": 1 } ``` -------------------------------- ### Install Sample dApp Dependencies Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/walletconnect/walletconnect-user-guide.md Install the necessary dependencies for the sample dApp using NPM. ```bash npm install ``` -------------------------------- ### Get Local Root Response Example Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/datalayer-rpc.md Example JSON response for the `get_local_root` RPC call, providing the calculated hash and a success status. ```json { "hash": "0xcdb172490d2d1838e7cca24e28e2089ccbacf0e03b0f3d0a61eedae8462b3e75", "success": true } ``` -------------------------------- ### Example: Create CAT - Initial Command and Response Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/crash-course/cats-offers-nfts.md This example demonstrates the initial command to create a CAT and its corresponding JSON response, including coin details. ```bash cats --tail ./reference_tails/genesis_by_coin_id.clsp.hex --send-to txch14t42glxxe93hy29nevq56j4mdupfgazkmkgxzt38p5achh3vmu0qwsqdnt --amount 100000000000 -m 100000000 --as-bytes --select-coin ``` ```json { "amount": 999889999998, "parent_coin_info": "0x4d847cddc91a294b82f01c17e09bfdffb1ddadf0e41b6765a127ef1312b6ebf1", "puzzle_hash": "0xaaeaa47cc6c9637228b3cb014d4abb6f02947456dd90612e270d3b8bde2cdf1e" } Name: fa514c961ad13b154708da36750f28f905b45e0e5dd53e856b49e55886a18a20 ``` -------------------------------- ### Start Local Development Server Source: https://github.com/chia-network/chia-docs/blob/main/README.md Starts a local development server and automatically opens the site in your browser. Changes are reflected live. ```bash $ npm start ``` -------------------------------- ### Install Specific Chia Blockchain Version Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/crash-course/cats-offers-nfts.md Install Chia Blockchain version 1.5.0 using pip. This is a required version for the guide's instructions. ```bash pip install chia-blockchain==1.5.0 ``` -------------------------------- ### Start the Sample dApp Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/walletconnect/walletconnect-user-guide.md Start the sample dApp locally. The default port is 5173, but this may vary. ```bash npm run dev ``` -------------------------------- ### Launch Software Timelord Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/install-and-setup/timelord-install.md Starts the Chia timelord process in the background after installation. ```bash chia start node timelord & ``` -------------------------------- ### Install IOzone Prerequisites Source: https://github.com/chia-network/chia-docs/blob/main/docs/chia-blockchain/resources/storage-benchmarks.md Installs necessary development tools for compiling IOzone on RHEL-based systems. This step is required before downloading and compiling IOzone. ```bash sudo yum update -y sudo yum groupinstall "Development Tools" -y ``` -------------------------------- ### Get Value Response Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/datalayer-rpc.md Example response for the get_value RPC, returning the requested value. ```json { "success": true, "value": "fadedcab" } ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/chia-network/chia-docs/blob/main/README.md Run this command to install all necessary dependencies for the project. ```bash $ npm install ``` -------------------------------- ### Start Bluebox Timelord Services Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/install-and-setup/timelord-install.md Starts the necessary services for a Bluebox timelord. Use the first command for a combined full node and timelord setup, and the second for a separate full node. ```bash ## Start the daemon, timelord-launcher, timelord, and node for a Bluebox timelord + full node running on the same device cia start node timelord ## Start the daemon, timelord-launcher, and timelord for a Bluebox timelord connecting to a separate full node cia start timelord-launcher-only timelord-only ``` -------------------------------- ### Install and Build Player App Frontend Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/chia-gaming/gaming-developers-guide.md Installs frontend dependencies using pnpm and builds the player application. Use --frozen-lockfile for reproducible builds. ```bash cd front-end && pnpm install --frozen-lockfile && pnpm run build ``` -------------------------------- ### Get KV Diff Response Example Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/datalayer-rpc.md Example JSON response for the `get_kv_diff` RPC call, showing the differences found in the key-value store, including keys, types (DELETE, INSERT), and values. ```json { "diff": [ { "key": "0004", "type": "DELETE", "value": "123abc" }, { "key": "0002", "type": "INSERT", "value": "0123456789abcdef" } ], "success": true } ``` -------------------------------- ### Initialize Full Node and Wallet (TypeScript) Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/crash-course/chialisp-and-typescript.md Sets up the `FullNode` and `StandardWallet` clients using the provided private key and genesis challenge. This requires the `os` module for path resolution and `fromHex` for decoding the genesis challenge. ```typescript const node = new FullNode(os.homedir() + "/.chia/mainnet"); const keyStore = new KeyStore(privateKey); const wallet = new StandardWallet(node, keyStore); const genesis = fromHex(process.env.GENESIS!); ``` -------------------------------- ### Get Block Records Example Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/full-node-rpc.md Retrieves a list of block records from the full node. This example shows the structure of the returned data, including coin amounts, parent coin info, and puzzle hashes. ```json { "amount": 1750000000000, "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a00000000000000000000000000325a99", "puzzle_hash": "0x907491ca39c35bc1f9a6eda33f7c0f97a9f583975088dad7216f1edd79f522ae" }, { "amount": 250000000000, "parent_coin_info": "0x3ff07eb358e8255a65c30a2dce0e5fbb00000000000000000000000000325a99", "puzzle_hash": "0x907491ca39c35bc1f9a6eda33f7c0f97a9f583975088dad7216f1edd79f522ae" }, { "amount": 1750000000000, "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a00000000000000000000000000325a98", "puzzle_hash": "0xa801e07ca857c207756ebdae6b2d5b9964766588c170929d2587ba14d5771791" }, { "amount": 250000000000, "parent_coin_info": "0x3ff07eb358e8255a65c30a2dce0e5fbb00000000000000000000000000325a98", "puzzle_hash": "0x9a8990caadda4fe57876ab878134b3fed786ca66ad32e71b34a1ac5ad3aea00a" }, { "amount": 1750000000000, "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a00000000000000000000000000325a97", "puzzle_hash": "0x7faa98823590b2bb8fa8dd654c0e4ce6e9262a3453e50d243ec6c25958a557d9" }, { "amount": 250000000000, "parent_coin_info": "0x3ff07eb358e8255a65c30a2dce0e5fbb00000000000000000000000000325a97", "puzzle_hash": "0xbf74889b9c3a161b4d30e0494fbfe8bdfc410d7ace65af15946795bf84d196b4" }, { "amount": 1750000000000, "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a00000000000000000000000000325a96", "puzzle_hash": "0x4bc6435b409bcbabe53870dae0f03755f6aabb4594c5915ec983acf12a5d1fba" }, { "amount": 250000000000, "parent_coin_info": "0x3ff07eb358e8255a65c30a2dce0e5fbb00000000000000000000000000325a96", "puzzle_hash": "0x4bc6435b409bcbabe53870dae0f03755f6aabb4594c5915ec983acf12a5d1fba" }, { "amount": 1750000000000, "parent_coin_info": "0xccd5bb71183532bff220ba46c268991a00000000000000000000000000325a95", "puzzle_hash": "0x4bc6435b409bcbabe53870dae0f03755f6aabb4594c5915ec983acf12a5d1fba" }, { "amount": 250000000000, "parent_coin_info": "0x3ff07eb358e8255a65c30a2dce0e5fbb00000000000000000000000000325a95", "puzzle_hash": "0x4bc6435b409bcbabe53870dae0f03755f6aabb4594c5915ec983acf12a5d1fba" } ] ``` -------------------------------- ### Concrete NFT Minting Example Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/crash-course/cats-offers-nfts.md An example demonstrating the NFT minting process, including fetching an image, calculating its hash, and submitting the minting transaction. ```bash chia wallet nft mint -i 3 -u https://images.pexels.com/photos/11053072/pexels-photo-11053072.jpeg -nh 14836b86a48e1b2b5e857213af97534704475b4c155d34b2cb83ed4b7cba2bb0 -m 0.000265 ``` -------------------------------- ### Get Network Space Response Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/full-node-rpc.md Example response showing the estimated network space and success status. ```json { "space": 26915196432975761408, "success": true } ``` -------------------------------- ### Run the Project Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/crash-course/chialisp-and-typescript.md Executes the 'start' script defined in package.json, running the application using ts-node. ```bash npm run start ``` -------------------------------- ### Get Network Information Response Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/full-node-rpc.md Example response from the `get_network_info` RPC call, showing network details. ```json { "genesis_challenge": "0xccd5bb71183532bff220ba46c268991a00000000000000000000000000000000", "network_name": "mainnet", "network_prefix": "xch", "success": true } ``` -------------------------------- ### Get Block Spends Example Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/full-node-rpc.md This snippet shows an example of the `puzzle_reveal` and `solution` fields for a block spend, which can be retrieved using the `get_block_spends` RPC method. These fields are crucial for verifying the validity of transactions within a block. ```json { "puzzle_reveal": "0xff02ffff01ff02ffff01ff02ffff03ff82017fffff01ff04ffff04ff38ffff04ffff0bffff02ff2effff04ff02ffff04ff05ffff04ff81bfffff04ffff02ff3effff04ff02ffff04ffff04ff05ffff04ff0bff1780808080ff808080808080ff82017f80808080ffff04ffff04ff3cffff01ff248080ffff04ffff04ff28ffff04ff82017fff808080ff80808080ffff01ff04ffff04ff24ffff04ff2fff808080ffff04ffff04ff2cffff04ff5fffff04ff81bfff80808080ffff04ffff04ff10ffff04ff81bfff8080808080ff0180ffff04ffff01ffffff49ff463fffff5002ff333cffff04ff0101ffff02ff02ffff03ff05ffff01ff02ff36ffff04ff02ffff04ff0dffff04ffff0bff26ffff0bff2aff1280ffff0bff26ffff0bff26ffff0bff2aff3a80ff0980ffff0bff26ff0bffff0bff2aff8080808080ff8080808080ffff010b80ff0180ffff0bff26ffff0bff2aff3480ffff0bff26ffff0bff26ffff0bff2aff3a80ff0580ffff0bff26ffff02ff36ffff04ff02ffff04ff07ffff04ffff0bff2aff2a80ff8080808080ffff0bff2aff8080808080ff02ffff03ffff07ff0580ffff01ff0bffff0102ffff02ff3effff04ff02ffff04ff09ff80808080ffff02ff3effff04ff02ffff04ff0dff8080808080ffff01ff0bffff0101ff058080ff0180ff018080ffff04ffff01a024e044101e57b3d8c908b8a38ad57848afd29d3eecc439dba45f4412df4954fdffff04ffff01a0a1485b353675381d6d93f428e64059f26a3911aefab09c3c2ea4af46da313f7bffff04ffff01a0eff07522495060c066f66f32acc2a77e3a3e737aca8baea4d1a64ea4cdc13da9ffff04ffff0183093a80ffff04ffff01a074556bdb1f184e19ed982fae921fea02e3b226110124cc87679b656138ec2c04ff01808080808080", "solution": "0xffa0afab0e5a027d7becdf94677d55f9f3812e959c6b484132edb67a12f1cb70d82fffa05cbe698351c3f79dd2a4223f5eaa504b4fe3edc42daa66ad6f69f96a6aca18c380" } ``` -------------------------------- ### Accept Offer by File Path Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/crash-course/cats-offers-nfts.md Use this command to accept an offer that has been downloaded to your local machine. Ensure the path to the offer file is correct. ```bash chia wallet take_offer path ``` -------------------------------- ### Clean Up Failed Chia Build Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/install-and-setup/installation.md Remove the chia-blockchain directory and its contents to start a fresh installation after a failed build. ```bash rm -rf chia-blockchain ``` -------------------------------- ### Start Chia Simulator Source: https://github.com/chia-network/chia-docs/blob/main/docs/guides/simulator-user-guide.md Execute this command to start the simulator. This is equivalent to 'chia start node' for testnet and mainnet. ```bash chia dev sim start ``` -------------------------------- ### Get Timestamp for Block Height Source: https://github.com/chia-network/chia-docs/blob/main/docs/reference-client/rpc-reference/wallet-rpc.md Retrieves the timestamp for a specific block height. This example uses testnet data. ```bash chia rpc wallet get_timestamp_for_height '{"height": 2000000}' ```