Generate a Bitcoin scriptPubKey for the given CTxDestination. Returns a P2PKH script for a CKeyID destination, a P2SH script for a CScriptID, and an empty script for CNoDestination.

Synopsis

Declared in <addresstype.h>

CScript
GetScriptForDestination(CTxDestination const& dest);

Return Value

The generated output script.

Parameters

Name

Description

dest

The destination to encode.

Created with MrDocs