{"id":15790,"date":"2023-01-04T19:38:00","date_gmt":"2023-01-04T19:38:00","guid":{"rendered":"https:\/\/hederav2stg.wpenginepowered.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/"},"modified":"2025-12-08T18:48:56","modified_gmt":"2025-12-08T18:48:56","slug":"how-to-set-up-foundry-to-test-smart-contracts-on-hedera","status":"publish","type":"post","link":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/","title":{"rendered":"How to Set Up Foundry to Test Smart Contracts on Hedera"},"content":{"rendered":"<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>Foundry provides tools to developers who are developing smart contracts. One of the 3 main components of Foundry is Forge: Foundry\u2019s testing framework. Tests are written in Solidity and are easily run with the forge test command. This tutorial will dive into configuring Foundry with Hedera to use Forge in order to write and run tests for smart contracts.<\/p>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong><em>Note:\u00a0<a href=\"https:\/\/swirldslabs.com\/hashio\/\" target=\"_blank\">Hashio<\/a>,\u00a0<\/em><\/strong><strong>the SwirldsLabs hosted version of the JSON-RPC Relay<\/strong><strong><em>, is in beta. If issues are encountered while using Foundry and Hashio, please create an issue in the JSON-RPC Relay GitHub <\/em><a href=\"https:\/\/github.com\/hashgraph\/hedera-json-rpc-relay\"><em>repository<\/em><\/a><em>.<\/em><\/strong><\/p>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">What we will do:<\/h4>\n<ul>\n<li>Create a new Hedera project with the following directory structure<\/li>\n<\/ul>\n<ul><\/ul>\n<ul><\/ul>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">.\n\u251c\u2500\u2500 cache\n\u251c\u2500\u2500 contracts\n\u251c\u2500\u2500 index.ts\n\u251c\u2500\u2500 test\n\u2514\u2500\u2500 package.json\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<ul>\n<li>Create a sample smart contract<\/li>\n<li>Create a sample Foundry project<\/li>\n<li>Write Unit tests in solidity<\/li>\n<li>Build and run the tests<\/li>\n<li>Deploy the smart contract using the Hashgraph SDK<\/li>\n<\/ul>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>The complete example can be found on\u00a0GitHub\u00a0<a href=\"https:\/\/github.com\/a-ridley\/hedera-smart-contract-testing-with-foundry\">here<\/a>.<\/p>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 1: Create a Hedera project and install the Hashgraph JS SDK<\/h4>\n<p>Open your terminal and create a directory called my-hedera-project.<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">mkdir my-hedera-project && cd my-hedera-project\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>Initialize a node project and accept all defaults<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">npm install --save @hashgraph\/sdk\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>Create your .env file and fill the contents with your account Id and private key. They will be used to create your Hedera client.<\/p>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Need a Testnet Account?<\/h4>\n<p>Head over to <a href=\"https:\/\/portal.hedera.com\/register\" target=\"_blank\">portal.hedera.com<\/a> to create a testnet account and receive 10,000 test HBAR every 24 hours!<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">\nOPERATOR_ACCOUNT_ID=<account id>\nOPERATOR_PRIVATE_KEY=<private key>\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong>Note: Never share your private key with anyone or post it anywhere. Add a .gitingore file with an entry for your .env file. This will ensure you don\u2019t accidentally push your credentials to your repository.<\/strong><\/p>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>Create a file named index.ts and create your Hedera client<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">import { Client, AccountId, PrivateKey, Hbar, TokenId, ContractId } from \"@hashgraph\/sdk\";\nimport fs from \"fs\";\nimport dotenv from \"dotenv\";\nimport { deployContract } from \".\/services\/hederaSmatContractService\";\n \ndotenv.config();\n\/\/ create your client\nconst accountIdString = process.env.OPERATOR_ACCOUNT_ID;\nconst privateKeyString = process.env.OPERATOR_PRIVATE_KEY;\n\nif (accountIdString === undefined || privateKeyString === undefined ) { throw new Error('account id and private key in env file are empty')}\n\nconst operatorAccountId = AccountId.fromString(accountIdString);\nconst address = operatorAccountId.toSolidityAddress();\nconst operatorPrivateKey = PrivateKey.fromString(privateKeyString);\n \nconst client = Client.forTestnet().setOperator(operatorAccountId, operatorPrivateKey);\nclient.setDefaultMaxTransactionFee(new Hbar(100));\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>In the root directory, create two new empty folders: cache and test. Inside the cache folder, create the subfolder forge-cache. Inside the test folder, create a subfolder called foundry. Your Hedera project\u00a0directory structure should look similar to this:<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">.\n\u251c\u2500\u2500 cache\n      \u251c\u2500\u2500forge-cache\n\u251c\u2500\u2500 contracts\n\u251c\u2500\u2500 test\n\u251c\u2500\u2500foundry\n\u251c\u2500\u2500 .env\n\u251c\u2500\u2500 .gitignore\n\u251c\u2500\u2500 index.ts\n\u251c\u2500\u2500 package-lock.json\n\u251c\u2500\u2500 package.json\n\u2514\u2500\u2500 tsconfig.json\n\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 2: Install Foundry by visiting their installation <a href=\"https:\/\/book.getfoundry.sh\/getting-started\/installation\">guide<\/a>.<\/h4>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 3. Create a sample Foundry Project<\/h4>\n<p dir=\"ltr\">Open a new terminal window and Create a sample Foundry project by running the following command in the new terminal:<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">forge init <project-name>\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>Your foundry\u00a0project will have the\u00a0following directory structure<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">.\n\u251c\u2500\u2500 lib\n\u251c\u2500\u2500 script\n\u251c\u2500\u2500 src\n\u2514\u2500\u2500 test\n\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 4: Copy the lib\/forge-std folder from the sample foundry project into your Hedera Project<\/h4>\n<p>Foundry manages dependencies using git submodules by default. Hedera manages dependencies through npm modules. The default sample project comes with one dependency installed: Forge Standard Library. We need to get that over to our Hedera project. Copy the lib\/forge folder from the sample Foundry project and put it in your Hedera project. Your Hedera project\u00a0directory structure will look like this:<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">.\n\u251c\u2500\u2500 cache\n      \u251c\u2500\u2500forge-cache\n\u251c\u2500\u2500 contracts\n\u251c\u2500\u2500 lib\n\u251c\u2500\u2500 test\n\u251c\u2500\u2500foundry\n\u251c\u2500\u2500 .env\n\u251c\u2500\u2500 .gitignore\n\u251c\u2500\u2500 index.ts\n\u251c\u2500\u2500 package-lock.json\n\u251c\u2500\u2500 package.json\n\u2514\u2500\u2500 tsconfig.json\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 5: Configure Foundry in your Hedera project<\/h4>\n<p>Foundry\u2019s default directory for contracts is src\/, but we will need it to map to contracts. Tests will map to our test\/foundry path, and the cache_path will map to our cache\/forge-cache directory.<\/p>\n<p dir=\"ltr\">Let\u2019s create a foundry configuration file to update how Foundry behaves. Create a file in the root of your Hedera project and name it foundry.toml and add the following lines:<\/p>\n<p><\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">[profile.default]\nsrc = 'contracts'\nout = 'out'\nlibs = ['node_modules', 'lib']\ntest = 'test\/foundry'\ncache_path = 'forge-cache'\n\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 6: Remap dependencies<\/h4>\n<p>Foundry manages dependencies using git submodules and has the ability to remap them to make them easier to import. Let\u2019s create a new file at the root directory called remappings.txt and write the following lines:<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">ds-test\/=lib\/forge-std\/lib\/ds-test\/src\/\nforge-std\/=lib\/forge-std\/src\/\n\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p dir=\"ltr\">And what these remappings translate to is:<\/p>\n<ul>\n<li dir=\"ltr\">\n<p dir=\"ltr\">To import from ds-test we write import \u201cds-test\/TodoList.sol\u201d;<\/p>\n<\/li>\n<li dir=\"ltr\">\n<p dir=\"ltr\">To import from forge-std we write import \u201cforge-std\/Contract.sol\u201d;<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 7. Create a smart contract<\/h4>\n<p>Create a smart contract file named TodoList.sol under the <em>contracts<\/em> directory<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">\/\/ SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.13;\n\nstruct Todo {\n  uint id;\n  string description;\n  bool completed;\n}\n\ncontract TodoList {\n    \/\/ need to keep count of todos as we insert into map\n    uint256 public numberOfTodos = 0;\n\n  mapping(uint => Todo) public todos;\n\n  function createTodo(string memory description) public {\n    numberOfTodos++;\n    todos[numberOfTodos] = Todo(numberOfTodos, description, false);\n  }\n\n  function getTodoById(uint256 id) public view returns (Todo memory) {\n    return todos[id];\n  }\n\n  function toggleCompleted(uint _id) public {\n    Todo memory _todo = todos[_id];\n    _todo.completed = !_todo.completed;\n    todos[_id] = _todo;\n  }\n}\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 8. Create tests written in Solidity<\/h4>\n<p>Create a file named TodoList.t.sol under test\/foundry and write the following test:<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">\/\/ SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.13;\n\nimport \"forge-std\/Test.sol\";\nimport \"contracts\/TodoList.sol\";\n\ncontract TodoListTest is Test {\n    TodoList public todoList;\n    uint256 numberOfTodos;\n  \n    \/\/ Arrange everything you need to run your tests\n    function setUp() public {\n        todoList = new TodoList();\n    }\n\n    function test_CreateTodo() public {\n        \/\/ arrange\n        todoList.createTodo(\"Feed my dog\");\n\n        \/\/ act\n        numberOfTodos = todoList.numberOfTodos();\n\n        \/\/ assert\n        assertEq(numberOfTodos, 1);\n    }\n\n    function test_GetTodoById() public {\n        \/\/ arrange\n        todoList.createTodo(\"Pack my bags\");\n\n        \/\/ act\n        Todo memory todo = todoList.getTodoById(1);\n\n        \/\/ assert\n        assertEq(todo.description, \"Pack my bags\");\n    }\n\n    function test_ToggleCompleted() public {\n        \/\/ arrange\n        todoList.createTodo(\"Update my calendar\");\n\n        \/\/ act\n        todoList.toggleCompleted(1);\n\n        \/\/ assert\n        Todo memory todo = todoList.getTodoById(1);\n        assertEq(todo.completed, true);\n    }\n}\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 9. Build and run your tests<\/h4>\n<p>In your terminal, ensure you are in your forge project directory and\u00a0run the following command to build<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">forge build\n<\/code><\/pre>\n<\/div>\n<figure class=\"blog-image mb-40\"><img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/forge-build.png\" alt=\"\"\/><\/figure>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>To run your tests run the following command<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">forge test\n<\/code><\/pre>\n<\/div>\n<figure class=\"blog-image mb-40\"><img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/forge-test.png\" alt=\"\"\/><\/figure>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Deploy your Smart Contract<\/h4>\n<p>Step 1: Compile your smart contract using solc<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">solcjs --bin contracts\/TodoList.sol -o binaries \n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 2: Read the compiled bytecode<\/h4>\n<div>In your index.ts file import <em>fs <\/em>in order to read your smart contracts bytecode.<\/div>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">import fs from \"fs\";\nconst bytecode = fs.readFileSync(\"binaries\/contracts_ERC20FungibleToken_sol_ERC20FungibleToken.bin\");\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 3: Create a function to deploy your smart contract<\/h4>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">import { ContractCreateFlow, Client} from '@hashgraph\/sdk';\n \n\/*\n* Stores the bytecode and deploys the contract to the Hedera network.\n* Returns an array with the contractId and contract solidity address.\n*\n* Note: This single call handles what FileCreateTransaction(), FileAppendTransaction() and\n* ContractCreateTransaction() classes do.\n*\/\nexport const deployContract = async (client: Client, bytecode: string | Uint8Array, gasLimit: number) => {\n const contractCreateFlowTxn = new ContractCreateFlow()\n   .setBytecode(bytecode)\n   .setGas(gasLimit);\n \n console.log(`- Deploying smart contract to Hedera network`)\n const txnResponse = await contractCreateFlowTxn.execute(client);\n \n const txnReceipt = await txnResponse.getReceipt(client);\n const contractId = txnReceipt.contractId;\n if (contractId === null ) { throw new Error(\"Somehow contractId is null.\");}\n \n const contractSolidityAddress = contractId.toSolidityAddress();\n \n console.log(`- The smart contract Id is ${contractId}`);\n console.log(`- The smart contract Id in Solidity format is ${contractSolidityAddress}n`);\n \n return [contractId, contractSolidityAddress];\n}\n\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Step 4: Call your function that deploys your smart contract to the Hedera network<\/h4>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">const hederaFoundryExample = async () => {\n   \/\/ read the bytecode\n   const bytecode = fs.readFileSync(\"binaries\/contracts_Counter_sol_Counter.bin\");\n  \n   \/\/ Deploy contract\n   const gasLimit = 1000000;\n   const [contractId, contractSolidityAddress] = await deployContract(client, bytecode, gasLimit);\n}\nhederaFoundryExample();\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Forge Gas Reports<\/h4>\n<p>Forge has functionality built in to give you <a href=\"https:\/\/book.getfoundry.sh\/forge\/gas-reports\">gas reports<\/a> of your contracts. First, you must configure your foundry.toml to specify which contracts should generate a gas report.<\/p>\n<p>Add the below line to your\u00a0foundry.toml file<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">gas_reports = [\"TodoList\"]\ufeff\n<\/code><\/pre>\n<\/div>\n<figure class=\"blog-image mb-40\"><img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/toml-file.png\" alt=\"\"\/><\/figure>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>In order to generate a gas report run the following command in your vscode terminal.<\/p>\n<\/div>\n<div class=\"hedera-code-window\" style=\"background-image:url('https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg');padding:24px;border-radius:8px;margin:24px 0;\">\n<p>  <!-- Hidden image so WP All Import downloads this background image into Media Library --><br \/>\n  <img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/CodeSnippetBackground-scaled.jpg\" alt=\"code window background\" style=\"display:none;\" \/><\/p>\n<div class=\"code-window-header\">\n<div class=\"code-window-title\"><\/div>\n<div class=\"code-window-body\"><\/div>\n<\/p><\/div>\n<pre><code class=\"language-javascript\">forge test \u2013gas-report\n<\/code><\/pre>\n<\/div>\n<figure class=\"blog-image mb-40\"><img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/gas-report-first-article.png\" alt=\"\"\/><\/figure>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>Your output will show you an estimated gas average, median, and max for each contract function and total deployment cost and size.<\/p>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Summary<\/h4>\n<p>In this article, we have learned how to configure Foundry to work with a Hedera project to test our Smart Contracts using the forge framework. We also learned how to generate gas reports for our smart contracts.<\/p>\n<p>Happy Building!<\/p>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p dir=\"ltr\">Continue Learning:<\/p>\n<ul>\n<li>Create a <a href=\"https:\/\/portal.hedera.com\/register\">Hedera testnet account<\/a> and receive 10,000 test hbar every 24 hours!!<\/li>\n<li>Try <a href=\"https:\/\/docs.hedera.com\/hedera\/tutorials\">Examples<\/a> and <a href=\"https:\/\/docs.hedera.com\/hedera\/tutorials\">Tutorials<\/a><\/li>\n<li><a href=\"https:\/\/discord.com\/invite\/EC2GY8ueRk\">Join the Developer Discord<\/a><\/li>\n<li>Explore <a href=\"https:\/\/hedera.com\/learning\">The Hedera Learning Center<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The ability to write tests for Smart Contracts using solidity allows for more efficient testing leading to catching more bugs early on and providing security to your users. Learn how to set up Foundry on your Hedera project to start testing now!<\/p>\n","protected":false},"author":10,"featured_media":16899,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[1],"tags":[45],"ppma_author":[43],"class_list":["post-15790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-technical"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Set Up Foundry to Test Smart Contracts on Hedera | Hedera<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Up Foundry to Test Smart Contracts on Hedera | Hedera\" \/>\n<meta property=\"og:description\" content=\"The ability to write tests for Smart Contracts using solidity allows for more efficient testing leading to catching more bugs early on and providing security to your users. Learn how to set up Foundry on your Hedera project to start testing now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/\" \/>\n<meta property=\"og:site_name\" content=\"Hedera\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-04T19:38:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-08T18:48:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Hedera Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/\"},\"author\":{\"name\":\"Hedera Team\",\"@id\":\"https:\/\/hedera.com\/#\/schema\/person\/2dc6146f9f20a44d3de58c834d52e9f4\"},\"headline\":\"How to Set Up Foundry to Test Smart Contracts on Hedera\",\"datePublished\":\"2023-01-04T19:38:00+00:00\",\"dateModified\":\"2025-12-08T18:48:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/\"},\"wordCount\":841,\"publisher\":{\"@id\":\"https:\/\/hedera.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail.png\",\"keywords\":[\"technical\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/\",\"url\":\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/\",\"name\":\"How to Set Up Foundry to Test Smart Contracts on Hedera | Hedera\",\"isPartOf\":{\"@id\":\"https:\/\/hedera.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail.png\",\"datePublished\":\"2023-01-04T19:38:00+00:00\",\"dateModified\":\"2025-12-08T18:48:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#primaryimage\",\"url\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail.png\",\"contentUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail.png\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hedera.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Up Foundry to Test Smart Contracts on Hedera\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hedera.com\/#website\",\"url\":\"https:\/\/hedera.com\/\",\"name\":\"Hedera\",\"description\":\"Hello future\",\"publisher\":{\"@id\":\"https:\/\/hedera.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hedera.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hedera.com\/#organization\",\"name\":\"Hedera\",\"url\":\"https:\/\/hedera.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hedera.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png\",\"contentUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png\",\"width\":500,\"height\":375,\"caption\":\"Hedera\"},\"image\":{\"@id\":\"https:\/\/hedera.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Up Foundry to Test Smart Contracts on Hedera | Hedera","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Up Foundry to Test Smart Contracts on Hedera | Hedera","og_description":"The ability to write tests for Smart Contracts using solidity allows for more efficient testing leading to catching more bugs early on and providing security to your users. Learn how to set up Foundry on your Hedera project to start testing now!","og_url":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/","og_site_name":"Hedera","article_published_time":"2023-01-04T19:38:00+00:00","article_modified_time":"2025-12-08T18:48:56+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail.png","type":"image\/png"}],"author":"Hedera Team","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#article","isPartOf":{"@id":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/"},"author":{"name":"Hedera Team","@id":"https:\/\/hedera.com\/#\/schema\/person\/2dc6146f9f20a44d3de58c834d52e9f4"},"headline":"How to Set Up Foundry to Test Smart Contracts on Hedera","datePublished":"2023-01-04T19:38:00+00:00","dateModified":"2025-12-08T18:48:56+00:00","mainEntityOfPage":{"@id":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/"},"wordCount":841,"publisher":{"@id":"https:\/\/hedera.com\/#organization"},"image":{"@id":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#primaryimage"},"thumbnailUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail.png","keywords":["technical"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/","url":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/","name":"How to Set Up Foundry to Test Smart Contracts on Hedera | Hedera","isPartOf":{"@id":"https:\/\/hedera.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#primaryimage"},"image":{"@id":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#primaryimage"},"thumbnailUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail.png","datePublished":"2023-01-04T19:38:00+00:00","dateModified":"2025-12-08T18:48:56+00:00","breadcrumb":{"@id":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#primaryimage","url":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail.png","contentUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail.png","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/hedera.com\/blog\/how-to-set-up-foundry-to-test-smart-contracts-on-hedera\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hedera.com\/"},{"@type":"ListItem","position":2,"name":"How to Set Up Foundry to Test Smart Contracts on Hedera"}]},{"@type":"WebSite","@id":"https:\/\/hedera.com\/#website","url":"https:\/\/hedera.com\/","name":"Hedera","description":"Hello future","publisher":{"@id":"https:\/\/hedera.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hedera.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hedera.com\/#organization","name":"Hedera","url":"https:\/\/hedera.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hedera.com\/#\/schema\/logo\/image\/","url":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png","contentUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png","width":500,"height":375,"caption":"Hedera"},"image":{"@id":"https:\/\/hedera.com\/#\/schema\/logo\/image\/"}}]}},"featured_image_src":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail-600x400.png","featured_image_src_square":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/set-up-foundry-thumbnail-600x600.png","author_info":{"display_name":"Hedera Team","author_link":"https:\/\/hedera.com\/blog\/author\/hedera-team\/"},"authors":[{"term_id":43,"user_id":10,"is_guest":0,"slug":"hedera-team","display_name":"Hedera Team","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/7ed01931dc9498365746508c4ca49ed0507ef65e04e0b82ffe88c50ef9242b1d?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":""}],"_links":{"self":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/posts\/15790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/comments?post=15790"}],"version-history":[{"count":0,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/posts\/15790\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/media\/16899"}],"wp:attachment":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/media?parent=15790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/categories?post=15790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/tags?post=15790"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/ppma_author?post=15790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}