toViem
@coinbase/waas-sdk-viem • API
Function: toViem()
toViem(
address
):LocalAccount
Converts a Waas Address to a Viem LocalAccount for use with the Viem SDK.
You can use this in most places where Viem expects an account:
parameter. See the viem docs
for more details.
Parameters
• address: Address
<EVM
>
A Waas address.
Returns
LocalAccount
A Viem-compatible LocalAccount.