Extends

  • SolanaWallet

Constructors

new SolanaMPCWallet()

new SolanaMPCWallet(apiClient, publicKey, client, callbacks): SolanaMPCWallet

Parameters

ParameterType
apiClientApiClient
publicKeyPublicKey
clientConnection
callbacksCallbacks

Returns

SolanaMPCWallet

Inherited from

SolanaWallet.constructor

Defined in

packages/wallets/src/solana/wallet.ts:40

Methods

balances()

balances(tokens): Promise<WalletBalanceResponseDto>
Get the wallet balances

Parameters

ParameterTypeDescription
tokensSolanaSupportedToken[]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

ParameterTypeDescription
perPagenumberThe number of NFTs per page
pagenumberThe page number
locator?stringThe 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

ParameterTypeDescription
parametersMPCTransactionParamsThe 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

packages/wallets/src/solana/wallet.ts:85