new SolanaWallet(wallet
):SolanaWallet
Parameter | Type |
---|---|
wallet | Wallet <"solana" > |
SolanaWallet
Wallet
.constructor
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(Add a delegated signer to the walletsigner
):Promise
<void
>
Parameter | Type | Description |
---|---|---|
signer | object | The signer |
signer.signer | string | - |
Promise
<void
>
The delegated signer
Wallet
.addDelegatedSigner
balances(Get the wallet balances - always includes USDC and native token (ETH/SOL)tokens
?,chains
?):Promise
<Balances
>
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
Wallet
.balances
delegatedSigners():Promise
<DelegatedSigner
[]>
Promise
<DelegatedSigner
[]>
Wallet
.delegatedSigners
experimental_activity():Promise
<WalletsV1Alpha2ActivityResponseDto
>
Experimental
Get the wallet activity
Promise
<WalletsV1Alpha2ActivityResponseDto
>
The activity
This API is experimental and may change in the future
Wallet
.experimental_activity
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
Wallet
.experimental_nfts
experimental_transactions():Get the wallet transactionsPromise
<GetTransactionsResponse
>
Promise
<GetTransactionsResponse
>
The transactions
Wallet
.experimental_transactions
send<Send a token to a wallet or user locatorT
>(to
,token
,amount
,options
?):Promise
<Transaction
<T
extendsobject
?true
:false
>>
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
Wallet
.send
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
>>
static
from(wallet
):SolanaWallet
Parameter | Type |
---|---|
wallet | Wallet <Chain > |
SolanaWallet