webhook_api.v1.ScheduledReaction
type ScheduledReaction
ScheduledReaction
webhook_api.v1.ScheduledReaction
webhook_api.v1.ScheduledReaction
Field | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
id | string | Reaction id. | |||||||||
name | string | Reaction name. | |||||||||
reaction_type | ScheduleReactionType enum |
| |||||||||
cron_tab | string | Cron tab. Requires 5 asterisks/values. (e.g. * * * * *). Only supports minute granularity. | |||||||||
payload | oneof |
|
{
"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"
}
}
}