new SolanaWallet(
wallet
):SolanaWallet
Parameter | Type |
---|---|
wallet | Wallet <"solana" > |
packages/wallets/src/wallets/solana.ts:11
Property | Type | Inherited from | Defined in |
---|---|---|---|
address | string | Wallet .address | packages/wallets/src/wallets/wallet.ts:41 |
chain | "solana" | Wallet .chain | packages/wallets/src/wallets/wallet.ts:40 |
owner? | string | Wallet .owner | packages/wallets/src/wallets/wallet.ts:42 |
signer | Signer <keyof SignResultMap > | Wallet .signer | packages/wallets/src/wallets/wallet.ts:43 |
addDelegatedSigner(
signer
):Promise
<void
>
Add a delegated signer to the wallet
Parameter | Type | Description |
---|---|---|
signer | object | The signer |
signer.signer | string | - |
Promise
<void
>
The delegated signer
packages/wallets/src/wallets/wallet.ts:235
balances(
tokens
?,chains
?):Promise
<Balances
>
Get the wallet balances - always includes USDC and native token (ETH/SOL)
Parameter | Type | Description |
---|---|---|
tokens ? | string [] | Additional tokens to request (optional: native token and usdc are always included) |
chains ? | Chain [] | The chains (optional) |
Promise
<Balances
>
The balances returns nativeToken, usdc, tokens
If the balances cannot be retrieved
packages/wallets/src/wallets/wallet.ts:80
delegatedSigners():
Promise
<DelegatedSigner
[]>
Promise
<DelegatedSigner
[]>
packages/wallets/src/wallets/wallet.ts:265
experimental_activity():
Promise
<WalletsV1Alpha2ActivityResponseDto
>
Experimental
Get the wallet activity
Promise
<WalletsV1Alpha2ActivityResponseDto
>
The activity This API is experimental and may change in the future
If the activity cannot be retrieved
packages/wallets/src/wallets/wallet.ts:186
experimental_nfts(
params
):Promise
<GetNftsResponse
>
Experimental
Get the wallet NFTs
Parameter | Type | Description |
---|---|---|
params | object | The parameters |
params.page | number | The page number |
params.perPage | number | The number of NFTs per page |
Promise
<GetNftsResponse
>
The NFTs This API is experimental and may change in the future
packages/wallets/src/wallets/wallet.ts:164
experimental_transactions():
Promise
<GetTransactionsResponse
>
Get the wallet transactions
Promise
<GetTransactionsResponse
>
The transactions
Wallet
.experimental_transactions
packages/wallets/src/wallets/wallet.ts:176
send<
T
>(to
,token
,amount
,options
?):Promise
<Transaction
<T
extendsobject
?true
:false
>>
Send a token to a wallet or user locator
Type Parameter | Default type |
---|---|
T extends undefined | TransactionInputOptions | undefined |
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 |
Promise
<Transaction
<T
extends object
? true
: false
>>
The transaction
packages/wallets/src/wallets/wallet.ts:202
sendTransaction<
T
>(params
):Promise
<Transaction
<T
extendsobject
?true
:false
>>
Type Parameter | Default type |
---|---|
T extends undefined | TransactionInputOptions | undefined |
Parameter | Type |
---|---|
params | SolanaTransactionInput & object |
Promise
<Transaction
<T
extends object
? true
: false
>>
packages/wallets/src/wallets/solana.ts:31
static
from(wallet
):SolanaWallet
Parameter | Type |
---|---|
wallet | Wallet <Chain > |
packages/wallets/src/wallets/solana.ts:23