View Source BitcoinAccounting.XpubManager.AddressInfo (bitcoin_accounting v0.1.26)
Converts an xpub into an address along with derivation path starting from the xpub
Link to this section Summary
Functions
Converts an xpub into an address
Link to this section Functions
Converts an xpub into an address
examples
Examples
iex> "tpubDDJMFT1RGo7pAQxLSFSawLMBJGVizgq4Ny9hYmHWJCYTDW6JsGu3ZqU1RBVPJFhMJjr44fcdeny3uRjQmtUsH1dtuTQG9Ni29AHGwYK56Zq"
...> |> BitcoinAccounting.XpubManager.AddressInfo.from_xpub(false, 0)
{
:ok,
%AddressInfo{address: "mwYKDe7uJcgqyVHJAPURddeZvM5zBVQj5L", change?: false, index: 0}
}