# Develop

Tonomy  smart contracts are written in **C++** using the **CDT** compiler toolkit.

Example (Basic Token Transfer):

{% code title="\<token.cpp>" %}

```cpp
#include <eosio/asset.hpp>
#include <eosio/print.hpp>

using namespace eosio;

class [[eosio::contract("mycontract")]] mycontract : public contract {
public:
    using contract::contract;

    [[eosio::action]]
    void transfer(const name& from, const name& to, const asset& quantity, const std::string& memo) {
        eosio::require_auth({from, get_self()});
        eosio::print("Transfer from ", from, " to ", to, " amount ", quantity);
    }
};
```

{% endcode %}

See the [Antelope Smart Contract developer documentation](https://docs.antelope.io/docs/latest/getting-started/smart-contract-development/) to finish writing your smart contract.


---

# 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.tonomy.io/build-web4-apps/usage/smart-contracts/develop.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.
