ScheduledReaction

webhook_api.v1.ScheduledReaction

type ScheduledReaction

webhook_api.v1.ScheduledReaction

FieldTypeDescription
idstringReaction id.
namestringReaction name.
reaction_typeScheduleReactionType enum
FieldNumberDescription
SCHEDULE_REACTION_TYPE_UNSPECIFIED0Reaction type.Scheduled Reaction Type Unspecified.
SCHEDULE_REACTION_TYPE_CREATE_CONTRACT1Reaction type.Scheduled Reaction Type Wallet Created.
cron_tabstringCron tab. Requires 5 asterisks/values. (e.g. * * * * *). Only supports minute granularity.
payloadoneof
FieldTypeDescription
create_contract_payloadCreateContractReactionPayloadReaction Payload for sending payment.
{
  "id": "REACTION_ID1",
  "name": "REACTION_NAME1",
  "reaction_type": 1,
  "cron_tab": "*****",
  "payload": {
    "create_contract_payload": {
      "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"
    }
  }
}