Derives multiple blockchain addresses (Ethereum, Bitcoin, and Cosmos) from a given uncompressed eth public key
or PKP token ID. If a PKP token ID is provided, it retrieves the public key from the PKP contract.
Throws
If the defaultRPCUrl is not provided.
Throws
If neither publicKey nor pkpTokenId is provided.
Throws
If any of the derived addresses (btcAddress, ethAddress, cosmosAddress) are undefined.
derivedAddresses(params): Promise<any>
Parameters
params: DerivedAddressesParams
The parameters for deriving addresses.
Returns Promise<any>
A Promise that resolves to an object containing token information:
Derives multiple blockchain addresses (Ethereum, Bitcoin, and Cosmos) from a given uncompressed eth public key or PKP token ID. If a PKP token ID is provided, it retrieves the public key from the PKP contract.
Throws
If the defaultRPCUrl is not provided.
Throws
If neither publicKey nor pkpTokenId is provided.
Throws
If any of the derived addresses (btcAddress, ethAddress, cosmosAddress) are undefined.