SolanaWallet
new SolanaMPCWallet(apiClient
,publicKey
,client
,callbacks
):SolanaMPCWallet
Parameter | Type |
---|---|
apiClient | ApiClient |
publicKey | PublicKey |
client | Connection |
callbacks | Callbacks |
SolanaMPCWallet
SolanaWallet.constructor
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
,locator
?):Promise
<GetNftsResponse
>
Parameter | Type | Description |
---|---|---|
perPage | number | The number of NFTs per page |
page | number | The page number |
locator ? | string | The wallet locator |
Promise
<GetNftsResponse
>
The NFTs
SolanaWallet.nfts
sendTransaction(Sign and submit a transactionparameters
):Promise
<string
>
Parameter | Type | Description |
---|---|---|
parameters | MPCTransactionParams | The transaction parameters |
Promise
<string
>
The transaction hash
transactions():Get the wallet transactionsPromise
<WalletsV1Alpha2TransactionsResponseDto
>
Promise
<WalletsV1Alpha2TransactionsResponseDto
>
The transactions
SolanaWallet.transactions