# Buy

**Event signature:**

```solidity
event Buy(address _nftAddress, uint256[] _tokenIds, address _msgSender, address[] beneficiaries);
```

**Event parameters:**

| Parameter Type | Parameter Name | Parameter Description                          |
| -------------- | -------------- | ---------------------------------------------- |
| address        | \_nftAddress   | The NFT address of the collection being bought |
| uint256\[]     | \_tokenIds     | The token Ids of the collections being bought  |
| address        | \_msgSender    | The wallet of the user performing the purchase |
| address\[]     | beneficiaries  | The addresses of the users selling those NFTs  |


---

# 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://dg-market.gitbook.io/dg-live/developer-resources/smart-contract-reference/events/buy.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.
