> For the complete documentation index, see [llms.txt](https://docs.bahamut.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bahamut.io/building-on-bahamut/deploy-smart-contracts/using-remix/writing-a-smart-contract.md).

# Writing a Smart Contract

// SPDX-License-Identifier: MIT

// Specifies that the source code is for a version

// of Solidity greater than 0.8.15

pragma solidity ^0.8.15;

`contract HelloWorld {`

&#x20;   `// A publicly accessible function that takes a string as a parameter`

&#x20;   `` // and echoes the `message` ``

&#x20;   `function echo(string memory message) public pure returns (string memory) {`

&#x20;       `return message;`

&#x20;   `}`

`}`
