Tradehub.Wallet.from_private_key
You're seeing just the function
from_private_key
, go back to Tradehub.Wallet module for more information.
Specs
from_private_key(private_key(), network()) :: {:ok, t()} | {:error, String.t()}
Open a wallet based on its private key.
Examples
iex> {:ok, wallet} = Tradehub.Wallet.from_private_key("151f85d41358f56d14bec4846c5370a3ae4f34decba71d48feac75ecbf6c8ca1")
iex> wallet.address
"swth174cz08dmgluavwcz2suztvydlptp4a8fru98vw"