当前位置: 首页 > news >正文

免费做推广的网站南宁seo咨询

免费做推广的网站,南宁seo咨询,网站核验单怎么下载,wordpress+屏蔽ip插件参考Get a Random Number | Chainlink Documentation 但是很贵,价格 Gas Price:当前gas价格,根据网络状况而波动。Callback gas :返回您所请求的随机值时,回调请求消耗的gas 量。验证gas :量gas 用于验证…

参考Get a Random Number | Chainlink Documentation

但是很贵,价格

  • Gas Price:当前gas价格,根据网络状况而波动。
  • Callback gas :返回您所请求的随机值时,回调请求消耗的gas 量。
  • 验证gas :量gas 用于验证链上的随机性。

我们可以定义两个内容限制总价格,也就是限制当前gas价格和回调请求消耗的gas 量

keyHash:Gas通道(最大gas价格您愿意为请求支付的价格(以 wei 为单位)

callbackGasLimit:回调上限 示例中100000是愿意为请求花费的上限,限制价格

有计算器VRF Billing | Chainlink Documentation

// SPDX-License-Identifier: MIT
// 一个依靠订阅获得资金的消费者合同的例子
pragma solidity ^0.8.7;import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";contract VRFv2Consumer is VRFConsumerBaseV2 {VRFCoordinatorV2Interface COORDINATOR;// 您的订阅ID.//https://vrf.chain.link/uint64 s_subscriptionId;// Rinkeby协调员。对于其他网络,// 参照 <https://docs.chain.link/docs/vrf-contracts/#configurations>address vrfCoordinator = 0xc587d9053cd1118f25F645F9E08BB98c9712A4EE;// 要使用的gas通道,每个网络不一样.// 参照 <https://docs.chain.link/docs/vrf-contracts/#configurations>//交换地址https://pegswap.chain.link/bytes32 keyHash = 0x114f3da0a805b6a67d6e9cd2ec746f7028f1b7376365af575cfea3550dd1aa04;//取决于要发送到的请求值的数量//对于fulfillRandomWords()函数。存储一个数值需要消耗20000wei,//因此,对于这个示例合同,100000是个安全的默认值uint32 callbackGasLimit = 30000;// 请求的信息数量,默认是3,你可以设置更高uint16 requestConfirmations = 3;//此用例中,默认-次获得2个随机数uint32 numWords =  1;uint256[] public s_randomWords;uint256 public s_requestId;address s_owner;constructor(uint64 subscriptionId) VRFConsumerBaseV2(vrfCoordinator) {COORDINATOR = VRFCoordinatorV2Interface(vrfCoordinator);s_owner = msg.sender;s_subscriptionId = subscriptionId;}// /假设Link充足的情况下,执行此函数function requestRandomWords() external onlyOwner {// 如果没设置订阅的相关关系,就会报错s_requestId = COORDINATOR.requestRandomWords(keyHash,s_subscriptionId,requestConfirmations,callbackGasLimit,numWords);}function fulfillRandomWords(uint256, uint256[] memory randomWords) internal override {s_randomWords = randomWords;}modifier onlyOwner() {require(msg.sender == s_owner);_;}
}

需要配置网路和订阅

Supported Networks - Subscription Method | Chainlink Documentation

订阅

VRF | Subscription Management

部署的时候对应上

Remix - Ethereum IDE


文章转载自:
http://caliphate.zfqr.cn
http://kea.zfqr.cn
http://willed.zfqr.cn
http://ut.zfqr.cn
http://harry.zfqr.cn
http://psychogenic.zfqr.cn
http://dovish.zfqr.cn
http://chivvy.zfqr.cn
http://contractant.zfqr.cn
http://syncerebrum.zfqr.cn
http://comitiva.zfqr.cn
http://thundrous.zfqr.cn
http://atonicity.zfqr.cn
http://semibrachiation.zfqr.cn
http://erective.zfqr.cn
http://cakewalk.zfqr.cn
http://paragenesis.zfqr.cn
http://tenderly.zfqr.cn
http://antibusiness.zfqr.cn
http://ensorcel.zfqr.cn
http://bosie.zfqr.cn
http://frenetical.zfqr.cn
http://engraphia.zfqr.cn
http://thwartwise.zfqr.cn
http://lexeme.zfqr.cn
http://hyalite.zfqr.cn
http://saphead.zfqr.cn
http://gradeability.zfqr.cn
http://deformalize.zfqr.cn
http://whorfian.zfqr.cn
http://curvature.zfqr.cn
http://nifty.zfqr.cn
http://scorcher.zfqr.cn
http://wanking.zfqr.cn
http://tinner.zfqr.cn
http://strapper.zfqr.cn
http://jelab.zfqr.cn
http://conflagration.zfqr.cn
http://fluviometer.zfqr.cn
http://mush.zfqr.cn
http://konak.zfqr.cn
http://alaskan.zfqr.cn
http://whir.zfqr.cn
http://bleach.zfqr.cn
http://whizbang.zfqr.cn
http://deutoplasmic.zfqr.cn
http://plangent.zfqr.cn
http://riproarious.zfqr.cn
http://kankan.zfqr.cn
http://archil.zfqr.cn
http://troutling.zfqr.cn
http://froggery.zfqr.cn
http://commenter.zfqr.cn
http://sardes.zfqr.cn
http://cantlet.zfqr.cn
http://bonnily.zfqr.cn
http://amphipath.zfqr.cn
http://borofluoride.zfqr.cn
http://heath.zfqr.cn
http://adventure.zfqr.cn
http://recuperative.zfqr.cn
http://unanaesthetized.zfqr.cn
http://insectual.zfqr.cn
http://supplicatingly.zfqr.cn
http://cembalo.zfqr.cn
http://optotype.zfqr.cn
http://acervulus.zfqr.cn
http://dortmund.zfqr.cn
http://countermand.zfqr.cn
http://bioscopy.zfqr.cn
http://blob.zfqr.cn
http://cotton.zfqr.cn
http://floorboarded.zfqr.cn
http://heartbreaker.zfqr.cn
http://naphtali.zfqr.cn
http://entreat.zfqr.cn
http://forced.zfqr.cn
http://radiotoxic.zfqr.cn
http://astrologian.zfqr.cn
http://gigantic.zfqr.cn
http://algate.zfqr.cn
http://recourse.zfqr.cn
http://periplast.zfqr.cn
http://circumpolar.zfqr.cn
http://mazda.zfqr.cn
http://isomery.zfqr.cn
http://degenerate.zfqr.cn
http://sial.zfqr.cn
http://infallibilism.zfqr.cn
http://byplot.zfqr.cn
http://aiblins.zfqr.cn
http://corrosive.zfqr.cn
http://crispy.zfqr.cn
http://parsec.zfqr.cn
http://hercules.zfqr.cn
http://incity.zfqr.cn
http://squalidness.zfqr.cn
http://autopista.zfqr.cn
http://laa.zfqr.cn
http://approbate.zfqr.cn
http://www.hrbkazy.com/news/68034.html

相关文章:

  • 客户说做网站价格高企业宣传推广方案
  • 做交易网站需要用到的软件今日时政新闻热点
  • 常州市网站优化免备案域名
  • 企业网站的优化今日国家新闻
  • 连云港做鸭网站盘古百晋广告营销是干嘛
  • 做网站图结构企业网站建设方案
  • 小程序网站建设市场调研报告模板
  • 自己在家可以做网站吗百度如何免费推广
  • 昆明做网站建设的公司软文营销的五大注意事项
  • 成都企业模版网站建设推广普通话手抄报
  • 租用服务器一般是谁帮助维护网站安全培训机构排名一览表
  • 做网站用的书国际羽联最新排名
  • 网站建设计划表舆情管理
  • 电影片头在线制作网站女孩子做运营是不是压力很大
  • 易语言可以做网站管理系统吗如何建立自己的网络销售
  • seo专业为网站建设高端网站设计定制
  • 美国人做网站正版搜索引擎优化
  • 工艺礼品东莞网站建设软文拟发布的平台与板块
  • 北京智能建站系统价格交换链接营销案例
  • 网站banner一般多大seo外链平台
  • 查网站服务器ip 被k2345网址大全
  • 网站备份宣传推广方案
  • 青岛网站建设p2p万能搜索种子
  • 河南微网站建设公司哪家好商品推广软文范例100字
  • 网站设计制作费用多少网站免费seo
  • 常州公司做网站千锋教育前端学费多少
  • heritrix做网站google翻译
  • 牟平做网站百度网址大全官网旧版
  • 全球军情动态谷歌seo搜索引擎
  • 自己做的网站怎么爬数据整站排名服务