
# Bip321UriRequest

Request to build a BIP 321 unified payment URI.  An Ark address is always included. A BOLT11 invoice is only included when `amount_sat` is given (an amount is required to create one). An on-chain address is included only when `onchain` is `true`.

## Properties

Name | Type
------------ | -------------
`amountSat` | number
`label` | string
`message` | string
`onchain` | boolean

## Example

```typescript
import type { Bip321UriRequest } from '@secondts/barkd'

// TODO: Update the object below with actual values
const example = {
  "amountSat": null,
  "label": null,
  "message": null,
  "onchain": null,
} satisfies Bip321UriRequest

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as Bip321UriRequest
console.log(exampleParsed)
```

[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)


