Core Events
Core events are events emitted directly from the Flow Virtual Machine (FVM). The events have the same name on all networks and do not follow the standard naming (they have no address).
Refer to the public key section for more details on the information provided for account key events.
Account Created
Event that is emitted when a new account gets created.
Event name: flow.AccountCreated
_10access(all)_10event AccountCreated(address: Address)
Field | Type | Description |
---|---|---|
address | Address | The address of the newly created account |
Account Key Added
Event that is emitted when a key gets added to an account.
Event name: flow.AccountKeyAdded
_10access(all)_10event AccountKeyAdded(_10 address: Address,_10 publicKey: PublicKey,_10 weight: UFix64,_10 hashAlgorithm: HashAlgorithm,_10 keyIndex: Int_10)
Field | Type | Description |
---|---|---|
address | Address | The address of the account the key is added to |
publicKey | PublicKey | The public key added to the account |
weight | UFix64 | Weight of the new account key |
hashAlgorithm | HashAlgorithm | HashAlgorithm of the new account key |
keyIndex | Int | Index of the new account key |
Account Key Removed
Event that is emitted when a key gets removed from an account.
Event name: flow.AccountKeyRemoved
_10access(all)_10event AccountKeyRemoved(_10 address: Address,_10 publicKey: PublicKey_10)
Field | Type | Description |
---|---|---|
address | Address | The address of the account the key is removed from |
publicKey | Int | Index of public key removed from the account |
Account Contract Added
Event that is emitted when a contract gets deployed to an account.
Event name: flow.AccountContractAdded
_10access(all)_10event AccountContractAdded(_10 address: Address,_10 codeHash: [UInt8],_10 contract: String_10)
Field | Type | Description |
---|---|---|
address | Address | The address of the account the contract gets deployed to |
codeHash | [UInt8] | Hash of the contract source code |
contract | String | The name of the contract |
Account Contract Updated
Event that is emitted when a contract gets updated on an account.
Event name: flow.AccountContractUpdated
_10access(all)_10event AccountContractUpdated(_10 address: Address,_10 codeHash: [UInt8],_10 contract: String_10)
Field | Type | Description |
---|---|---|
address | Address | The address of the account where the updated contract is deployed |
codeHash | [UInt8] | Hash of the contract source code |
contract | String | The name of the contract |
Account Contract Removed
Event that is emitted when a contract gets removed from an account.
Event name: flow.AccountContractRemoved
_10access(all)_10event AccountContractRemoved(_10 address: Address,_10 codeHash: [UInt8],_10 contract: String_10)
Field | Type | Description |
---|---|---|
address | Address | The address of the account the contract gets removed from |
codeHash | [UInt8] | Hash of the contract source code |
contract | String | The name of the contract |
Inbox Value Published
Event that is emitted when a Capability is published from an account.
Event name: flow.InboxValuePublished
_10access(all)_10event InboxValuePublished(provider: Address, recipient: Address, name: String, type: Type)
Field | Type | Description |
---|---|---|
provider | Address | The address of the publishing account |
recipient | Address | The address of the intended recipient |
name | String | The name associated with the published value |
type | Type | The type of the published value |
To reduce the potential for spam, we recommend that user agents that display events do not display this event as-is to their users, and allow users to restrict whom they see events from.
Inbox Value Unpublished
Event that is emitted when a Capability is unpublished from an account.
Event name: flow.InboxValueUnpublished
_10access(all)_10event InboxValueUnpublished(provider: Address, name: String)
Field | Type | Description |
---|---|---|
provider | Address | The address of the publishing account |
name | String | The name associated with the published value |
To reduce the potential for spam, we recommend that user agents that display events do not display this event as-is to their users, and allow users to restrict whom they see events from.
Inbox Value Claimed
Event that is emitted when a Capability is claimed by an account.
Event name: flow.InboxValueClaimed
_10access(all)_10event InboxValueClaimed(provider: Address, recipient: Address, name: String)
Field | Type | Description |
---|---|---|
provider | Address | The address of the publishing account |
recipient | Address | The address of the claiming recipient |
name | String | The name associated with the published value |
To reduce the potential for spam, we recommend that user agents that display events do not display this event as-is to their users, and allow users to restrict whom they see events from.
Storage Capability Controller Issued
Event that is emitted when a storage capability controller is created and issued to an account.
Event name: flow.StorageCapabilityControllerIssued
_10access(all)_10event StorageCapabilityControllerIssued(id: UInt64, address: Address, type: Type, path: Path)
Field | Type | Description |
---|---|---|
id | UInt64 | The ID of the issued capability controller |
address | Address | The address of the account which the controller targets |
type | Type | The kind of reference that be obtained with capabilities from this controller |
path | Path | The storage path this controller manages |
Account Capability Controller Issued
Event that is emitted when an account capability controller is created and issued to an account.
Event name: flow.AccountCapabilityControllerIssued
_10access(all)_10event AccountCapabilityControllerIssued(id: UInt64, address: Address, type: Type)
Field | Type | Description |
---|---|---|
id | UInt64 | The ID of the issued capability controller |
address | Address | The address of the account which the controller targets |
type | Type | The kind of reference that be obtained with capabilities from this controller |
Storage Capability Controller Deleted
Event that is emitted when a storage capability controller is deleted.
Event name: flow.StorageCapabilityControllerDeleted
_10access(all)_10event StorageCapabilityControllerDeleted(id: UInt64, address: Address)
Field | Type | Description |
---|---|---|
id | UInt64 | The ID of the issued capability controller |
address | Address | The address of the account which the controller targets |
Account Capability Controller Deleted
Event that is emitted when an account capability controller is deleted.
Event name: flow.AccountCapabilityControllerDeleted
_10access(all)_10event AccountCapabilityControllerDeleted(id: UInt64, address: Address)
Field | Type | Description |
---|---|---|
id | UInt64 | The ID of the issued capability controller |
address | Address | The address of the account which the controller targets |
Storage Capability Controller Target Changed
Event that is emitted when a storage capability controller's path is changed.
Event name: flow.StorageCapabilityControllerTargetChanged
_10access(all)_10event StorageCapabilityControllerTargetChanged(id: UInt64, address: Address, path: Path)
Field | Type | Description |
---|---|---|
id | UInt64 | The ID of the issued capability controller |
address | Address | The address of the account which the controller targets |
path | Path | The new path this controller manages |
Capability Published
Event that is emitted when a capability is published.
Event name: flow.CapabilityPublished
_10access(all)_10event CapabilityPublished(address: Address, path: Path, capability: Capability)
Field | Type | Description |
---|---|---|
address | Address | The address of the account which the capability targets |
path | Path | The path this capability is published at |
capability | Capability | The published capability |
Capability Unpublished
Event that is emitted when a capability is unpublished.
Event name: flow.CapabilityUnpublished
_10access(all)_10event CapabilityUnpublished(address: Address, path: Path)
Field | Type | Description |
---|---|---|
address | Address | The address of the account which the capability targeted |
path | Path | The path this capability was published at |