Skip to main content

Flow State

Endpoint {host}/flow/{:id}/state

Method : GET

Request

No Need Parameters

Response

  • id - string : Flow ID.
  • service_code - string : Current flow service code.
  • flow - string : Current flow name.
  • state - string : Current state of your flow.
  • data - Object : Stored data of your flow.
  • created_at - Timestamp RFC3339 : Time when flow created.
  • updated_at - Timestamp RFC3339 : Last flow updated.
  • expired_at - Timestamp RFC3339 : Maximum time you have to finish the process before flow dropped by system, will always increment by your last action + 2 hours.

Success Sample

{
"id": "269407c3-315f-4006-95e2-30f2e70891cc",
"service_code": "polygon-pos",
"flow": "delegate",
"state": "delegate-completed",
"data": {
"delegator_address": "0xc44b848857Df0A5e7700950884c7E612af393d12",
"validator_code": "NOBI-102",
"amount": 1,
"minimum_shares_to_mint": 0,
"max_slippage_percentage": null,
"exchange_rate": null,
"exchange_rate_precision": null,
"allowance_tx": "0x861ce2a677d509cda697a6d81165e95ab491e83a7f494662b5f98be766f1687a",
"allowance_address": "0x5e3ef299fddf15eaa0432e6e66473ace8c13d908",
"delegate_tx": "0x29d302651c5a0e0ae3880d34684687ed343a5ae911b24a309fa7080a954a6adc",
"callback_url": "https://example.com/staking/update"
},
"created_at": "2024-01-31T15:00:00Z",
"updated_at": "2024-01-31T15:00:00Z",
"expired_at": "2024-01-31T17:00:00Z"
}