> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# StellarWallet

<Warning>
  **You are viewing docs for the previous version of the Wallets SDK.** We recommend upgrading to V1.
  See the [updated version of this page](/sdk-reference/wallets/typescript/classes/StellarWallet) or the [V1 migration guide](/wallets/guides/migrate-to-v1).
</Warning>

Defined in: [packages/wallets/src/wallets/stellar.ts:15](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/stellar.ts#L15)

## Extends

* [`Wallet`](./Wallet)\<[`StellarChain`](../type-aliases/StellarChain)>

## Constructors

### new StellarWallet()

> **new StellarWallet**(`wallet`): `StellarWallet`

Defined in: [packages/wallets/src/wallets/stellar.ts:16](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/stellar.ts#L16)

#### Parameters

| Parameter | Type                               |
| --------- | ---------------------------------- |
| `wallet`  | [`Wallet`](./Wallet)\<`"stellar"`> |

#### Returns

`StellarWallet`

#### Overrides

[`Wallet`](./Wallet).[`constructor`](./Wallet#constructor)

## Properties

| Property                     | Type                             | Inherited from                                     | Defined in                                                                                                                                   |
| ---------------------------- | -------------------------------- | -------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| <a id="address" /> `address` | `string`                         | [`Wallet`](./Wallet).[`address`](./Wallet#address) | [packages/wallets/src/wallets/wallet.ts:62](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L62) |
| <a id="alias" /> `alias?`    | `string`                         | [`Wallet`](./Wallet).[`alias`](./Wallet#alias)     | [packages/wallets/src/wallets/wallet.ts:64](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L64) |
| <a id="chain" /> `chain`     | `"stellar"`                      | [`Wallet`](./Wallet).[`chain`](./Wallet#chain)     | [packages/wallets/src/wallets/wallet.ts:61](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L61) |
| <a id="owner" /> `owner?`    | `string`                         | [`Wallet`](./Wallet).[`owner`](./Wallet#owner)     | [packages/wallets/src/wallets/wallet.ts:63](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L63) |
| <a id="signer" /> `signer`   | [`Signer`](../interfaces/Signer) | [`Wallet`](./Wallet).[`signer`](./Wallet#signer)   | [packages/wallets/src/wallets/wallet.ts:65](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L65) |

## Methods

### addDelegatedSigner()

> **addDelegatedSigner**\<`T`>(`params`): `Promise`\<`T` *extends* `PrepareOnly`\<`true`> ? `object` : `void`>

Defined in: [packages/wallets/src/wallets/wallet.ts:465](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L465)

Add a delegated signer to the wallet

#### Type Parameters

| Type Parameter                                           | Default type |
| -------------------------------------------------------- | ------------ |
| `T` *extends* `AddDelegatedSignerOptions` \| `undefined` | `undefined`  |

#### Parameters

| Parameter         | Type                                                                                                                                                     |
| ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `params`          | \{ `options`: `T`; `signer`: `string` \| \{ `id`: `string`; `name`: `string`; `publicKey`: \{ `x`: `string`; `y`: `string`; }; `type`: `"passkey"`; }; } |
| `params.options`? | `T`                                                                                                                                                      |
| `params.signer`   | `string` \| \{ `id`: `string`; `name`: `string`; `publicKey`: \{ `x`: `string`; `y`: `string`; }; `type`: `"passkey"`; }                                 |

#### Returns

`Promise`\<`T` *extends* `PrepareOnly`\<`true`> ? `object` : `void`>

#### Inherited from

[`Wallet`](./Wallet).[`addDelegatedSigner`](./Wallet#adddelegatedsigner)

***

### approve()

> **approve**\<`T`>(`params`): `Promise`\<`ApproveResult`\<`T`>>

Defined in: [packages/wallets/src/wallets/wallet.ts:423](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L423)

Approve a transaction or signature

#### Type Parameters

| Type Parameter                |
| ----------------------------- |
| `T` *extends* `ApproveParams` |

#### Parameters

| Parameter | Type | Description    |
| --------- | ---- | -------------- |
| `params`  | `T`  | The parameters |

#### Returns

`Promise`\<`ApproveResult`\<`T`>>

The transaction or signature

#### Inherited from

[`Wallet`](./Wallet).[`approve`](./Wallet#approve)

***

### ~~approveTransaction()~~

> **approveTransaction**(`params`): `Promise`\<`Error`>

Defined in: [packages/wallets/src/wallets/wallet.ts:399](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L399)

#### Parameters

| Parameter | Type            | Description    |
| --------- | --------------- | -------------- |
| `params`  | `ApproveParams` | The parameters |

#### Returns

`Promise`\<`Error`>

The transaction

#### Deprecated

Use `approve` instead.
Approve a transaction

#### Inherited from

[`Wallet`](./Wallet).[`approveTransaction`](./Wallet#approvetransaction)

***

### balances()

> **balances**(`tokens`?): `Promise`\<[`Balances`](../type-aliases/Balances)\<`"stellar"`>>

Defined in: [packages/wallets/src/wallets/wallet.ts:118](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L118)

Get the wallet balances - always includes USDC and native token (ETH/SOL)

#### Parameters

| Parameter | Type        | Description                                                                        |
| --------- | ----------- | ---------------------------------------------------------------------------------- |
| `tokens`? | `string`\[] | Additional tokens to request (optional: native token and usdc are always included) |

#### Returns

`Promise`\<[`Balances`](../type-aliases/Balances)\<`"stellar"`>>

The balances returns nativeToken, usdc, tokens

#### Throws

If the balances cannot be retrieved

#### Inherited from

[`Wallet`](./Wallet).[`balances`](./Wallet#balances)

***

### delegatedSigners()

> **delegatedSigners**(): `Promise`\<[`DelegatedSigner`](../type-aliases/DelegatedSigner)\[]>

Defined in: [packages/wallets/src/wallets/wallet.ts:554](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L554)

List the delegated signers for this wallet.

#### Returns

`Promise`\<[`DelegatedSigner`](../type-aliases/DelegatedSigner)\[]>

The delegated signers

#### Inherited from

[`Wallet`](./Wallet).[`delegatedSigners`](./Wallet#delegatedsigners)

***

### experimental\_activity()

> **experimental\_activity**(): `Promise`\<`WalletsV1Alpha2ActivityResponseDto`>

Defined in: [packages/wallets/src/wallets/wallet.ts:312](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L312)

**`Experimental`**

Get the wallet activity

#### Returns

`Promise`\<`WalletsV1Alpha2ActivityResponseDto`>

The activity
This API is experimental and may change in the future

#### Throws

If the activity cannot be retrieved

#### Inherited from

[`Wallet`](./Wallet).[`experimental_activity`](./Wallet#experimental_activity)

***

### experimental\_apiClient()

> **experimental\_apiClient**(): [`WalletsApiClient`](./WalletsApiClient)

Defined in: [packages/wallets/src/wallets/wallet.ts:101](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L101)

**`Experimental`**

Get the API client

#### Returns

[`WalletsApiClient`](./WalletsApiClient)

The API client
This API is experimental and may change in the future

#### Inherited from

[`Wallet`](./Wallet).[`experimental_apiClient`](./Wallet#experimental_apiclient)

***

### experimental\_nfts()

> **experimental\_nfts**(`params`): `Promise`\<`WalletNftsResponseDto`>

Defined in: [packages/wallets/src/wallets/wallet.ts:272](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L272)

**`Experimental`**

Get the wallet NFTs

#### Parameters

| Parameter        | Type                                        | Description                 |
| ---------------- | ------------------------------------------- | --------------------------- |
| `params`         | \{ `page`: `number`; `perPage`: `number`; } | The parameters              |
| `params.page`    | `number`                                    | The page number             |
| `params.perPage` | `number`                                    | The number of NFTs per page |

#### Returns

`Promise`\<`WalletNftsResponseDto`>

The NFTs
This API is experimental and may change in the future

#### Inherited from

[`Wallet`](./Wallet).[`experimental_nfts`](./Wallet#experimental_nfts)

***

### experimental\_transaction()

> **experimental\_transaction**(`transactionId`): `Promise`\<`WalletsTransactionV2025ResponseDto`>

Defined in: [packages/wallets/src/wallets/wallet.ts:298](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L298)

Get a transaction by id

#### Parameters

| Parameter       | Type     |
| --------------- | -------- |
| `transactionId` | `string` |

#### Returns

`Promise`\<`WalletsTransactionV2025ResponseDto`>

The transaction

#### Throws

If the transaction cannot be retrieved

#### Inherited from

[`Wallet`](./Wallet).[`experimental_transaction`](./Wallet#experimental_transaction)

***

### experimental\_transactions()

> **experimental\_transactions**(): `Promise`\<`GetTransactionsResponse`>

Defined in: [packages/wallets/src/wallets/wallet.ts:285](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L285)

Get the wallet transactions

#### Returns

`Promise`\<`GetTransactionsResponse`>

The transactions

#### Throws

If the transactions cannot be retrieved

#### Inherited from

[`Wallet`](./Wallet).[`experimental_transactions`](./Wallet#experimental_transactions)

***

### send()

> **send**\<`T`>(`to`, `token`, `amount`, `options`?): `Promise`\<[`Transaction`](../type-aliases/Transaction)\<`T` *extends* `PrepareOnly`\<`true`> ? `true` : `false`>>

Defined in: [packages/wallets/src/wallets/wallet.ts:335](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L335)

Send a token to a wallet or user locator

#### Type Parameters

| Type Parameter                                             | Default type |
| ---------------------------------------------------------- | ------------ |
| `T` *extends* `SendTokenTransactionOptions` \| `undefined` | `undefined`  |

#### Parameters

| Parameter  | Type                      | Description                             |
| ---------- | ------------------------- | --------------------------------------- |
| `to`       | `string` \| `UserLocator` | The recipient (address or user locator) |
| `token`    | `string`                  | The token (address or currency symbol)  |
| `amount`   | `string`                  | The amount to send (decimal units)      |
| `options`? | `T`                       | The options for the transaction         |

#### Returns

`Promise`\<[`Transaction`](../type-aliases/Transaction)\<`T` *extends* `PrepareOnly`\<`true`> ? `true` : `false`>>

The transaction

#### Inherited from

[`Wallet`](./Wallet).[`send`](./Wallet#send)

***

### sendTransaction()

> **sendTransaction**\<`T`>(`params`): `Promise`\<[`Transaction`](../type-aliases/Transaction)\<`T` *extends* `PrepareOnly`\<`true`> ? `true` : `false`>>

Defined in: [packages/wallets/src/wallets/stellar.ts:50](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/stellar.ts#L50)

Send a raw Stellar transaction (serialized transaction or contract call).

#### Type Parameters

| Type Parameter                                         | Default type |
| ------------------------------------------------------ | ------------ |
| `T` *extends* `TransactionInputOptions` \| `undefined` | `undefined`  |

#### Parameters

| Parameter | Type                                 | Description                |
| --------- | ------------------------------------ | -------------------------- |
| `params`  | `StellarTransactionInput` & `object` | The transaction parameters |

#### Returns

`Promise`\<[`Transaction`](../type-aliases/Transaction)\<`T` *extends* `PrepareOnly`\<`true`> ? `true` : `false`>>

The transaction result

***

### stagingFund()

> **stagingFund**(`amount`, `chain`?): `Promise`\<`FundWalletResponse`>

Defined in: [packages/wallets/src/wallets/wallet.ts:166](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/wallet.ts#L166)

Funds the wallet with Crossmint's stablecoin (USDXM).

**Note:** This method is only available in staging environments and exclusively supports USDXM tokens.
It cannot be used in production environments.

#### Parameters

| Parameter | Type                             | Description                                                                 |
| --------- | -------------------------------- | --------------------------------------------------------------------------- |
| `amount`  | `number`                         | The amount of USDXM to fund the wallet with                                 |
| `chain`?  | [`Chain`](../type-aliases/Chain) | Optional chain to fund on. If not provided, uses the wallet's default chain |

#### Returns

`Promise`\<`FundWalletResponse`>

The funding response

#### Throws

If the funding operation fails or if called in a production environment

#### Inherited from

[`Wallet`](./Wallet).[`stagingFund`](./Wallet#stagingfund)

***

### from()

> `static` **from**(`wallet`): `StellarWallet`

Defined in: [packages/wallets/src/wallets/stellar.ts:30](https://github.com/Crossmint/crossmint-sdk/blob/main/packages/wallets/src/wallets/stellar.ts#L30)

#### Parameters

| Parameter | Type                                                    |
| --------- | ------------------------------------------------------- |
| `wallet`  | [`Wallet`](./Wallet)\<[`Chain`](../type-aliases/Chain)> |

#### Returns

`StellarWallet`
