Type alias BaseDidTransactionParams

BaseDidTransactionParams: {
    changeAddress?: string;
    didOutput?: Buffer;
    didSats?: number;
    network: Network;
    satsPerVByte: number;
    walletUtxos?: WalletUtxo[];
}

Type declaration

  • Optional changeAddress?: string

    A custom change address to be used for the transaction. If not provided, the change will be sent to a p2tr address derived from the private key used to sign the did input or the first wallet funding input if no did input is being consumed.

  • Optional didOutput?: Buffer

    The output script to control the new did UTXO. Defaults to a p2tr output derived from the private key used to sign the did input or the first wallet funding input if no did input is being consumed.

  • Optional didSats?: number

    The number of satoshis to be committed to the DID output. This must be greater than the dust limit of 330 satoshis. If not provided, a default value of 330 satoshis will be used. If this value is zero, no did output will be created and the DID will not be able to be updated.

  • network: Network

    The network to be used for the transaction. This defaults to 'mainnet' if not provided.

  • satsPerVByte: number

    The fee rate to be used for the transaction, expressed in satoshis per virtual byte (vByte).

  • Optional walletUtxos?: WalletUtxo[]

    A list of utxos to consume for the transaction.