createKeySpendOnlyOutput()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / createKeySpendOnlyOutput
Function: createKeySpendOnlyOutput()
Section titled “Function: createKeySpendOnlyOutput()”createKeySpendOnlyOutput(
privateKey,network?):object
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5998
Create a Taproot key-spend-only output (no scripts) This is the most common case for Silent Payments
Parameters
Section titled “Parameters”privateKey
Section titled “privateKey”`0x${string}`
32-byte private key (will be used as internal key)
network?
Section titled “network?”Returns
Section titled “Returns”object
Taproot output and address
output
Section titled “output”output:
TaprootOutput
address
Section titled “address”address:
string
internalPrivateKey
Section titled “internalPrivateKey”internalPrivateKey:
`0x${string}`