SolanaMPCWallet
Extends
SolanaWallet
Constructors
new SolanaMPCWallet()
new SolanaMPCWallet(
apiClient
,publicKey
,client
,callbacks
):SolanaMPCWallet
Parameters
Parameter | Type |
---|---|
apiClient | ApiClient |
publicKey | PublicKey |
client | Connection |
callbacks | Callbacks |
Returns
Inherited from
SolanaWallet.constructor
Defined in
packages/wallets/src/solana/wallet.ts:40
Methods
balances()
balances(
tokens
):Promise
<WalletBalanceResponseDto
>
Get the wallet balances
Parameters
Parameter | Type | Description |
---|---|---|
tokens | SolanaSupportedToken [] | The tokens |
Returns
Promise
<WalletBalanceResponseDto
>
The balances
Inherited from
SolanaWallet.balances
Defined in
packages/wallets/src/solana/wallet.ts:75
getAddress()
getAddress():
string
Get the wallet address
Returns
string
The wallet address
Inherited from
SolanaWallet.getAddress
Defined in
packages/wallets/src/solana/wallet.ts:66
getPublicKey()
getPublicKey():
PublicKey
Get the wallet public key
Returns
PublicKey
The wallet public key
Inherited from
SolanaWallet.getPublicKey
Defined in
packages/wallets/src/solana/wallet.ts:58
nfts()
nfts(
perPage
,page
,locator
?):Promise
<GetNftsResponse
>
Get the wallet NFTs
Parameters
Parameter | Type | Description |
---|---|---|
perPage | number | The number of NFTs per page |
page | number | The page number |
locator ? | string | The wallet locator |
Returns
Promise
<GetNftsResponse
>
The NFTs
Inherited from
SolanaWallet.nfts
Defined in
packages/wallets/src/solana/wallet.ts:96
sendTransaction()
sendTransaction(
parameters
):Promise
<string
>
Sign and submit a transaction
Parameters
Parameter | Type | Description |
---|---|---|
parameters | MPCTransactionParams | The transaction parameters |
Returns
Promise
<string
>
The transaction hash
Defined in
packages/wallets/src/solana/wallet.ts:168
transactions()
transactions():
Promise
<WalletsV1Alpha2TransactionsResponseDto
>
Get the wallet transactions
Returns
Promise
<WalletsV1Alpha2TransactionsResponseDto
>
The transactions
Inherited from
SolanaWallet.transactions
Defined in
Was this page helpful?