{"id":15851,"date":"2022-08-19T08:00:00","date_gmt":"2022-08-19T08:00:00","guid":{"rendered":"https:\/\/hederav2stg.wpenginepowered.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/"},"modified":"2025-12-10T05:10:13","modified_gmt":"2025-12-10T05:10:13","slug":"how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity","status":"publish","type":"post","link":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/","title":{"rendered":"How to Send and Receive HBAR Using Smart Contracts \u2013 Part 2: Using Solidity"},"content":{"rendered":"<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>Smart contracts on Hedera can hold and exchange value in the form of HBAR, Hedera Token Service (HTS) tokens, and even ERC tokens. This is fundamental for building decentralized applications that rely on contracts in areas like DeFi, ESG, NFT marketplaces, DAOs, and more.<\/p>\n<p>Let\u2019s learn how to send and receive HBAR to and from Hedera contracts. <a href=\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-1-using-the-sdk\" target=\"_blank\">Part 1<\/a> of the series focused on using the Hedera SDKs. This second part goes over transferring HBAR to and from contracts using Solidity. <\/p>\n<p>Follow these main 3 steps:<\/p>\n<ol>\n<li>Create the Hedera accounts needed for testing and deploy a smart contract on the Testnet<\/li>\n<li>Move HBAR <u>to<\/u> the contract using <strong><em>fallback<\/em><\/strong><br \/>\nand <strong><em>receive<\/em><\/strong> functions, a <strong><em>payable<\/em><\/strong> function, and the <strong>SDK<\/strong><\/li>\n<li>Move HBAR <u>from<\/u> the contract to Alice using the <strong><em>transfer<\/em><\/strong>, <strong><em>send<\/em><\/strong>, and <strong><em>call<\/em><\/strong> methods<\/li>\n<\/ol>\n<p>Throughout the tutorial, you also learn how to check the HBAR balance of the contract by calling a function of the contract itself and by using the SDK query. The last step is to review the transaction history for the contract and the operator account in a mirror node explorer, like <a href=\"https:\/\/hashscan.io\/#\/mainnet\/dashboard\" target=\"_blank\">HashScan<\/a>. <\/p>\n<h4 class=\"color-ultraviolet\"><strong>Try It Yourself<\/strong><\/h4>\n<ul>\n<li>Get a <a href=\"https:\/\/portal.hedera.com\/register\" target=\"_blank\">Hedera testnet account<\/a><\/li>\n<li>Use <a href=\"https:\/\/codesandbox.io\/s\/hedera-example-transfer-hbar2contracts-solidity-swsfmn?file=\/index.js\" target=\"_blank\">this Codesandbox<\/a> to try the example\n<ul>\n<li>Fork the sandbox<\/li>\n<li>Remember to provide your testnet account credentials in the .env file<\/li>\n<li>Open a new terminal to execute index.js<\/li>\n<\/ul>\n<\/li>\n<li>Get the <a href=\"https:\/\/github.com\/ed-marquez\/hedera-smart-contracts\/tree\/examples\/examples\/transfer-hbar2contracts-solidity\" target=\"_blank\">example code from GitHub<\/a><\/li>\n<\/ul>\n<h4 class=\"color-ultraviolet\"><strong>1. Create Accounts and Deploy a Contract<\/strong><\/h4>\n<p>This example involves 3 Hedera accounts, 1 contract, and 1 Hedera Token Service (HTS) token. The Operator account (<a href=\"https:\/\/portal.hedera.com\/register\" target=\"_blank\">your Testnet account credentials<\/a>) is used to build the Hedera client to submit transactions to the Hedera network \u2013 that\u2019s the first account. The Treasury and Alice are new accounts (created by the Operator) to represent additional parties in your test \u2013 those are the second and third accounts respectively. <\/p>\n<p>A portion of the application file (<strong><em>index.js<\/em><\/strong>) and the entire Solidity contract (<strong><em>hbarToAndFromContract.sol<\/em><\/strong>) are<br \/>\nshown in the tabs below.<\/p>\n<p>The Solidity file has functions for getting HBAR to the contract (<strong><em>receive<\/em><\/strong>, <strong><em>fallback<\/em><\/strong>, <strong><em>tokenAssociate<\/em><\/strong>), getting HBAR from the contract (<strong><em>transferHbar<\/em><\/strong>, <strong><em>sendHbar<\/em><\/strong>, <strong><em>callHbar<\/em><\/strong>), and checking the HBAR balance of the contract (<strong><em>getBalance<\/em><\/strong>). <\/p>\n<p>This portion of <strong><em>index.js<\/em><\/strong> configures and creates the accounts, deploys the contract, and stores the HTS token ID. The functions <strong><em>accountCreatorFcn<\/em><\/strong> and <strong><em>contractDeployFcn<\/em><\/strong> create new accounts and deploy the contract to the network, respectively. These functions simplify the account creation and contract deployment process and are reusable in case you need them in the future. This modular approach is used throughout the tutorial.<\/p>\n<ul><\/ul>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>These helper functions in <strong><em>index.js<\/em><\/strong> use the <strong><a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/sdks\/cryptocurrency\/create-an-account\" target=\"_blank\">AccountCreateTransaction()<\/a><\/strong><br \/>\nand <strong><a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/sdks\/smart-contracts\/create-a-smart-contract#contractcreateflow\" target=\"_blank\">ContractCreateFlow()<\/a><\/strong><br \/>\nclasses of the Hedera SDK. <strong><a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/sdks\/smart-contracts\/create-a-smart-contract#contractcreateflow\" target=\"_blank\">ContractCreateFlow()<\/a><\/strong><br \/>\nstores the bytecode and deploys the contract on Hedera. This single call handles for you the operations <strong><a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/sdks\/file-storage\/create-a-file\" target=\"_blank\">FileCreateTransaction()<\/a><\/strong>, <strong><a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/sdks\/file-storage\/append-to-a-file\" target=\"_blank\">FileAppendTransaction()<\/a><\/strong>, and <strong><a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/sdks\/smart-contracts\/create-a-smart-contract#contractcreatetransaction\" target=\"_blank\">ContractCreateTransaction()<\/a><\/strong>. <\/p>\n<p><strong>Helper Functions:<\/strong><\/p>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong>Console Output:<\/strong><\/p>\n<ul>\n<li><em>Creating accounts&#8230;<\/em><\/li>\n<li><em>Created Treasury account 0.0.47938602 that has a balance of 100 \u210f<\/em><\/li>\n<li><em>Created Alice&#8217;s account 0.0.47938603 that has a balance of 100 \u210f<\/em><\/li>\n<\/ul>\n<ul>\n<li><em>Deploying contract&#8230;<\/em><\/li>\n<li><em>The smart contract ID is: 0.0.47938605<\/em><\/li>\n<li><em>The smart contract ID in Solidity format is: 0000000000000000000000000000000002db7c2d<\/em><\/li>\n<\/ul>\n<ul>\n<li><em>Token ID (for association with contract later): 0.0.47931765<\/em><\/li>\n<\/ul>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\"><strong>2. Getting HBAR to the Contract<\/strong><\/h4>\n<h4 class=\"color-ultraviolet\"><strong>2.1 The <em>receive<\/em>\/<em>fallback<\/em> Functions<\/strong><\/h4>\n<p>In this scenario, you (Operator) transfer 10 HBAR to the contract by triggering either the <strong><em>receive<\/em><\/strong> or <strong><em>fallback<\/em><\/strong> functions of the contract. As described in this <a href=\"https:\/\/solidity-by-example.org\/sending-ether\/\" target=\"_blank\">Solidity by Example<\/a> page, the <strong><em>receive<\/em><\/strong> function is called when <strong><em>msg.data<\/em><\/strong><br \/>\nis empty, otherwise the <strong><em>fallback<\/em><\/strong> function is called. <\/p>\n<p>In this case, the helper function <strong><em>contractExecuteNoFcn<\/em><\/strong> pays HBAR to the contract by using <strong><a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/sdks\/smart-contracts\/call-a-smart-contract-function\" target=\"_blank\">ContractExecuteTransaction()<\/a><\/strong><br \/>\nand specifying a <strong><em>.setPayableAmount()<\/em><\/strong> <u>without calling any specific contract function<\/u> \u2013 thus triggering <strong><em>fallback<\/em><\/strong>. Note from the Solidity code that <strong><em>receive<\/em><\/strong> and <strong><em>fallback<\/em><\/strong> are<em> <strong>external<\/strong><\/em><br \/>\nand <strong><em>payable<\/em><\/strong> functions.<\/p>\n<p>The helper function <strong><em>contractCallQueryFcn\u00a0<\/em><\/strong>checks the HBAR balance of the contract by calling the <strong><em>getBalance\u00a0<\/em><\/strong>function of the contract \u2013 this call is done using <strong><a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/sdks\/smart-contracts\/call-a-smart-contract-function-1\" target=\"_blank\">ContractCallQuery()<\/a><\/strong>.<\/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\">\tconsole.log(`\n====================================================\nGETTING HBAR TO THE CONTRACT\n====================================================`);\n\n\t\/\/ Transfer HBAR to the contract using .setPayableAmount WITHOUT specifying a function (fallback\/receive triggered)\n\tlet payableAmt = 10;\n\tconsole.log(`- Caller (Operator) PAYS ${payableAmt} \u210f to contract (fallback\/receive)...`);\n\tconst toContractRx = await contractExecuteNoFcn(contractId, gasLimit, payableAmt);\n\n\t\/\/ Get contract HBAR balance by calling the getBalance function in the contract AND\/OR using ContractInfoQuery in the SDK\n\tawait contractCallQueryFcn(contractId, gasLimit, \"getBalance\"); \/\/ Outputs the contract balance in the console\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong>Helper Functions:<\/strong><\/p>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong>Console Output:<\/strong><\/p>\n<p><em>====================================================<\/em><\/p>\n<p><em>GETTING HBAR TO THE CONTRACT<\/em><\/p>\n<p><em>====================================================<\/em><\/p>\n<ul>\n<li><em>Caller (Operator) PAYS 10 \u210f to contract (fallback\/receive)&#8230;<\/em><\/li>\n<li><em>Contract balance (getBalance fcn): 10 \u210f<\/em><\/li>\n<\/ul>\n<h4 class=\"color-ultraviolet\"><strong>2.2 Executing a Payable Function<\/strong><\/h4>\n<p>Now, you (Operator) transfer 21 HBAR to the contract by calling a specific contract function (<strong><em>tokenAssociate<\/em><\/strong>) that is <strong><em>payable<\/em><\/strong> using the <strong><a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/sdks\/smart-contracts\/call-a-smart-contract-function\" target=\"_blank\">ContractExecuteTransaction()<\/a><br \/>\n<\/strong>class and specifying a <strong><em>.setPayableAmount()<\/em><\/strong>. This is done with the helper function <strong><em>contractExecuteFcn<\/em><\/strong>. <\/p>\n<p>In this scenario, <strong><em>contractParamsBuilderFcn<\/em><\/strong> is used to build the parameters that will be passed to the contract function \u2013 that is, the contract and token IDs which are then converted to Solidity addresses.<\/p>\n<p>From the Solidity code, note that the <strong><em>tokenAssociate\u00a0<\/em><\/strong>function associates the contract to the HTS token from the first step, and requires more than 20 HBAR to execute (just for fun).<\/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\">\t\/\/ Transfer HBAR to the contract using .setPayableAmount SPECIFYING a contract function (tokenAssociate)\n\tpayableAmt = 21;\n\tgasLimit = 800000;\n\tconsole.log(`n- Caller (Operator) PAYS ${payableAmt} \u210f to contract (payable function)...`);\n\tconst Params = await contractParamsBuilderFcn(contractId, [], 2, tokenId);\n\tconst Rx = await contractExecuteFcn(contractId, gasLimit, \"tokenAssociate\", Params, payableAmt);\n\n\tgasLimit = 50000;\n\tawait contractCallQueryFcn(contractId, gasLimit, \"getBalance\"); \/\/ Outputs the contract balance in the console\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong>Console Output:<\/strong><\/p>\n<ul>\n<li><em>Caller (Operator) PAYS 21 \u210f to contract (payable function)&#8230;<\/em><\/li>\n<li><em>Contract balance (getBalance fcn): 31 \u210f<\/em><\/li>\n<\/ul>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\"><strong>2.3 Using <em>TransferTransaction<\/em> in the SDK<\/strong><\/h4>\n<p>Lastly in this scenario, the Treasury transfers 30 HBAR to the contract using <strong><a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/sdks\/cryptocurrency\/transfer-cryptocurrency\" target=\"_blank\">TransferTransaction()<\/a>. <\/strong>This is done with the helper function <strong><em>hbar2ContractSdkFcn<\/em><\/strong>. This scenario is just a quick recap and reminder of <a href=\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-1-using-the-sdk\" target=\"_blank\">Part 1 of the series<\/a>, so be sure to give that a read for more details.<\/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\">\t\/\/ Transfer HBAR from the Treasury to the contract deployed using the SDK\n\tlet moveAmt = 30;\n\tconst transferSdkRx = await hbar2ContractSdkFcn(treasuryId, contractId, moveAmt, treasuryKey);\n\tconsole.log(`n- ${moveAmt} \u210f from Treasury to contract (via SDK): ${transferSdkRx.status}`);\n\n\tawait contractCallQueryFcn(contractId, gasLimit, \"getBalance\"); \/\/ Outputs the contract balance in the console\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong>Helper Functions:<\/strong><\/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\">async function hbar2ContractSdkFcn(sender, receiver, amount, pKey) {\n    const transferTx = new TransferTransaction()\n        .addHbarTransfer(sender, -amount)\n        .addHbarTransfer(receiver, amount)\n        .freezeWith(client);\n    const transferSign = await transferTx.sign(pKey);\n    const transferSubmit = await transferSign.execute(client);\n    const transferRx = await transferSubmit.getReceipt(client);\n    return transferRx;\n}\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong>Console Output:<\/strong><\/p>\n<ul>\n<li><em>30 \u210f from Treasury to contract (via SDK): SUCCESS<\/em><\/li>\n<li><em>Contract balance (getBalance fcn): 61 \u210f<\/em><\/li>\n<\/ul>\n<h4 class=\"color-ultraviolet\"><strong>3. Getting HBAR from the Contract<\/strong><\/h4>\n<p>In this section the contract transfers HBAR to Alice using three different methods: <strong><em>transfer<\/em><\/strong>, <strong><em>send<\/em><\/strong>, <strong><em>call<\/em><\/strong>. Each transfer is of 20 HBAR, so by the end the contract should have 1 HBAR left in its balance.<\/p>\n<p>This tutorial focuses on implementation. For additional background and details of these Solidity methods, check out <a href=\"https:\/\/solidity-by-example.org\/sending-ether\/\" target=\"_blank\">Solidity by Example<\/a> and <a href=\"https:\/\/medium.com\/daox\/three-methods-to-transfer-funds-in-ethereum-by-means-of-solidity-5719944ed6e9\" target=\"_blank\">this external article<\/a> \u2013 just remember that on Hedera, the native cryptocurrency transacted is HBAR, not ETH. One thing worth noting from those resources is that <strong><em>call<\/em><\/strong> is currently the recommended method to use.<\/p>\n<h4 class=\"color-ultraviolet\"><strong>3.1 <\/strong><strong>Contract <u>Transfers<\/u> HBAR to Alice<\/strong><\/h4>\n<p>The helper function <strong><em>contractExecuteFcn<\/em><\/strong> executes the <strong><em>transferHbar\u00a0<\/em><\/strong>function of the contract. The helper function <strong><em>contractParamsBuilderFcn\u00a0<\/em><\/strong>now builds the contract function parameters from the receiver ID (Alice\u2019s) and the amount of HBAR to be sent. Also note from the previous section that the contract function is executed with a <strong><em>gasLimit<\/em><\/strong> of only 50,000 gas.<\/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\">\tconsole.log(`\n====================================================\nGETTING HBAR FROM THE CONTRACT\n====================================================`);\n\n\tpayableAmt = 0;\n\tmoveAmt = 20;\n\n\tconsole.log(`- Contract TRANSFERS ${moveAmt} \u210f to Alice...`);\n\tconst tParams = await contractParamsBuilderFcn(aliceId, moveAmt, 3, []);\n\tconst tRx = await contractExecuteFcn(contractId, gasLimit, \"transferHbar\", tParams, payableAmt);\n\n\t\/\/ Get contract HBAR balance by calling the getBalance function in the contract AND\/OR using ContractInfoQuery in the SDK\n\tawait showContractBalanceFcn(contractId); \/\/ Outputs the contract balance in the console\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong>Helper Functions:<\/strong><\/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\">async function showContractBalanceFcn(cId) {\n    const info = await new ContractInfoQuery().setContractId(cId).execute(client);\n    console.log(`- Contract balance (ContractInfoQuery SDK): ${info.balance.toString()}`);\n}\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong>Console Output:<\/strong><\/p>\n<p><em>====================================================<\/em><\/p>\n<p><em>GETTING HBAR FROM THE CONTRACT<\/em><\/p>\n<p><em>====================================================<\/em><\/p>\n<ul>\n<li><em>Contract TRANSFERS 20 \u210f to Alice&#8230;<\/em><\/li>\n<li><em>Contract balance (ContractInfoQuery SDK): 41 \u210f<\/em><\/li>\n<\/ul>\n<h4 class=\"color-ultraviolet\"><strong>3.2 <\/strong><strong>Contract <u>Sends<\/u> HBAR to Alice<\/strong><\/h4>\n<p>The same helper function from before now executes the <strong><em>sendHbar<\/em><\/strong> function of the contract.<\/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\">\tconsole.log(`n- Contract SENDS ${moveAmt} \u210f to Alice...`);\n\tconst sParams = await contractParamsBuilderFcn(aliceId, moveAmt, 3, []);\n\tconst sRx = await contractExecuteFcn(contractId, gasLimit, \"sendHbar\", sParams, payableAmt);\n\n\tawait showContractBalanceFcn(contractId); \/\/ Outputs the contract balance in the console\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong>Console Output:<\/strong><\/p>\n<ul>\n<li><em>Contract SENDS 20 \u210f to Alice&#8230;<\/em><\/li>\n<li><em>Contract balance (ContractInfoQuery SDK): 21 \u210f<\/em><\/li>\n<\/ul>\n<h4 class=\"color-ultraviolet\"><strong><strong>3.3. Contract <u>Calls<\/u> HBAR to Alice<\/strong><br \/><\/strong><\/h4>\n<p>Just like above, the helper function <strong><em>contractExecuteFcn<\/em><\/strong><br \/>\nexecutes the <strong><em>sendHbar<\/em><\/strong> function of the contract. <\/p>\n<p>Examine the transaction history for the contract and the operator in the mirror node explorer, <a href=\"https:\/\/hashscan.io\/#\/mainnet\/dashboard\" target=\"_blank\">HashScan<\/a>. You can also obtain additional information of interest using the <a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/rest-api\" target=\"_blank\">mirror node REST API<\/a>. Additional context for that API is provided in <a href=\"https:\/\/hedera.com\/blog\/how-to-look-up-transaction-history-on-hedera-using-mirror-nodes-back-to-the-basics\" target=\"_blank\">this blog post<\/a>.<\/p>\n<p>The last step is to <strong><a href=\"https:\/\/hedera.com\/discord\" target=\"_blank\">join the Hedera Developer Discord!<\/a><\/strong><\/p>\n<p><strong><br \/><\/strong><\/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\">\tconsole.log(`n- Contract CALLS ${moveAmt} \u210f to Alice...`);\n\tconst cParams = await contractParamsBuilderFcn(aliceId, moveAmt, 3, []);\n\tconst cRx = await contractExecuteFcn(contractId, gasLimit, \"callHbar\", cParams, payableAmt);\n\n\tawait showContractBalanceFcn(contractId); \/\/ Outputs the contract balance in the console\n\n\tconsole.log(`n- SEE THE TRANSACTION HISTORY IN HASHSCAN (FOR CONTRACT AND OPERATOR): \nhttps:\/\/hashscan.io\/#\/testnet\/contract\/${contractId}\nhttps:\/\/hashscan.io\/#\/testnet\/account\/${operatorId}`);\n\n\tconsole.log(`\n====================================================\n THE END - NOW JOIN: https:\/\/hedera.com\/discord\n====================================================n`);\n}\n<\/code><\/pre>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p><strong>Console Output:<\/strong><\/p>\n<ul>\n<li><em>Contract CALLS 20 \u210f to Alice&#8230;<\/em><\/li>\n<li><em>Contract balance (ContractInfoQuery SDK): 1 \u210f<\/em><\/li>\n<li><em>SEE THE TRANSACTION HISTORY IN HASHSCAN (FOR CONTRACT AND OPERATOR):<\/em><\/li>\n<\/ul>\n<p><a href=\"https:\/\/hashscan.io\/#\/testnet\/contract\/0.0.47938605\" target=\"_blank\"><em>https:\/\/hashscan.io\/#\/testnet\/contract\/0.0.47938605<\/em><\/a><\/p>\n<p><a href=\"https:\/\/hashscan.io\/#\/testnet\/account\/0.0.2520793\" target=\"_blank\"><em>https:\/\/hashscan.io\/#\/testnet\/account\/0.0.2520793<\/em><\/a><\/p>\n<p><em>====================================================<\/em><\/p>\n<p><em>  THE END &#8211; NOW JOIN: <a href=\"https:\/\/hedera.com\/discord\">https:\/\/hedera.com\/discord<\/a><\/em><\/p>\n<p><em>====================================================<\/em><\/p>\n<h4 class=\"color-ultraviolet\"><strong>Summary<\/strong><\/h4>\n<p>If you run the entire example successfully, your console should look something like:<\/p>\n<ul><\/ul>\n<\/div>\n<figure class=\"blog-image mb-40\"><img decoding=\"async\" src=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-1_2022-08-19-160324_onge.png\" alt=\"\"\/><\/figure>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>Now you know how to send HBAR to and from a contract on Hedera using both the SDK and Solidity! <\/p>\n<p>This tutorial used the Hedera JavaScript SDK. However, you can try this with the other officially supported SDKs for Java and Go.<\/p>\n<h4 class=\"color-ultraviolet\"><strong>Continue Learning<\/strong><\/h4>\n<ul>\n<li><a href=\"https:\/\/portal.hedera.com\/register\">Open a Testnet Account<\/a><\/li>\n<li><a href=\"https:\/\/docs.hedera.com\/hedera\/tutorials\">Try Examples<\/a> and <a href=\"https:\/\/docs.hedera.com\/hedera\/tutorials\">Tutorials<\/a><\/li>\n<li><a href=\"http:\/\/hedera.com\/discord\">Join the Developer Discord<\/a><\/li>\n<li><a href=\"https:\/\/hedera.com\/learning\" target=\"_blank\">Read the Learning Center<\/a><\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to send and receive HBAR to and from Hedera contracts. Part 1 of the series focused on using the Hedera SDKs. This second part goes over transferring HBAR to and from contracts using Solidity.<\/p>\n","protected":false},"author":10,"featured_media":18033,"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-15851","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 Send and Receive HBAR Using Smart Contracts \u2013 Part 2: Using Solidity | 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-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Send and Receive HBAR Using Smart Contracts \u2013 Part 2: Using Solidity | Hedera\" \/>\n<meta property=\"og:description\" content=\"Learn how to send and receive HBAR to and from Hedera contracts. Part 1 of the series focused on using the Hedera SDKs. This second part goes over transferring HBAR to and from contracts using Solidity.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/\" \/>\n<meta property=\"og:site_name\" content=\"Hedera\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-19T08:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-10T05:10:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-scaled.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1440\" \/>\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-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/\"},\"author\":{\"name\":\"Hedera Team\",\"@id\":\"https:\/\/hedera.com\/#\/schema\/person\/2dc6146f9f20a44d3de58c834d52e9f4\"},\"headline\":\"How to Send and Receive HBAR Using Smart Contracts \u2013 Part 2: Using Solidity\",\"datePublished\":\"2022-08-19T08:00:00+00:00\",\"dateModified\":\"2025-12-10T05:10:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/\"},\"wordCount\":1209,\"publisher\":{\"@id\":\"https:\/\/hedera.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-scaled.png\",\"keywords\":[\"technical\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/\",\"url\":\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/\",\"name\":\"How to Send and Receive HBAR Using Smart Contracts \u2013 Part 2: Using Solidity | Hedera\",\"isPartOf\":{\"@id\":\"https:\/\/hedera.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-scaled.png\",\"datePublished\":\"2022-08-19T08:00:00+00:00\",\"dateModified\":\"2025-12-10T05:10:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#primaryimage\",\"url\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-scaled.png\",\"contentUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-scaled.png\",\"width\":2560,\"height\":1440},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hedera.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Send and Receive HBAR Using Smart Contracts \u2013 Part 2: Using Solidity\"}]},{\"@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 Send and Receive HBAR Using Smart Contracts \u2013 Part 2: Using Solidity | 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-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/","og_locale":"en_US","og_type":"article","og_title":"How to Send and Receive HBAR Using Smart Contracts \u2013 Part 2: Using Solidity | Hedera","og_description":"Learn how to send and receive HBAR to and from Hedera contracts. Part 1 of the series focused on using the Hedera SDKs. This second part goes over transferring HBAR to and from contracts using Solidity.","og_url":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/","og_site_name":"Hedera","article_published_time":"2022-08-19T08:00:00+00:00","article_modified_time":"2025-12-10T05:10:13+00:00","og_image":[{"width":2560,"height":1440,"url":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-scaled.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-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#article","isPartOf":{"@id":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/"},"author":{"name":"Hedera Team","@id":"https:\/\/hedera.com\/#\/schema\/person\/2dc6146f9f20a44d3de58c834d52e9f4"},"headline":"How to Send and Receive HBAR Using Smart Contracts \u2013 Part 2: Using Solidity","datePublished":"2022-08-19T08:00:00+00:00","dateModified":"2025-12-10T05:10:13+00:00","mainEntityOfPage":{"@id":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/"},"wordCount":1209,"publisher":{"@id":"https:\/\/hedera.com\/#organization"},"image":{"@id":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#primaryimage"},"thumbnailUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-scaled.png","keywords":["technical"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/","url":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/","name":"How to Send and Receive HBAR Using Smart Contracts \u2013 Part 2: Using Solidity | Hedera","isPartOf":{"@id":"https:\/\/hedera.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#primaryimage"},"image":{"@id":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#primaryimage"},"thumbnailUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-scaled.png","datePublished":"2022-08-19T08:00:00+00:00","dateModified":"2025-12-10T05:10:13+00:00","breadcrumb":{"@id":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#primaryimage","url":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-scaled.png","contentUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-scaled.png","width":2560,"height":1440},{"@type":"BreadcrumbList","@id":"https:\/\/hedera.com\/blog\/how-to-send-and-receive-hbar-using-smart-contracts-part-2-solidity\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hedera.com\/"},{"@type":"ListItem","position":2,"name":"How to Send and Receive HBAR Using Smart Contracts \u2013 Part 2: Using Solidity"}]},{"@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\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-600x400.png","featured_image_src_square":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/2022-How-to-Send-and-Receive-HBAR-Using-Smart-Contracts-2-Image-0-Thumbnail-4-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\/15851","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=15851"}],"version-history":[{"count":0,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/posts\/15851\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/media\/18033"}],"wp:attachment":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/media?parent=15851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/categories?post=15851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/tags?post=15851"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/ppma_author?post=15851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}