哈喽,大家好!我是陪你一起撸空投的加密小师妹Monica。
Hello, everyone! I'm Monica, the little encoded teacher with you.
大家好呀,今天不是教程哦\~是我第一次用mirror的形式发表内容类文章。所以正好趁这篇文章跟大家聊一聊(心里话\~),时间紧张的小伙伴们可以跳过,下面会有本次文章的重点内容哦!
Hey, guys, it's not a tutorial today. It's the first time I've published an article in Mirror's form. So let's talk about it.
为什么想写这篇文章呢?(初衷)
Why do you want to write this article?
首先,关注小师妹的小伙伴们大部分都知道,我的账号基本从八月份开始写的系列都是以早期项目教程为主。可是作为一个内容创作者,输出类型只有简单的教学内容,未免会有一些太过单调,我也希望努力在输出的过程中得到更多的成长!
First of all, most of the young people who focus on the young girls know that my accounts have been mostly based on early project curricula since August. But, as a content creator, the type of output is simple, it's a little too monolithic, and I want to try to get more growth in the process.
其次,“授人以鱼不如授人以渔”这个观点,我是部分认可的。因为每个人的情况不一样,关注我的小伙伴相信有大部分是兼职来参与币圈的,每个人的时间成本不一样,所以很多人的诉求都是我用最短的时间能够交互更多的项目,提升效率。但是,写这篇教程,希望会给一些新进币圈的小伙伴带来学习思路,币圈的赚钱方式有很多种
Second, I agree in part with the idea that "fishing is less than fishing." Because everyone's different, looking at my little partner believes that most of them are part-time and that the cost of time is different, so a lot of people are asking that I can interact with more projects and improve efficiency in the shortest possible time. But, writing this lesson, hopefully, will bring learning ideas to some of the new ones, and there are many ways to earn money in the currency.
但是成为科学家是普通人为数不多的只需要自身知识以及努力就可以获得财富快速积累的通道,实现弯道超车。
最后呢,还是那句话熊市慢慢积累,现在的市场行情确实不好,如果你能通过本篇文章思路开始学习,并且有所收获,那我简直太开心啦。
And finally, it's just that Bear City is slowly building up, and it's really not a good market, and I'm so happy if you can start learning through the thinking of this article and learn something.
重点导读:
Focused Guide:
整篇文章,我会分为两部分,大家自行选择。
I'll split the whole article into two parts, so you can choose.
- 第一部分为关于脚本抢购原理的解析,适合有一定计算机代码基础的小伙伴。
适用场景:对于一些热度比较高的项目一般都很难抢,所以会有玩家在规则内自己编写脚本抢购,一般来讲,由于是直接与合约进行交互,不受平台加载速度和操作速度的影响,这使得使用脚本更容易参与抢购。
applies: For some projects with higher heat, it is generally difficult to steal, so there are players in the rules who prepare their own scripts for purchase, generally because they interact directly with the contract and are not affected by the speed of the platform's loading and operation. makes the use of scripts easier to participate in the purchase.
有核心思路,代码部分小师妹是通过程序员朋友协助完成,也是小师妹最近开始学习代码的原因。
has a core idea, and the part of the code is done with the help of programmer friends, which is why the girls have recently started learning about the code.
这部分请注意:尽量不要在Github上复制其他人的代码,虽然有很多优秀的Builder在贡献,但我们还是要注意风险,学会自我开发代码。
Please note in this section: try not to copy other people's codes on Github, although there are a lot of excellent Builder contributions, but we have to be aware of the risks and learn to develop the code ourselves.
- 第二部分适合新手小伙伴,是小师妹整理的目前市面上的关于代码学习的路径,包括不仅限于:优质编程社区,学习思路与途径,以及免费的学习资源。这一部分是希望感兴趣的小伙伴,从零开始学习。种一颗树最好的时间是十年前,其次是现在。大家可以每天拿出一些时间进行学习,熊市目前来看还很漫长,日拱一卒是好的策略。
好啦,希望小伙伴们都能因为这篇文章收益,如果你喜欢小师妹这次的分享形式,请点赞收藏支持我,接下来我会带来更多适合新手小白的内容类文章\~
All right, let's hope the kids get paid for this article. If you like your little sister's sharing form, give me a complimentary collection to support me, and then I'll bring in more content-type articles suitable for the newcomer.
如果你想了解更多精品资讯以及空投教程,请关注加密小师妹的推特哦!还有更多的抽奖福利送给大家!
If you want to learn more about the good stuff and the air-drop program, please pay attention to the encrypt young lady's tweets! There are more prizes for you!
推特:@加密小师妹Monica
目录
那今天我们来简单的探索抢购脚本的编写,由于抢购的平台类型有很多,我们以抢购某平台的Nft为例来进行分析。文章后续以NPF表示该平台。
So today we explore simply how to buy scripts, and because of the variety of platforms that we buy, we analyse them with the example of the Nft that buys a platform. The post goes after the platform with NPF.
我们选择BSC公链,在安装了小狐狸钱包的浏览器打开NPF平台,使用USDT抢购Nft,在点击抢购后:
We chose the BSC public chain, opened the NPF platform with a browser with a fox wallet, bought Nft using USDT, and after clicking on it:
1、小狐狸会弹出授权USDT的交互窗口;
1. The fox will eject the interactive window of the authorized USDT;
2、授权USDT成功后,会再弹出一个窗口提示发送USDT进行抢购;两步骤完成后,抢购完成。
2. Once the USDT is authorized to succeed, a window alert will be ejected to send the USDT for purchase; when the two steps are completed, the grab is completed.
注:如果抢购要求是使用BNB参与,则第一步忽略。
Note: The first step is ignored if the demand is to involve BNB.
我们通过合约或操作经验得出NPF平台抢购分为两步骤,接下来我们来分析怎么使用脚本完成这两步骤。
Our contractual or operational experience has led to two steps for the NPF platform, followed by an analysis of how to use scripts to complete both steps.
操作设备环境:Windows;
Operating equipment environment: Windows;
技术栈(所用到的语言):JavaScript、 web3.js?;
Technical Pavilion: JavaScript, web3.js?
bscscan:https://bscscan.com/
IDE(编写代码的软件):VSCode
IDE (software for code writing): VSCode
一、使用脚本给NPF平台抢购合约授权USDT(也可以在bscscan上直接操作approve方法),可以在抢购未开始之前就进行授权,节约抢购时间。
. Use scripts to buy contracts for NPF platforms to authorize USDT (which can also operate the approve method directly on bscan) to save purchase time before the purchase starts.
重点说明:USDT授权完成后,则该合约可以直接从授权的钱包直接转出USDT,所以在授权的时候我们一般是用多少授权多少,不要设置成无限制,因为一旦该平台的合约被黑客掌控,那么授权过的钱包就会被盗窃,这是很多玩家钱包被盗的主要因素。
1)首先我们找到NPF平台在链上部署的抢购合约,一般抢购平台的合约都会开源,这里我们只需要拿到合约地址即可。
1) First, we find a contract for the purchase of the NPF platform on the chain, and usually the contract for the purchase of the platform is open, where we just need to get the address of the contract.
2)在bscscan上找到USDT的合约,以及合约的部署的ABI,将ABI复制出来存储成JSON文件。ABI文件里的代码里存在着我们与链上交互的方法。
2) Find the USDT contract on the bsccan, and the ABI on the deployment of the contract, copy ABI and store it in a JSON file. There is a way in the code in the ABI file that we interact with the chain.
检查第一步我们所需的资源:USDT合约地址、你的钱包地址,钱包私钥、NPF平台抢购合约地址。
Check the first step of our resource requirements: USDT contract address, your wallet address, wallet key, NPF platform purchase contract address.
在JavaScript代码里调用这个函数即可完成授权。以下代码仅供参考
Call this function in the JavaScript code to complete the authorization.
二、发送USDT抢购
授权完成后,调用NPF抢购合约里的抢购函数,可以直接去bscscan上查看,或者在代码里打印查看,这里我们从NPF合约的ABI里找到的抢购函数为IGO。
Once the authorization has been completed, call NPF for the grab function in the contract to view it directly on the bsccan, or print it in the code, where the grab function we found in the NPF contract's ABI is IGO.
检查第二步我们所需的资源:抢购钱包地址、抢购钱包私钥、NPF抢购平台的ABI、NPF抢购平台的合约地址、从NFP抢购平台的ABI找到的抢购函数。
Check the second step of our resource requirements:
NPF抢购平台的ABI、NPF抢购平台的合约地址可以参考USDT的ABI和合约地址查找办法。
The contract addresses of the NPF for the platform ABI, the NPF for the platform can be found by reference to the USDT for ABI and the contract address.
在JavaScript代码里调用panicBuy函数即可完成调用即可。一般来讲可以设置定时或者轮询执行这个函数达到抢购的目的。以下代码仅供参考
Call the panicBuy function in the JavaScript code to complete the call. Normally, you can set a time or call to execute the function for the purpose of the purchase. the following code is used for information only
这里小师妹自己选择的是Python作为入门语言,这门语言比较简单高效,更适合新手入门,可以完成脚本编写,爬虫,数据分析等,并且适用于币圈。作为分享,欢迎补充\~
Python, which is a simple and efficient language, better suited to a newcomer, can complete scripting, reptiles, data analysis, etc., and apply to currency circles. As a share, welcome additions.
一、学习路径,思维导图
i. Learning path, mind chart
1.Python:一文总结学习 Python 的 14 张思维导图
1. Python: A summary study of Python's 14 mind charts
https://blog.csdn.net/csdnnews/article/details/78248699
2.Python学习路线图,链接:https://pan.baidu.com/s/1THvc3FxlCxmvNNoLnbnjrA
Python Learning Road Map, Link: https://pan.baidu.com/s/1THvc3FxlCxmvNNoLnbnjrA
提取码:aozp
Extract code: aozp
二、免费教程资源(国内网站)搜索关键词就可以。
II. Search keywords for free tutorial resources (domestic website) are available.
1.菜鸟教程:https://www.runoob.com/
2.慕课网:https://www.imooc.com/
3.B站:https://www.bilibili.com
1. Tutorial course:
2. Tuition net:
3.B Station:
三、国内外比较大的代码交流社区
iii. Larger code exchange communities at home and abroad
国内
National
1.博客园是一个面向开发者的知识分享社区 网址:https://www.cnblogs.com/
1. The Blog Park is a knowledge-sharing community for developers web site:
2.CSDN为一中文资讯技术知识服务网站,业务有资讯技术传播与交流、教育培训和专业技术人才服务。网址:www.csdn.net
2. CSDN is a Chinese-language information technology knowledge service, which operates as an information technology dissemination and communication, educational training and professional skills service. Web site: www.csdn.net
3.登链社区 网址:https://learnblockchain.cn/manuals
3. Link-up communities Website: https://learnblockchain.cn/manuals
4.奇客谷教程 网址:https://www.qikegu.com/#pos-blockchain
5.WTF学院 网址:https://wtf.academy/
国外
5. WTF College Web site:
abroad
1.GitHub 是一个代码托管云服务网站,主要用于软件开发者存储和管理其项目源代码,且能够追踪、记录并控制用户对其代码的修改。 网址:https://github.com
2.Stack Overflow 作为全球最大的技术问答网站,可以说每个搞过技术的人是必上的网站。
网址:stackoverflow.com/
GitHub is a code-hosting cloud service website that is primarily used by software developers to store and manage their project source codes and can track, record and control user changes to their codes.
四、其他资源
1.我在推特上分享过一个早期web3在线学习编程网站,可以埋伏早期空投,并且免费学习Move语言,未来会开放python,java等其他课程。缺点就是太过早期,课程太少,保持关注
1. I shared on Twitter an early web3 online learning programming site that could ambush early airdrops and learn Move language free of charge, with other courses such as python, java and others open in the future.
https://twitter.com/Monica_xiaoM/status/1590351478853898240?s=20&t=HU48ZMA8I_Vb4ds_cecmLw
2.wuzhe大佬在推特分享的所有语言汇总教程。
2. Big wuzhe shared a summary of all languages on Twitter.
https://twitter.com/realwuzhe/status/1591519010528821250?s=20&t=kzrtFlqEMdOxq1uNhDnrtw
小师妹也是在积累学习,希望小伙伴们可以多多跟我分享优质资源,欢迎补充!
They're learning, too, and they're hoping that they can share the quality of their resources with me.
今天又是期待好运大毛降临的一天,散会!
It's another day to look forward to luck. This is the end of the meeting!
如果你在操作过程中有任何疑问,欢迎在推特上私信小师妹。
If you have any questions in the operation, you are welcome to write to your sister on Twitter.
关注我的推特,接下来小师妹会推出更多空投教程,陪你一起撸到人生的第一个百万空投
https://twitter.com/Monica_xiaoM
原文地址:https://mirror.xyz/0x1890.eth/FI3cweXx3UZ2irrA9Y6RIK-xkjRcGxCJMmGUHkMPkaE
注册有任何问题请添加 微信:MVIP619 拉你进入群
打开微信扫一扫
添加客服
进入交流群
发表评论