|
1 | 1 | import { Details, createMetadata } from "@doc"; |
2 | 2 |
|
3 | 3 | export const metadata = createMetadata({ |
4 | | - title: "GetBuyHistory | thirdweb .NET SDK", |
5 | | - description: "Get buy history, supports cursor and pagination.", |
| 4 | + title: "GetBuyHistory | thirdweb .NET SDK", |
| 5 | + description: "Get buy history, supports cursor and pagination.", |
6 | 6 | }); |
7 | 7 |
|
8 | 8 | # GetBuyHistory |
9 | 9 |
|
10 | | -Get buy history for a specific wallet that executed a [Buy With Crypto](/dotnet/pay/buywithcrypto) or [Buy With Fiat](/dotnet/pay/buywithfiat) swap, supports cursor and pagination. |
| 10 | +Obtén el historial de compras para una billetera específica que haya ejecutado un intercambio de [Buy With Crypto](/dotnet/pay/buywithcrypto) o [Buy With Fiat](/dotnet/pay/buywithfiat), con soporte para cursor y paginación. |
11 | 11 |
|
12 | | -## Usage |
| 12 | +## Uso |
13 | 13 |
|
14 | 14 | ```csharp |
15 | 15 | using Thirdweb.Pay; |
16 | 16 |
|
17 | 17 | var history = await ThirdwebPay.GetBuyHistory(client, walletAddress); |
18 | 18 | ``` |
19 | 19 |
|
20 | | -<Details summary="Configuration"> |
| 20 | +<Details summary="Configuración"> |
21 | 21 |
|
22 | | -#### Client (required) |
| 22 | +#### Cliente (requerido) |
23 | 23 |
|
24 | | -`ThirdwebClient`: The Thirdweb client instance. |
| 24 | +`ThirdwebClient`: La instancia del cliente de Thirdweb. |
25 | 25 |
|
26 | | -#### Wallet Address (required) |
| 26 | +#### Dirección de billetera (requerido) |
27 | 27 |
|
28 | | -`string`: The wallet address to get the swap history for. |
| 28 | +`string`: La dirección de la billetera para obtener el historial de intercambios. |
29 | 29 |
|
30 | | -#### Start Index (optional) |
| 30 | +#### Índice de inicio (opcional) |
31 | 31 |
|
32 | | -`int`: The start index of the swap history. |
| 32 | +`int`: El índice de inicio del historial de intercambios. |
33 | 33 |
|
34 | | -#### Count (optional) |
| 34 | +#### Cuenta (opcional) |
35 | 35 |
|
36 | | -`int`: The number of swaps to return. |
| 36 | +`int`: El número de intercambios para devolver. |
37 | 37 |
|
38 | | -#### Cursor (optional) |
| 38 | +#### Cursor (opcional) |
39 | 39 |
|
40 | | -`string`: The cursor to get the next page of swap history. (Optional) |
| 40 | +`string`: El cursor para obtener la siguiente página del historial de intercambios. (Opcional) |
41 | 41 |
|
42 | | -#### Page Size (optional) |
| 42 | +#### Tamaño de la página (opcional) |
43 | 43 |
|
44 | | -`int`: The page size of the swap history. (Optional) |
| 44 | +`int`: El tamaño de la página del historial de intercambios. (Opcional) |
45 | 45 |
|
46 | 46 | </Details> |
47 | 47 |
|
48 | | -<Details summary="Return Value"> |
| 48 | +<Details summary="Valor de retorno"> |
49 | 49 |
|
50 | | -### Return Value |
| 50 | +### Valor de retorno |
| 51 | + |
| 52 | +Un objeto `BuyHistoryResult` que contiene las siguientes propiedades: |
51 | 53 |
|
52 | | -A `BuyHistoryResult` object containing the following properties: |
53 | 54 |
|
54 | 55 | ```csharp |
55 | | -string WalletAddress; // The wallet address. |
56 | | -List<HistoryPage> Page; // The buy history page. |
57 | | -string NextCursor; // The next cursor. |
58 | | -int PageSize; // The page size. |
| 56 | +string WalletAddress; // La dirección de la billetera. |
| 57 | +List<HistoryPage> Page; // La página del historial de compras. |
| 58 | +string NextCursor; // El siguiente cursor. |
| 59 | +int PageSize; // El tamaño de la página. |
59 | 60 | ``` |
60 | 61 |
|
61 | | -The `HistoryPage` object contains the following properties: |
| 62 | +El objeto `HistoryPage` contiene las siguientes propiedades: |
62 | 63 |
|
63 | 64 | ```csharp |
64 | | -BuyWithCryptoStatusResult BuyWithCryptoStatus; // Swap status for Buy With Crypto transactions if any. |
65 | | -BuyWithFiatStatusResult BuyWithFiatStatus; // Swap status for Buy With Fiat transactions if any. |
| 65 | +BuyWithCryptoStatusResult BuyWithCryptoStatus; // Estado del intercambio para las transacciones de Buy With Crypto, si las hay. |
| 66 | +BuyWithFiatStatusResult BuyWithFiatStatus; // Estado del intercambio para las transacciones de Buy With Fiat, si las hay. |
66 | 67 | ``` |
67 | 68 |
|
68 | 69 | </Details> |
0 commit comments