CreateContractReactionPayload

webhook_api.v1.CreateContractReactionPayload

type CreateContractReactionPayload

webhook_api.v1.CreateContractReactionPayload

FieldTypeDescription
sender_wallet_idstringWallet ID.
commitmentsCommitment repeatedList of commitments.
conditionsCondition repeatedList of conditions.
timeout_secsuint32Timeout in seconds for contracts created by the scheduled reaction.
memostringMemo for contracts created by the scheduled reaction.
{
  "sender_wallet_id": "SENDER_WALLET_ID1",
  "commitments": [
    {
      "sender": "zSenderPublicKey",
      "recipient": "zRecipientPublicKey",
      "amount": {
        "currency_code": "USD",
        "amount": 100,
        "decimals": 2
      }
    },
    {
      "sender": "zSenderPublicKey2",
      "recipient": "zRecipientPublicKey2",
      "amount": {
        "currency_code": "USD",
        "amount": 500,
        "decimals": 2
      }
    }
  ],
  "conditions": [
    {
      "condition": {
        "hash": {
          "presenter": "PresenterPublicKey",
          "hash": "13550350a8681c84"
        }
      }
    },
    {
      "condition": {
        "hash": {
          "presenter": "PresenterPublicKey",
          "hash": "13550350a8681c84"
        }
      }
    }
  ],
  "timeout_secs": 10000,
  "memo": "MEMO"
}