# Using Directive

{% embed url="<https://docs.soliditylang.org/en/v0.8.26/grammar.html#a4.SolidityParser.usingDirective>" %}

{% hint style="warning" %}
Not inherited by child contracts. It must be imported and defined in every contract in which the "Using Directive" is used.
{% endhint %}

```solidity
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;

import {Address} from "@openzeppelin/contracts/utils/Address.sol";

contract UsingDirective {
    using Address for address payable;

    function sendETH(address _to) public payable {
        payable(address(_to)).sendValue(msg.value);
    }
}
```


---

# 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.eridian.xyz/ethereum-dev/solidity-notes/using-directive.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.
