Skip to main content

Addresses

@coinbase/waas-sdk-webAPI


Interface: Addresses

Extends

  • HasApi

Properties

api

api: Api

Inherited from

HasApi.api

Methods

all()

all(): Promise<Address<string>[]>

Returns

Promise<Address<string>[]>

A promise of a list of all addresses associated with this wallet.


for()

for<T>(protocolSpecifier, index?): Promise<Address<T>>

Type parameters

T extends string

Parameters

protocolSpecifier: T

A ProtocolFamily that contains the protocol family that the address is associated with.

index?: number

Wallets can derive multiple addresses -- vary this index if you would like the n-th address produced.

Returns

Promise<Address<T>>

A promise of the first address associated with this wallet.

Example

wallet.addresses.for(ProtocolFamily.EVM)

Was this helpful?