• APIs and Libraries
    APIs and Libraries
  • Connect WX Network wallet
    Connect WX Network wallet
  • CCXT
    CCXT
  • Fees
    Fees
  • Matcher
    • WX Network Protocol
      WX Network Protocol
    • Matcher Fee
      Matcher Fee
    • Install Matcher on Ubuntu From Deb-package
      Install Matcher on Ubuntu From Deb-package
    • Matcher Settings
      Matcher Settings
    • Matcher API
      • Order Validation
        Order Validation
      • Exchange Transation Validation
        Exchange Transation Validation
      Matcher API
    • Matcher WebSocket API
      • Errors and Debugging
        Errors and Debugging
      • Common Streams
        Common Streams
      Matcher WebSocket API
    Matcher
  • Gateway API
    • Access Token
      • Get Access Token in WX Network App
        Get Access Token in WX Network App
      • POST /v1/oauth2/token
        POST /v1/oauth2/token
      Access Token
    • Deposit
      • [Deprecated] GET /v1/deposit/addresses/{currency}
        [Deprecated] GET /v1/deposit/addresses/{currency}
      • GET /v1/deposit/addresses/{currency}/{platform}
        GET /v1/deposit/addresses/{currency}/{platform}
      • GET /v1/deposit/currencies
        GET /v1/deposit/currencies
      • [Deprecated] GET /v1/deposit/currencies/{currency}
        [Deprecated] GET /v1/deposit/currencies/{currency}
      • GET /v1/deposit/currencies/{currency}/{platform}
        GET /v1/deposit/currencies/{currency}/{platform}
      • Terms of Deposit
        Terms of Deposit
      Deposit
    • Withdraw
      • [Deprecated] GET /v1/withdraw/addresses/{currency}/{address}
        [Deprecated] GET /v1/withdraw/addresses/{currency}/{address}
      • GET /v1/withdraw/addresses/{currency}/{address}/{platform}
        GET /v1/withdraw/addresses/{currency}/{address}/{platform}
      • GET /v1/withdraw/currencies
        GET /v1/withdraw/currencies
      • [Deprecated] GET /v1/withdraw/currencies/{currency}
        [Deprecated] GET /v1/withdraw/currencies/{currency}
      • GET /v1/withdraw/currencies/{currency}/{platform}
        GET /v1/withdraw/currencies/{currency}/{platform}
      • Terms of Withdrawal
        Terms of Withdrawal
      Withdraw
    • Movements History
      Movements History
    • Platforms List
      Platforms List
    • Error Codes
      Error Codes
    Gateway API
  • Get Trades
    Get Trades
  • Staking Annual Percentage Yield API
    Staking Annual Percentage Yield API
  • Payment API
    Payment API
  • Web Auth API
    Web Auth API
  • WX Token Protocol
    WX Token Protocol
  • Glossary
    Glossary
      • English
      • Русский
      On this page
        • Process
        • Request
        • Response

          # Payment API

          If you want to provide the ability for someone to pay with WAVES or any other WX Network tokens, you can use our Payment API.

          # Process

          1. You set up a button on your site which triggers the creation of an URL and a redirect to it.
          2. A user decides to buy something and the user presses that button.
          3. After that, the user is redirected to the WX Network app with a payment parameters window.
          4. The user modifies those parameters if possible and submits the form.
          5. If everything's okay, the user is redirected back to referrer.
          6. Referrer is provided with transaction ID which can be checked if it is in the blockchain.

          If the user interrupts the process, he stays on the WX Network app page.

          # Request

          https://waves.exchange/#send/WAVES?recipient=your-alias&amount=0.01&attachment=SomeString&referrer=https://example.com&strict

          Basic path is https://waves.exchange/#send/{assetId}. Then the parameters go.

          # Parameters

          Parameter Parameter body Description Required
          Asset ID send/8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS ID of the token needed for the payment. The only path parameter here Required
          Recipient recipient=3PCAB4sHXgvtu5NPoen6EXR5yaNbvsEA8Fj The address or an alias to send tokens to Required
          Amount amount=10.5 The amount of token to pay Required
          Attachment attachment=SomeString Payment attachment string Optional
          Referrer referrer=https://example.com/waves-payment URL of your service. It should be HTTPS-only Optional
          Strict mode strict If this flag is set, a user won't be able to change the data in the form Optional

          # Response

          https://example.com/waves-payment?txId=D1USZfZPzVd2XNH9xj52Z81XhxChpwUKDJpQHz2haXRT

          # Parameters

          Parameter Parameter body Description
          Transaction ID ?txId=D1USZfZPzVd2XNH9xj52Z81XhxChpwUKDJpQHz2haXRT ID of user's successful transaction
          Staking Annual Percentage Yield API
          Web Auth API
          Staking Annual Percentage Yield API
          Web Auth API