SolanaWallet
new SolanaSmartWallet(apiClient
,publicKey
,adminSignerInput
,client
,callbacks
):SolanaSmartWallet
Parameter | Type |
---|---|
apiClient | ApiClient |
publicKey | PublicKey |
adminSignerInput | SolanaSignerInput |
client | Connection |
callbacks | Callbacks |
SolanaSmartWallet
SolanaWallet.constructor
Property | Modifier | Type | Defined in |
---|---|---|---|
adminSigner | readonly | SolanaSigner | packages/wallets/src/solana/wallet.ts:109 |
addDelegatedSigner(Add a delegated signer to the walletsigner
):Promise
<any
>
Parameter | Type | Description |
---|---|---|
signer | string | The signer |
Promise
<any
>
The delegated signer
balances(Get the wallet balancestokens
):Promise
<WalletBalanceResponseDto
>
Parameter | Type | Description |
---|---|---|
tokens | SolanaSupportedToken [] | The tokens |
Promise
<WalletBalanceResponseDto
>
The balances
SolanaWallet.balances
getAddress(): string
Get the wallet address
string
The wallet address
SolanaWallet.getAddress
getPublicKey(): PublicKey
Get the wallet public key
PublicKey
The wallet public key
SolanaWallet.getPublicKey
nfts(Get the wallet NFTsperPage
,page
,chain
):Promise
<GetNftsResponse
>
Parameter | Type | Description |
---|---|---|
perPage | number | The number of NFTs per page |
page | number | The page number |
chain | string | - |
Promise
<GetNftsResponse
>
The NFTs
SolanaWallet.nfts
sendTransaction(Sign and submit a transactionparameters
):Promise
<string
>
Parameter | Type | Description |
---|---|---|
parameters | SmartWalletTransactionParams | The transaction parameters |
Promise
<string
>
The transaction hash
transactions():Get the wallet transactionsPromise
<WalletsV1Alpha2TransactionsResponseDto
>
Promise
<WalletsV1Alpha2TransactionsResponseDto
>
The transactions
SolanaWallet.transactions