[#DecodeBase58]
= DecodeBase58
:mrdocs:

Decode a base58&hyphen;encoded string (str) into a byte vector (vchRet)&period; return true if decoding is successful&period;

== Synopsis

Declared in `&lt;base58&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
bool
DecodeBase58(
    std::string const& str,
    std::vector&lt;unsigned char&gt;& vchRet,
    int max&lowbar;ret&lowbar;len);
----

== Return Value

true if decoding is successful&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| The base58&hyphen;encoded string to decode&period;
| *vchRet*
| Output vector that receives the decoded bytes&period;
| *max&lowbar;ret&lowbar;len*
| Maximum number of decoded bytes to accept&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
