NEW TECH TALK
How bZx uses Chainlink Keepers.
Join us for a live Q&A

Securely connect smart contracts with off-chain data and services

Chainlink decentralized oracle networks provide tamper-proof inputs, outputs, and computations to support advanced smart contracts on any blockchain.

有问题吗? 

AAVE的logo
Synthetix的logo
Paxos logo
Celsius的logo
Nexus Mutual的logo
ENS的logo
AAVE的logo
Synthetix的logo
Paxos logo
Celsius的logo
Nexus Mutual的logo
ENS的logo

Start building your hybrid smart contract with Chainlink

Data & Services
RUN
Market Data
function getThePrice() public view returns (int) {
       (
           uint80 roundID,
           int price,
           uint startedAt,
           uint timeStamp,
           uint80 answeredInRound
       ) = priceFeed.latestRoundData();
       return price;
   }
RUN
Weather Data
function requestAvgTemp(
   ) external {
       Chainlink.Request memory req = buildChainlinkRequest(
           avgTempJobId,
           address(this),
           this.fulfillAvgTemp.selector
       );
       sendChainlinkRequest(req, fee);
   }
RUN
Sports Data
function requestScore(
   ) external {
       Chainlink.Request memory req = buildChainlinkRequest(
           sportScoreJobId,
           address(this),
           this.fulfillWinner.selector
       );
       sendChainlinkRequest(req, fee);
   }
RUN
Keepers
function checkUpkeep(
   bytes calldata checkData
 )
   external
   returns (
       bool upkeepNeeded,
       bytes memory performData
   );
RUN
随机数
function getRandomNumber(uint256 seed) public returns (bytes32 requestId) {
       return requestRandomness(keyHash, fee, seed);
   }

function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
       randomResult = randomness;
   }
RUN
Any Api
function requestData() public returns (bytes32 requestId)
{
   Chainlink.Request memory request = buildChainlinkRequest(jobId, address(this), this.fulfill.selector);
   request.add("get", "https://my-api.com/endpoint");
   request.add("path", "status");    
   return sendChainlinkRequestTo(oracle, request, fee);
}
function fulfill(bytes32 _requestId, uint256 _response) public recordChainlinkFulfillment(_requestId)
{
   response = _response;
}

安全灵活的基础架构

可靠、防篡改的网络

采用去中心化架构、可信节点、付费数据和加密证明技术将任何智能合约连接至非常准确可靠的数据和API接口。

与任何API无缝连接

Build on a flexible framework that can retrieve data from any API, connect with existing systems, and integrate with any current or future blockchain.

Proven, ready-made solutions

Integrate pre-built, time-tested oracle solutions that already secure tens of billions in smart contract value for market-leading decentralized applications.

Secure off-chain computation

Use a decentralized network of Chainlink Keeper nodes to automate contracts, mitigating risk of manual interventions and centralized servers.

什么是Chainlink?

Powering the future of smart contracts

开始使用Chainlink开发

加入Chainlink的全球开源社区

Chainlink是开源技术,其社区规模庞大,包括开发者、研究者和用户。
社区拥有一个共同目标,那就是将Chainlink发展成一项公共事业,造福整个区块链生态。

加入Chainlink社区激励计划

Chainlink新闻

获得最新的Chainlink新闻