Skip to content

Commit f126788

Browse files
committed
add account status
1 parent c41cdb9 commit f126788

File tree

1 file changed

+16
-2
lines changed
  • docs/tools/clients/fcl-js

1 file changed

+16
-2
lines changed

docs/tools/clients/fcl-js/api.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -2067,6 +2067,20 @@ The format of all responses in FCL returned from `fcl.send(...)`. For full detai
20672067
| `eventIndex` | number | Used to prevent replay attacks. |
20682068
| `data` | any | The data emitted from the event. |
20692069
2070+
### `Account Status Event Object`
2071+
2072+
| Key | Value Type | Description |
2073+
| ------------------ | ----------------------- | ----------------------------------------------------------------------------------------------------- |
2074+
| `blockId` | string | ID of the block that contains the event. |
2075+
| `blockHeight` | number | Height of the block that contains the event. |
2076+
| `blockTimestamp` | string | The timestamp of when the block was sealed in a `DateString` format. eg. `'2021-06-25T13:42:04.227Z'` |
2077+
| `type` | [EventName](#eventname) | A string containing the event name. |
2078+
| `transactionId` | string | Can be used to query transaction information, eg. via a Flow block explorer. |
2079+
| `transactionIndex` | number | Used to prevent replay attacks. |
2080+
| `eventIndex` | number | Used to prevent replay attacks. |
2081+
| `data` | any | The data emitted from the event. |
2082+
| `accountAddress` | [Address](#address) | The address of the account where the status change occurred. |
2083+
20702084
### `Transaction Statuses`
20712085
20722086
The status of a transaction will depend on the Flow blockchain network and which phase it is in as it completes and is finalized.
@@ -2261,9 +2275,9 @@ interface SubscriptionParams<T extends SubscriptionTopic> {
22612275
| `"blocks"` | [`SubscriptionArgs<"blocks">`](#blocks-blockheaders-blockdigests) | [`Block`](#blockobject) |
22622276
| `"block_headers"` | [`SubscriptionArgs<"block_headers">`](#blocks-blockheaders-blockdigests) | [`BlockHeader`](#blockheaderobject) |
22632277
| `"block_digests"` | [`SubscriptionArgs<"block_digests">`](#blocks-blockheaders-blockdigests) | [`BlockDigest`](#blockdigestobject) |
2264-
| `"account_statuses"` | [`SubscriptionArgs<"account_statuses">`](#accountstatuses) | [`AccountStatus`] |
2278+
| `"account_statuses"` | [`SubscriptionArgs<"account_statuses">`](#accountstatuses) | [`AccountStatusEvent`](#account-status-event-object) |
22652279
| `"transaction_statuses"`| [`SubscriptionArgs<"transaction_statuses">`](#transaction-statuses-2) | [`TransactionStatus`](#transactionstatusobject) |
2266-
| `"events"` | [`SubscriptionArgs<"events">`](#events-2) | [`Event`] |
2280+
| [`"events"`](#event-object) | [`SubscriptionArgs<"events">`](#events-2) | [`Event`] |
22672281
22682282
### `SubscriptionTopic`
22692283

0 commit comments

Comments
 (0)