Skip to main content

Implements

  • ViemWallet

Constructors

new EVMSmartWallet()

new EVMSmartWallet(chain, apiClient, address, adminSigner, callbacks): EVMSmartWallet

Parameters

Returns

EVMSmartWallet

Defined in

packages/wallets/src/evm/wallet.ts:113

Properties

Methods

balances()

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

Parameters

Returns

Promise<WalletBalanceResponseDto> The balances

Defined in

packages/wallets/src/evm/wallet.ts:131

getAddress()

getAddress(): `0x${string}`
Get the wallet address

Returns

`0x${string}` The wallet address

Implementation of

ViemWallet.getAddress

Defined in

packages/wallets/src/evm/wallet.ts:159

getNonce()

getNonce(parameters?): Promise<bigint>
Get the wallet nonce

Parameters

Returns

Promise<bigint> The nonce

Implementation of

ViemWallet.getNonce

Defined in

packages/wallets/src/evm/wallet.ts:163

nfts()

nfts(perPage, page, chain, locator?): Promise<GetNftsResponse>
Get the wallet NFTs

Parameters

Returns

Promise<GetNftsResponse> The NFTs

Defined in

packages/wallets/src/evm/wallet.ts:155

sendTransaction()

sendTransaction(parameters): Promise<`0x${string}`>
Sign and submit a transaction

Parameters

Returns

Promise<`0x${string}`> The transaction hash

Implementation of

ViemWallet.sendTransaction

Defined in

packages/wallets/src/evm/wallet.ts:279

signMessage()

signMessage(parameters): Promise<`0x${string}`>
Sign a message

Parameters

Returns

Promise<`0x${string}`> The signature

Implementation of

ViemWallet.signMessage

Defined in

packages/wallets/src/evm/wallet.ts:173

signTypedData()

signTypedData<typedData, primaryType>(parameters): Promise<`0x${string}`>
Sign a typed data

Type Parameters

Parameters

Returns

Promise<`0x${string}`> The signature

Implementation of

ViemWallet.signTypedData

Defined in

packages/wallets/src/evm/wallet.ts:217

transactions()

transactions(): Promise<object[]>
Get the wallet transactions

Returns

Promise<object[]> The transactions

Defined in

packages/wallets/src/evm/wallet.ts:142