# set\_need\_confirm\_before\_send\_transaction

设置在通过该账户发送每一笔交易之前是否需要控制台回车确认。开启后会在每笔交易即将发送前暂停流程，在控制台询问是否发送该笔交易。

## 方法定义

```python
def set_need_confirm_before_send_transaction(self, need_confirm: bool = True) -> None
```

## 参数说明

| 参数            | 类型   | 说明          |
| ------------- | ---- | ----------- |
| need\_confirm | bool | 是否需要控制台回车确认 |

## 返回值

无

## 示例代码

```python
# 开启发送交易前的确认
account.set_need_confirm_before_send_transaction(True)

# 关闭发送交易前的确认
account.set_need_confirm_before_send_transaction(False)
```


---

# 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://poseidon.seaeye.cn/evm/account/set_need_confirm_before_send_transaction.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.
