API Version: v0.3.1

Register (Data Streams) v0.3.1 API Reference

Register (Data Streams)

A contract that stores and retrieves Data Streams network details for various chains.

Register

Structs

NetworkDetails

Contains Data Streams configuration details for a specific network/chain.

FieldTypeDescription
verifierProxyAddressaddressThe address of the Verifier Proxy contract
linkAddressaddressThe address of the LINK token contract

Functions

constructor

Initializes the contract with predefined network details.

constructor()

getNetworkDetails

Retrieves network details for a given chain ID.

function getNetworkDetails(uint256 chainId) external view returns (NetworkDetails memory networkDetails)

Parameters

ParameterTypeDescription
chainIduint256The ID of the chain to get the details for

Returns

ParameterTypeDescription
networkDetailsNetworkDetailsThe network details for the specified chain ID

setNetworkDetails

Sets the network details for a given chain ID.

function setNetworkDetails(uint256 chainId, NetworkDetails memory networkDetails) external

Parameters

ParameterTypeDescription
chainIduint256The ID of the chain to set the details for
networkDetailsNetworkDetailsThe network details to set for the specified chain ID

Get the latest Chainlink content straight to your inbox.