PjUri

Type Alias PjUri 

Source
pub type PjUri<'a> = Uri<'a, NetworkChecked, PayjoinExtras>;

Aliased Type§

pub struct PjUri<'a> {
    pub address: Address,
    pub amount: Option<Amount>,
    pub label: Option<Param<'a>>,
    pub message: Option<Param<'a>>,
    pub extras: PayjoinExtras,
}

Fields§

§address: Address

The address provided in the URI.

This field is mandatory because the address is mandatory in BIP21.

§amount: Option<Amount>

Number of satoshis requested as payment.

§label: Option<Param<'a>>

The label of the address - e.g. name of the receiver.

§message: Option<Param<'a>>

Message that describes the transaction to the user.

§extras: PayjoinExtras

Extra fields that can occur in a BIP21 URI.