/build/rpc / assets / raw_attach
rawtxaddoutext
rawtxaddoutext "hex" vout "tlv" Attach or replace an output extension (vExt TLV) on a given vout of a raw transaction. Arguments: 1. hex (string, required) Raw transaction hex (serialized with or without witness) 2. vout (numeric, required) Output index to modify 3. tlv (string, required) TLV bytes (type|varint len|value) to set; use "" to clear Result: "hex" (string) Modified raw transaction hex Examples: > bitcoin-cli rawtxaddoutext "<hex>" 0 "01"
Signature
rawtxaddoutext(hex: string, vout: number, tlv: string) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"rawtxaddoutext","params":["\"<hex>\"",0,"\"<tlv>\""]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| hex | string | yes | Raw transaction hex (serialized with or without witness) |
| vout | number | yes | Output index to modify |
| tlv | string | yes | TLV bytes (type|varint len|value) to set; use "" to clear |
Result
Type: any
"hex" (string) Modified raw transaction hex
Source: services/core-node/bcore/src/rpc/rawtransaction.cpp:125
C++ symbol: rawtxaddoutext