# 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;   `}`

`}`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bahamut.io/building-on-bahamut/deploy-smart-contracts/using-remix/writing-a-smart-contract.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
