Wallet Addresses

Wallet Addresses Widgets and Modals

Get Method Widgets and Modals

To use the widgets in React components you need to import the Widget component:

import { Widget } from '@paytweed/frontend-sdk-react'

Every widget has an optional parameter called settings.

NameTypeDefaultDescription

fullScreen

Boolean

true

Should widget be shown fullscreen

hideMenu

Boolean

true

Deprecated

preventClose

Boolean

true

Hides close button

You can provide them to the widget like this:

<Widget settings={{hideMenu: false}}>

Show wallet address

Description

A widget with the wallet address encoded in QR code and a dropdown to choose the blockchain of the address.

Parameters

NameTypeRequiredDefaultDescription

blockchainId

String

✔️

Blockchain id

onClose

() => void

Close callback

onError

() => void

Error callback

Usage Example

<Widget.Wallet.Address blockchainId='ethereum' />

Last updated