Interface: OnramperWidgetRequest
The request of Onramper.generateWidgetUrl: the fields of the swap backend's
GenerateWidgetUrlDto, no others (the backend refuses a field it does not know). A field left
out is the backend's default (mode buy, defaultFiat USD, defaultAmount 100,
sellDefaultAmount 1, onlyCryptoNetworks gala, defaultPaymentMethod creditcard,
networkPrefix gala_gala).
generate widget url dto default fiat amount sell only crypto networks payment method network prefix gala
Properties
| Property | Type | Description |
|---|
defaultAmount? | number | The fiat amount the widget opens with (the backend accepts 15 to 15 000, at most 2 decimals). |
defaultCrypto? | string | - |
defaultFiat? | string | - |
defaultPaymentMethod? | string | - |
excludeFiat? | string | - |
excludePaymentMethods? | string | - |
isAddressEditable? | string | - |
mode? | "swap" | "buy" | "sell" | - |
networkPrefix? | string | - |
onlyCryptoNetworks? | string | - |
onlyFiat? | string | - |
onlyPaymentMethods? | string | - |
sellDefaultAmount? | number | The crypto amount a sell opens with (0.000001 to 1 000 000, at most 18 decimals). |
walletAddress | string | The wallet that receives the crypto, sent as given (the backend accepts 0x… or eth|… Ethereum addresses and client|… aliases, and canonicalizes them). |
default amount crypto fiat payment method exclude methods is address editable network prefix only networks sell wallet