1.1.5 • Published 2 years ago

openmonet-connector v1.1.5

Weekly downloads
221
License
ISC
Repository
-
Last release
2 years ago

Openmonet connector

The official js library for Openmonet P2P crypto exchange.

npm install openmonet-connector

What is Openmonet?

Openmonet is another level of P2P crypto exchanges. We were able to speed up the deals time to less than one minute, with several concept improvements.

Quickstart

Get credentials for your platform by submitting connection form then add library to your project and pass credentials data to boot method

Methods

boot({mode, clientId, tokenData?, partnerWalletAddress?, containerId?, iframeHeight?, iframeWidth?, iframeBottom?, iframeRight?})

Boot widget with trading mode and auth credentials

Properties

ParamTypeDescription
widgetUrlstring:Setting up widget URL where it is will be loaded from
clientIdstringCustomer clientId
tokenDatastring in Base64 format* Token must be obtained from API for every unique user of your platform
partnerWalletAddressstringBTC address for crypto exchange
containerIdstringOptional id for widget container. Body is used by default
iframeHeightstringFrame height position
iframeWidthstringFrame width position
iframeBottomstringFrame bottom position
iframeRightstringFrame right position
embedModeEmbedMode: 'DRAWER', 'CONTAINER'Setting up widget mode. If you embed widget directly to container on the page, then choose CONTAINER, else use DRAWER
customIframeStylesCSSStyleDeclarationYou can add additional styles to iFrame when it is created

open({tradingAction, fiatCurrencyId, countryCode, paymentMethodId, amount, amountType}?)

Open widget with your params

Properties

ParamTypeDescription
tradingActionstring: must be one in 'SELL', 'BUY'Action
fiatCurrencyIdstringFiat currency ID
countryCodestring in ISO formatCountry ISO code
paymentMethodIdstringpayment method ID
amountnumberAmount
amountTypestring: must be one in 'FIAT', 'CRYPTO'Amount Type
currencyNamestringCustomer currency using to pay

close()

Close widget drawer

destroy()

Logout user and destroy widget drawer

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-rc.8

4 years ago

1.0.0-rc.7

4 years ago

1.0.0-rc.6

4 years ago

1.0.0-rc.5

4 years ago

1.0.0-rc.4

4 years ago

1.0.0-rc.3

4 years ago

1.0.0-rc.2

4 years ago

1.0.0-rc.1

4 years ago

1.0.0-rc

4 years ago