Skip to content

OnChainEvents

OnChainEvent

FieldTypeLabelDescription
typeOnChainEventTypeThe type of onchain event
chain_iduint32The chain id for the event
block_numberuint32The block number for the event
block_hashbytesThe block hash for the event
block_timestampuint64The block timestamp for the event
transaction_hashbytesThe transaction hash for the event
log_indexuint32The log index for the event
fiduint64The fid the event is associated with
bodySignerEventBody,
SignerMigratedEventBody,
IdRegisterEventBody,
StorageRentEventBody
oneOf
tx_indexuint32The tx index for the event

OnChainEventType

NameNumberDescription
EVENT_TYPE_NONE0
EVENT_TYPE_SIGNER1
EVENT_TYPE_SIGNER_MIGRATED2
EVENT_TYPE_ID_REGISTER3
EVENT_TYPE_STORAGE_RENT4

SignerEventBody

FieldTypeLabelDescription
keybytesThe bytes of the public key for the signer
key_typeuint32The type of the key (currently only set to 1)
event_typeSignerEventTypeThe type of the signer event
metadatabytesThe metadata associated with the key
metadata_typeuint32The type of the metadata (currently only set to 1)

SignerEventType

NameNumberDescription
SIGNER_EVENT_TYPE_NONE0
SIGNER_EVENT_TYPE_ADD1
SIGNER_EVENT_TYPE_REMOVE2
SIGNER_EVENT_TYPE_ADMIN_RESET3

SignerMigratedEventBody

FieldTypeLabelDescription
migrated_atuint32The timestamp at which hubs were migrated to OP mainnet

SignerEventBody

FieldTypeLabelDescription
tobytesThe address the fid was registers/transferred to
event_typeIdRegisterEventTypeThe type of the id register event
frombytesThe address the transfer originated from
recover_addressbytesThe recovery address for the fid

IdRegisterEventType

NameNumberDescription
ID_REGISTER_EVENT_TYPE_NONE0
ID_REGISTER_EVENT_TYPE_REGISTER0
ID_REGISTER_EVENT_TYPE_TRANSFER0
ID_REGISTER_EVENT_TYPE_CHANGE_RECOVERY0

StorageRentEventBody

FieldTypeLabelDescription
payerbytesThe address of the payer
unitsuint32The number of units of storage purchased
expiryuint32The timestamp at which these units of storage will expire