---
updatedAt: 2026-07-21T10:10:08.000Z
agentTools:
  projectIndex: https://docs.wert.io/llms.txt
---

# Signing a payment request

**We recommend using our helper** to construct the required signatures as described in [Generate signed data](https://docs.wert.io/docs/generate-signed-data). However, if that is not possible, you can follow this guide to do it manually.

<TutorialTile backgroundColor="#018FF4" emoji="🦉" id="67efa4b8571d41515a520ec8" link="https://docs.wert.io/v1.3/recipes/code-snippet-for-signing-a-payment-request-1" slug="code-snippet-for-signing-a-payment-request-1" title="Code snippet for signing a payment request" />

The data you will need to construct your signature is as follows:

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Property
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>

      <th>
        Example
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        address
      </td>

      <td>
        String
      </td>

      <td>
        The user’s address that receives the token/NFT.
      </td>

      <td>
        0x00000000000000000000000000000<br />00000000001
      </td>
    </tr>

    <tr>
      <td>
        commodity
      </td>

      <td>
        String
      </td>

      <td>
        Cryptocurrency which should be sent to the smart contract, see [Supported coins and blockchains](https://docs.wert.io/docs/supported-coins-and-blockchains)
      </td>

      <td>
        `commodity:'ETH'`
      </td>
    </tr>

    <tr>
      <td>
        network
      </td>

      <td>
        String
      </td>

      <td>
        Network for the cryptocurrency, see [Supported coins and blockchains](https://docs.wert.io/docs/supported-coins-and-blockchains)
      </td>

      <td>
        `network: 'ethereum'`
      </td>
    </tr>

    <tr>
      <td>
        commodity_amount
      </td>

      <td>
        Number
      </td>

      <td>
        Amount of cryptocurrency necessary for executing the given smart contract.<br />The precision is 8 decimal places; please round up, or you will get a 9004 signature error code.
      </td>

      <td>
        0.03 (maximum 8 decimal places)
      </td>
    </tr>

    <tr>
      <td>
        sc_address
      </td>

      <td>
        String
      </td>

      <td>
        The address of the smart contract.
      </td>

      <td>
        0x00000000000000000000000000000<br />00000000002
      </td>
    </tr>

    <tr>
      <td>
        sc_input_data
      </td>

      <td>
        String
      </td>

      <td>
        Input data used for the smart contract execution in hex format.

        For Tezos, this must be Michelson code passed as JSON transformed into hex format.

        See [Forming input data](https://docs.wert.io/docs/forming-input-data).
      </td>

      <td>
        0x40c10f1900000000000000000000000<br />085f584812fc19c69e4dd586f06df93aa7<br />bdadd4d000000000000000000000000<br />000000000000000000000000016345<br />785d8a
      </td>
    </tr>
  </tbody>
</Table>

## Alternate implementation

Use the following implementation if you are importing scripts via CDNs and Buffer is not available for use.

<TutorialTile backgroundColor="#018FF4" emoji="🦉" id="6821a84c70ee3a002a5d3f79" link="https://docs.wert.io/v1.6/recipes/alternative-code-snippet-for-signing-payment-request" slug="alternative-code-snippet-for-signing-payment-request" title="Alternative code snippet for signing payment request" />

<br />