user78793: What are the contents of a redeem script hash in a p2sh transaction?
From what i read it's similar to the pubkey script but does it only contain the receiver's address?

user10377: 1. Bitcoin single signature P2SH:
RedeemScript Template = “[PubKey] OP_CHECKSIG”
Working Examples:
% echo "[020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] checksig" | bx script-encode
21020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73ac (Script)
% echo "[020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] checksig" | bx script-encode | bx sha256 | bx ripemd160
49e266a68641d2caa6696b00696f00f0a5706350   (Hash Answer)
% echo "[020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] checksig" | bx script-encode | bx sha256 | bx ripemd160 | bx base58check-encode -v 5
38RgUAR367PFbFFgS57BYcERHkpqHEMBvA  (Address)
or more simply,
% echo "[020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] checksig" | bx script-to-address -v 5
38RgUAR367PFbFFgS57BYcERHkpqHEMBvA
2. Bitcoin BIP16 multisig:
2 of 3 RedeemScript Template = "OP_2 [PubKey1] [PubKey2] [PubKey3] OP_3 OP_CHECKMULTISIG"
Working Examples:
% echo "2 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] [03664d528eb80096671ef9011c533ceb5df133238e3690d88f2960c786398b86b1] [029a449ea4a2155ea10002d704604bb3e8606631d35af20889a74b82b2dab572f6] 3 checkmultisig" | bx script-encode
5221020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d732103664d528eb80096671ef9011c533ceb5df133238e3690d88f2960c786398b86b121029a449ea4a2155ea10002d704604bb3e8606631d35af20889a74b82b2dab572f653ae (Script)
%  echo "2 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] [03664d528eb80096671ef9011c533ceb5df133238e3690d88f2960c786398b86b1] [029a449ea4a2155ea10002d704604bb3e8606631d35af20889a74b82b2dab572f6] 3 checkmultisig" | bx script-encode | bx bitcoin160
7e580c3a86432d96dd60784e99f5a94e463414fe   (Hash Answer)
% echo "2 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] [03664d528eb80096671ef9011c533ceb5df133238e3690d88f2960c786398b86b1] [029a449ea4a2155ea10002d704604bb3e8606631d35af20889a74b82b2dab572f6] 3 checkmultisig" | bx script-to-address -v 5
3DD4YP2T75TQtf84KrHzYVLYgNAeaHWqxq (Address)
3. Bitcoin P2WPKH-nested-in-P2SH:
RedeemScript Template = "0 [PubKey]"
Working Examples:
% echo "0 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73]" | bx script-encode
0021020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73 (Script)
% echo "0 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73]" | bx script-encode | bx bitcoin160
7138cbb443e9ed635d3dd02a3e450884e3f9f0c8  (Hash Answer)
% echo "0 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73]" | bx script-to-address -v 5
3C1gKTRSAwSLj8Ft1eYooLkWxwJ5cqDdpb  (Address)

78793: <p>What are the contents of a redeem script hash in a p2sh transaction?</p>

<p>From what i read it's similar to the pubkey script but does it only contain the receiver's address?</p>
 10377: <p><strong>1. Bitcoin single signature P2SH:</strong></p>
<p><em>RedeemScript Template</em> = “[PubKey] OP_CHECKSIG”</p>
<p>Working Examples:</p>
<p><code>% echo &quot;[020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] checksig&quot; | bx script-encode</code></p>
<p><em><strong>21020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73ac</strong></em> (Script)</p>
<p><code>% echo &quot;[020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] checksig&quot; | bx script-encode | bx sha256 | bx ripemd160</code></p>
<p><em><strong>49e266a68641d2caa6696b00696f00f0a5706350</strong></em>   (Hash Answer)</p>
<p><code>% echo &quot;[020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] checksig&quot; | bx script-encode | bx sha256 | bx ripemd160 | bx base58check-encode -v 5</code></p>
<p><em><strong>38RgUAR367PFbFFgS57BYcERHkpqHEMBvA</strong></em>  (Address)</p>
<p>or more simply,</p>
<p><code>% echo &quot;[020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] checksig&quot; | bx script-to-address -v 5</code></p>
<p><em><strong>38RgUAR367PFbFFgS57BYcERHkpqHEMBvA</strong></em></p>
<p><strong>2. Bitcoin BIP16 multisig:</strong></p>
<p><em>2 of 3 RedeemScript Template</em> = &quot;OP_2 [PubKey1] [PubKey2] [PubKey3] OP_3 OP_CHECKMULTISIG&quot;</p>
<p>Working Examples:</p>
<p><code>% echo &quot;2 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] [03664d528eb80096671ef9011c533ceb5df133238e3690d88f2960c786398b86b1] [029a449ea4a2155ea10002d704604bb3e8606631d35af20889a74b82b2dab572f6] 3 checkmultisig&quot; | bx script-encode</code></p>
<p><em><strong>5221020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d732103664d528eb80096671ef9011c533ceb5df133238e3690d88f2960c786398b86b121029a449ea4a2155ea10002d704604bb3e8606631d35af20889a74b82b2dab572f653ae</strong></em> (Script)</p>
<p><code>%  echo &quot;2 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] [03664d528eb80096671ef9011c533ceb5df133238e3690d88f2960c786398b86b1] [029a449ea4a2155ea10002d704604bb3e8606631d35af20889a74b82b2dab572f6] 3 checkmultisig&quot; | bx script-encode | bx bitcoin160</code></p>
<p><em><strong>7e580c3a86432d96dd60784e99f5a94e463414fe</strong></em>   (Hash Answer)</p>
<p><code>% echo &quot;2 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73] [03664d528eb80096671ef9011c533ceb5df133238e3690d88f2960c786398b86b1] [029a449ea4a2155ea10002d704604bb3e8606631d35af20889a74b82b2dab572f6] 3 checkmultisig&quot; | bx script-to-address -v 5</code></p>
<p><em><strong>3DD4YP2T75TQtf84KrHzYVLYgNAeaHWqxq</strong></em> (Address)</p>
<p><strong>3. Bitcoin P2WPKH-nested-in-P2SH:</strong></p>
<p><em>RedeemScript Template</em> = &quot;0 [PubKey]&quot;</p>
<p>Working Examples:</p>
<p><code>% echo &quot;0 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73]&quot; | bx script-encode</code></p>
<p><em><strong>0021020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73</strong></em> (Script)</p>
<p><code>% echo &quot;0 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73]&quot; | bx script-encode | bx bitcoin160</code></p>
<p><em><strong>7138cbb443e9ed635d3dd02a3e450884e3f9f0c8</strong></em>  (Hash Answer)</p>
<p><code>% echo &quot;0 [020ae29f86f404e4b302cfa17ff15d93149af6a54c80a4172d47e41f55f6a78d73]&quot; | bx script-to-address -v 5</code></p>
<p><em><strong>3C1gKTRSAwSLj8Ft1eYooLkWxwJ5cqDdpb</strong></em>  (Address)</p>
