新手如何抄底

在币市中,每个人都希望能在合适的时间入场。低价买入,高价卖出,是我们追求赢利的理想手段,但大家往往掌握不到市场的节奏,总是在一波瀑布式下跌行情刚开始时,生怕买不到筹码,就着急买入,最终发现自己已经站在一个很高的价位,牢牢套住。

就抄底问题,本文将从以下三个部分进行阐述:该抄什么币?如何确定抄底时机?如何有效抄底?希望对大家有所启发。(事先声明:本文非软广,不推荐任何非主流币种,可放心阅读)

抄什么币?

币市空气币山寨币横行,这些币很大可能毫无底线一泻千里永不回头,将韭菜牢牢套紧。如果你不幸抄到这种币,很有可能血本无归。所以需要确定一点:不是什么币都值得去抄底,要对币进行精选,合理安排仓位。

了解币的分类,能帮助我们快速筛选掉很多没有价值的币种。一般来说,我们会把币分为价值币、山寨币和空气币。因为业界并没有对价值币、山寨币和空气币有具体的定义,我按照自己的理解,给大家进行一次分类,阐述下这些币的特征。

币的分类

1.价值币

价值币往往有其自身独特的价值体现,例如是一次技术革新,又或是找到了落地的商业化场景。总之,我们判断认为,能解决实际问题,并且可实现或已经实现,同时未来有成长空间的币就可以归类为价值币。如今市面上满足我心目中定义的价值币实际上就是BTC和ETH,EOS在6月之后,如果确实能落地,经受住市场考验,那也是价值币的一种。当然现在市面上比较公认的价值币不单单是BTC和ETH,我们到山寨币环节会讨论货币和代币的区别,主流的货币(coin)都可以重点关注。

2.山寨币

从代码的原创性来说,除了比特币,其他所有币都可以称为山寨币。包括以太坊(ETH),莱特币(LTC),瑞波币(XRP)等等,因为他们都是基于比特币的源代码之上,进行改进和升级之后出现的新币,因此我们也称他们为竞争币。

但当今3000亿美元的市场中,BTC只占了40%左右市值,而ETH、LTC、XRP等等市值比例越来越大,特别是ETH推出智能合约平台后,对BTC形成强有力的冲击,那我们还能说他们是山寨币吗?

实际上,可以用英文中coin和token的概念来重新定义山寨币。在英文中拥有主链的币都叫做coin,中文叫货币;而基于智能合约平台产生的币称为token,中文叫代币(个人更认可“通证”的翻译,但由于市场主流使用代币这一称谓,本文中我们使用代币指代token)。我认为token都可以叫做山寨币。看不懂没关系,我给大家两个网站,上面有分类。

英文网站(推荐):

https://coinmarketcap.com/

如图中红圈所示,可以看到分类后的结果。

要是觉得不方便,也可以看中文网站:

非小号

https://www.feixiaohao.com/

图中圆圈内,可以看到分类。

当然并不是说山寨币就不值得投资,例如各个交易平台发放的代币,就是拥有实际应用场景的代币。但各家交易平台代币是否价格虚高,是否还值得在现在投资,那是另一个问题了。

3.空气币

空气币专指没有应用场景、没有自己的主链,甚至连代码都没有的币。他们通过鼓吹自己的团队,请大佬站台背书,疯狂造势,各种拉群,目的就是ICO,就是圈钱。这样的币,虽然在开盘的时候确实有机会赚到很高的收益,但风险极高,普通人基本都是被割的命,希望大家千万远离,看到免费送糖果的一定要小心了。薅羊毛那就是另一回事了,关于薅羊毛的赚钱方法,未来的文章中会做讲解。

如何判断币的价值?

入圈的朋友都知道BTC是价值币值得抄底,但是有些朋友还是会觉得BTC价格较高且已经不能像百倍币、千倍币那样带来巨额利润(在此潘达君想说:希望每个朋友都能理性投资,切忌妄想一夜暴富,只用闲钱投资),因此想要寻找一些有潜力的价值币进行投资。

其实投资币其本质是投资一个项目,因此判断一个币是否有价值,我们需要做的是对其背后的项目进行分析判断。

这里潘达君总结一些看项目的方法和经验,希望对大家有所帮助(在此潘达君再次想说:投资是一件慎重的事情,在投资之前一定要结合信息进行独立思考判断,不要看到知乎或微信群有人说XX值得买就跟风)。

1.项目本身

很多人一看到白皮书就犯怵立马放弃,但如果真的想好好做价值投资的话,白皮书是绕不过的。这里说的白皮书是指白皮书原文(中文版翻译勉强可以接受),而不是其他人总结出的白皮书要点。通过阅读白皮书,你会对这个项目有更深的了解。在读白皮书的时候,你需要回答以下问题:

这个项目是做什么的,要解决什么问题或满足什么需求?

解决这个问题是否需要应用区块链?相比一些传统解决方案,应用区块链技术是否有突出优势?

这个项目在技术上是否有创新?是否能够解决现有的一些问题?

是否能与现实结合,未来拥有商业价值的可能性?

回答完这些问题之后,你大概就对这个项目有了基础的判断。

是不是又开始犯怵了?不用害怕,在深入研读白皮书之前,其实有一些简单的方法可以快速帮你过滤掉一些垃圾项目。

这些方法包括:

谷歌搜索某些段落,看看是否有雷同的项目白皮书(这里的雷同指的是行文用字几乎一样,多段雷同),如果类似项目白皮书写作在前的话,那么你要研究的项目很大可能是不靠谱的;

判断白皮书的行文和官方翻译版本是否易读(这里的易读指的是写作是否符合语法,没有错别字、胡乱断行、标点乱打这些情况),排版是否符合标准。这个也有用?!当然,你想想那些项目往往把自己团队和项目吹得天花乱坠,将来有可能募集到海量资金,而这样的团队居然连最重要的白皮书都敷衍了事,你觉得可靠吗?

大致看看白皮书的内容分配情况,是不是花了较多的篇幅去讲解项目本身、前景及技术实现,而不是车轱辘话来回说告诉你这个项目就是好就是好,但就是不好好跟你说说为什么好(相信我,我真的读过这样的白皮书……)。

通过这些简易方法,你能过滤掉很多垃圾项目,然后就能有较多的时间和精力去仔细研究那些通过筛选的项目(是的,这一步还是逃不掉的)。

2.团队情况

这里的团队主要是主创团队和顾问及投资人团队。

在调查主创团队时,你需要研究重要成员尤其是技术成员的履历(包括学历、从业经验等)。如果他在官网里写自己哈佛毕业,结果跟某明星一样其实是哈佛延伸教育学院毕业的,那这项目估计也是可以放下了。在这里要说明的是,我并不是觉得学历最重要,而是看重诚信。另外,如果你查到团队某技术大牛声称自己已经有七年区块链经验,但其实上家公司根本与区块链不相关的话,也要对这个项目打一个大大的问号。

在调查顾问和投资人时,可以查看下他们的从业经验以及他们与项目方之间的关系。光看资历和名气是没用的,毕竟大佬站台捞一波就走的情况我们又不是没见过。

3.辅助判断

还有一些方法可以帮助你辅助判断:

①GitHub代码更新情况

一般项目会在官网挂上自己的github链接,我们可以查看其代码质量(当然,还是需要程序员朋友的帮忙)以及更新频率。如果其代码就是几行字,但是白皮书里已经将技术吹上天的话,相信我,放下它去看一集电视可能会更好。

②团队技术博客

如果团队会定期输出技术博客说明开发进度的话,那对这个团队来说是加分的,至少他们在做事。当然,并不能因此就判断这个项目靠谱,因为很有可能是骗子团队在认真骗钱呢。

③社群活跃度

去相关的社群看一下项目粉丝的讨论以及团队方与粉丝的之间的互动。国外项目可以上FB、Twitter、Reddit、Telegram群组,国内项目可留意微博、微信公众号、微信群等。如果这个项目关注者寥寥,整个社群一片死寂的话,那么说明市场对其是没有兴趣甚至是没有信心的。当然,社群活跃也并不能说明它就好,也有可能是官方刷假粉丝,所以我一直强调要多因素联合考察。

④相关论坛讨论

可以去一些主流的相关论坛去搜索项目相关的讨论,看一下其他人都是如何评价它的。

潘达君一般看项目大致就是遵循以上这些流程,确实比起听到消息直接买来说是很耗精力和时间,但是我觉得还是很有必要的,因为钱毕竟是自己辛苦赚的,必须要谨慎。

什么时候抄?

好了,终于进入到大家最关心的部分:究竟什么时候可以抄底?如何判断?

首先,我们要先确定一点,即什么是“底”?很多人都以为“底”仅仅指的是币价抬升又下跌再抬升这个过程中的币价底部。但除此之外,还有一种“底”我称之为“相较于未来的底”,什么意思呢?举个栗子,BTC从一文不值发展到每币10刀、100刀、1000刀甚至1万刀,你如果100刀时入场,那么当时你在高点,但是相较于未来当时的所谓高点其实是底。同样地,1000刀相较于未来而言也是一个底部。那么1万刀美元是不是也是“相较于未来的底”呢?这个就不好说了,因为太多可预见和不可预见的因素都会共同影响比特币及其他主流币未来的币值。所以本文只讨论第一种情况,即如何在币价回调时抄底。

回到正题,究竟什么时候是抄底的时机呢?

首先,你要了解抄底技术指标。

抄底技术指标是什么?

不可否认,市场环境、政策消息、项目情况等等因素,严重的影响着市场的走向。我们不能盲目相信技术指标,但同时也要意识到,所有的市场情绪,最终都能在技术指标上有所体现。

那我们是否可能从技术面,分析K线图,找出抄底时机呢?潘达君接下来给大家讲解熊市底部特征以及使用成交量和MACD(指数平滑移动平均线)判断是否到底的方法。

1.熊市底部特征

图为2017年底ETC在牛市到来前的K线图。

如图所示,在熊市结束阶段,往往会伴随长时间的低交易量的价格上下震动,我们称为盘整。在盘整期间,主力为了在牛市前作准备,低价吸收筹码,导致价格上涨,之后进行砸盘,导致恐慌,价格下跌。一方面保证继续低价吸收筹码,另一方面对市场中不坚定的筹码进行清洗,保证在拉升时阻力较小,能尽可能用较低成本把价格拉升到较高位,同时也避免在拉升过程中砸盘情况的发生。因此,当主力准备拉升时,由于多次洗盘导致在震荡区间上方有很多卖单需要突破,所以往往需要进行放量。因此我们可以把长期震荡后的放量行情看作是熊转牛的信号点,考虑快速跟进操作。

2.使用MACD指标进行底部判断

在开始讲解前,我们先补充下MACD的基础知识。

MACD,Moving Average Convergence and Divergence,中文成为“指数平滑移动平均线”。

我们先不用理会其实现原理,但需要了解几个概念。如上图所示,红框内是火币网的MACD曲线,可以看到很多围绕中心线上下波动的柱状图:

当红色柱状图处于中心线上方时,表示市场多头势能较强;

当红色柱状图处于中心线下方时,表示市场空头势能较强;

红色柱状图越高,表明势能越强。

关于MACD的具体实现原理,我会在下一篇文章中进行讲解,届时也会给大家分享MACD的几种实战方法。

现在我们来看看如何使用成交量和MACD来判断市场是否见底。

依然2017年ETC在牛市到来前的K线图。

先说现象:我们看到左边箭头处,价格首先跌倒了底部,出现天量下影线,之后横盘进入震荡区间。在整个震荡区间内,势能不断萎缩,量能虽有一些波动,但也非常乏力,和刚刚跌入底部时的交易量相比,成萎缩的态势。注意看图中中部和后部两组箭头,在经历之前一段时间的震荡洗盘后,主 力在中间一组箭头位第一次尝试探底,测试盘面中不坚定筹码的数量,这次试探中交易量和势能都同时升高,但相比之前来说已经严重萎缩;在最后一组箭头位置,主力对盘中进行了二次探底,出现下影线,并且和第一次探底相比,不论是势能还是量能都成继续萎缩的态势。这种价格下跌但交易量和MACD反而缩小的情况,我们称为底背离。

再说原理:我们可以设想,当市场中价格探底或是冲顶时,往往伴随着多空双方激烈的博弈,所以在正常情况下会有较大交易量发生。当价格下跌底部位置一次比一次更低,但交易量和MACD变化反而一次比一次更小时,我们认为这时市场趋于稳定,主力的砸盘已经很难吸收到筹码,所以这时主力往往在寻找时机,跟随大环境快速拉升盘面,也就意味着牛市很可能在接下来不远的时间内到来。所以,出现底背离现象时,可能市场已经到了底部,是埋伏入场的时机。

回答具体的入场时间点是不切实际的,但通过技术指标,再结合市场环境等因素(市场大环境也非常重要不能忽视,我们之后会详细写一篇分析市场环境判断市场消息真假的文章),我们可以大概率猜测到市场是否见底。

抄底的方法是什么?

我们现在了解我们要抄底的目标,也知道了如何判断入场的时机,那正确的抄底姿势到底是怎么样的呢?

很简单,两种方法:分批入场;价值定投。

切忌梭哈!切忌梭哈!切忌梭哈!

即便当你看到多种信号证明牛市将要来临,也要根据入场的成功概率,分不同的仓位,进入市场,根据市场情况,及时调整。不论在任何市场中,生存是第一要素,当你满仓梭哈时,就承担着被一棒子打死的风险,你说你百分百有把握,试问有几人真能把握市场,未知因素肯定存在,所以根据自己判断概率进行仓位控制,通过市场反馈不断调整持仓方式,才能不做韭菜,成为长期盈利者。

当然也可以价值定投。

为自己设置定投时间或者价位,当到了预期的时间或价格,按照计划逐步买入。这样操作一段时间后,你的成本会控制在市场的均价附近。当市场价格达到你的预期之后,再将手中的筹码出售,不能一夜暴富,但保证收益!

By 潘达

拉盘砸盘群是怎么割韭菜的

在币圈,消息是最重要的事情,没有之一。

任何人都知道,比别人早一步知道利好和利空消息,就能赚到一大笔钱。

但是你知道,比别人早 10 秒获得一条消息需要付出什么代价么?近日一个外国记者在 Telegram 群中卧底得出了答案:

想要比其他韭菜早 10 秒知道庄家的砸盘消息,就要付出 10 个比特币的价格。

01、一个全新的割韭菜套路

各位看到这篇文章的大佬们、韭菜们,你们应该都经历过各种币的空投、预售阶段,在微信上看到一些人发「点击就送166/188个币,邀请好友再获88个币」的广告。

顺着链接科学上网、下载电报,然后加群,看到这个群从原本的几百人变成几千人,然后几万人。整个过程快的只需要数小时,慢的两三天就可以到了。

至于进群的目的:薅羊毛的投机心理,反正来都来了,万一这个币翻个倍呢。

随后,这个币顺利完成预售、众筹,顺利上交易所,发放空投奖励,然后庄家把价格做到几倍,有韭菜上钩开始买。等这个币彻底火了,最后庄家开始砸盘,数倍套现走人,留下一地鸡毛和一群被套得死死的韭菜。

这是不少虚拟货币的日常状态。你以为这就完了?当然没有,这些被套牢的韭菜虽然已经没有了价值,但是这个币对于头脑聪明的庄家来说,依旧是一笔不菲的财富。

BlockBeats区块律动近日在外网发现了一个全新的割韭菜套路,它的残忍程度比去交易所随便买币被套更残忍、更血腥,这就是今天要说的——拉盘砸盘群。

如果说币市的涨跌是因为信息的不对等造成的,那么拉盘砸盘群则是利用人为制造的信息时差来进行金融诈骗,只需要 30 分钟,就可以从数万人手中套出几十万美元的非法收入。

02、人为制造的信息时差

拉盘/砸盘群的原理很简单,就是利用信息时差。

什么是信息时差?

就是先把庄家砸盘的消息告诉一批人,等这批人出币完毕再告诉第二批,一批比一批的人数大。知道从未付费入群的你——也就是韭菜,知道所谓「内幕消息」的时候,其实已经是第 6~7 批了。

庄家目前一般在 Discord 和 Telegram 上建立两个公共房间/频道,随即开始宣布「这是一个大庄家建的群,有非常雄厚的比特币和以太坊资本,准备对某个平台的虚拟货币进行拉升操作,请留意。」

这个拉盘群显示下一次拉盘的时间是美国东部时间2月10日下午1点,交易所是币安,使用比特币交易

如果你想看到这个拉盘群的动向,庄家会要求你将庄家群的消息分享到自己的社交网络,拉更多的好友入群。

攒到足够的人之后,你在这个房间的等级就会提升,就可以进入 Discord 房间里#pump-info(拉盘信息)的另一个公共频道。

这个时候,你将进入内幕消息交易阶段。在庄家动用自己的资本拉盘的时候,你将获得相关的信息,在低位买入,等待时机高位抛出。这个过程,完成了和 ICO 空投的病毒式传播一样的过程。在很短的时间里,一个 Discord 频道就可以得到数万个成员。

但是这里有一个人为设置的信息时差,你会发现这个频道里有几万人在等待信息投喂去进行交易。

然而,你会发现庄家还设置专门的#Premium(高级群),这个高级群里,将有用比#pump-info(免费群)更高的权限,会比 #pump-info 的人快 5-6 秒获得拉盘信息。

即,当 #pump-info 群里的人收到消息的时候,#premium 群里的人已经在更低的价位上买入了虚拟货币。

想要进 #Premium 群吗?先要交 5000 美元。

一般人掏不起这个钱,同时也觉得这个钱和他们几十美元套利的收入差距太大,投入产出比不高,所以就会选择在 #pump-info 群里呆着,等待消息投喂。

你以为 #Premium 群就已经是第一手的消息了吗,太天真了。在庄家的核心群里,还有更多的秘密。

在 #Premium 群之上,还有庄家的核心群。

这个核心群也是可以付费进入的,但是价格要比 #Premium 更贵,通常要 1-10 个比特币才能进入。

这个群的设置与 #Premium 群的设置几乎是一样的,群内成员可以比 #Premium 群早5-6秒买入虚拟货币,买入价格更低,在高位抛出的时候获利更多。

至于核心群之上是否还有更多更核心的群,我们不得而知。

4

拉盘群有严格的等级制度和对应的权限

于是乎就有了这样的拉盘流程:

….–》核心群–》高级群–》普通群–》…

….–》发布消息–》6秒后–》12秒后–》…

5

开始拉盘之后,专家会统一设置一个拉盘高位,并且要求所有人在到达这个高位之前不准做出售动作,美其名曰「有钱大家一起赚,不到顶点不撒手」。但是这个高位,谁来决定呢?

除了最核心群的人之外,其他人只能傻等。当你发现自己扔进去的几十美元突然变成 100 多美元的时候,这个时候头上有个声音告诉你「朋友,顶点还没到,别抛,一会赚 2 倍!」,想必你是不会抛的。

6

庄家让韭菜买的币以公告的形式展示

在短短的几分钟内,一个原本没有交易量,币值到底的垃圾币,突然暴增数倍。好一场币圈大戏,是有重大利好消息吗?当然不是,庄家砸盘的大戏才刚刚开始。

7

庄家给出的拉盘信号演示图例

还记得上面人为制造的时间差吗?对,就是那加起来 12 秒的时间差。

核心庄家群会首先宣布消息「砸盘,卖出!」,6 秒后在 #Premium 群宣布「庄家已经砸盘,快卖」,12 秒后 #pump-info 群的人才能收到消息开始卖出。而对于完全没有加群的局外人来说,可能需要 1~2 分钟才能反应过来有人砸盘了。

卖出的动作从第一秒就开始进行,直到韭菜们发现自己的币已经卖不出去的时候,这场戏才算结束。

拉盘群在炫耀自己的战果:拉盘过程中交易量高达400比特币,约合500万美元

拉盘/砸盘群会通过炫耀战果,不断地诱惑新人进入骗局。

戏越做越足,越来越真,越来越多人上当受骗。在外媒Bitfall的一篇文章中提到,只需要 25 比特币就可以把一个垃圾币拉起来,然后忽悠几万人参与。按照拉盘群的说法,25 个比特币带来了 400 比特币的交易,庄家赚到手抽筋,韭菜哭到上天台。

03、如果这种事情发生在股市

全球的股票市场都有立法明令禁止庄家做盘、故意设局来拉高股价后抛售的行为,《中国证券法》也有规定:

禁止利用资金、持股优势操作证券交易价格、禁止与他人串通约定相互买卖影响交易价格和交易量、禁止自买自卖影响交易价格和交易量、禁止利用内幕信息或虚假信息操作交易价格等等。这些行为属于违法行为。

Discord 这个原本就已经很出名的语音游戏平台,在去年 12 月底炒币潮开始之后,流量又进一步上涨。

在一个名叫 pumpand.win 的网站上,更是罗列这近百个拉盘砸盘群。可以想象每天几十万人攥着几十美元以试一试的态度来跟着庄家买虚拟货币,随即几十美元被庄家套走的的惨状。

在社交媒体上,这类行为完全不受控制。更多地来自发展中国家的人在这里被诈骗,我们甚至怀疑不少交易所也在其中参与。

By 猎云网

为什么以太坊手续费越来越高

gas到底是什么?为什么现在以太坊网络上的交易费用这么高?有哪些方法可以降低交易费用?您将在本文中找到这些问题的答案。

让我们先从gas到底是什么开始讲起吧。

什么是gas?

gas是用于测量在以太坊区块链上执行特定操作所需的计算工作量的单位。

这个名字本身并不是偶然选定的。gas其实类似于汽油,后者作为汽车的能量保证汽车可以正常行驶,以太坊网络上的gas为交易行为进行“加油”,并允许用户执行不同的操作。

在以太坊区块链上的每一个操作,或者准确地说在以太坊虚拟机(EVM)上的每一个操作都有一个相对应的gas成本。例如:将两个数字相加要花费3个gas;获取账户余额会花费400个gas;发送一笔交易花费21000个gas。

智能合约通常包括多个操作,这些操作加起来甚至可以花费数十万gas。

有趣的是,gas价格本身并不能告诉我们在某笔交易中需要支付多少钱。要计算交易费用,我们必须将gas的乘以gas价格。

gas的价格单位为gwei,,gwei的单位比ether要小,1 gwei等于0.000000001 ETH。我们可以把它们之间的关系看成是美分和美元。

例如,假设我们想发送一笔简单的以太坊交易,如果ETH的价格为1800美元。大多数流行的以太坊钱包(如Metamask)会估算必要的gas价格,并允许我们在快速、中等和慢速交易确认速度之间进行选择。让我们假设如果我们想在一分钟内确认我们的交易,钱包估计gas价格将设置为100gwei。

我们现在可以快速计算出,这样一笔交易我们需要支付3.78美元。我们将发送一笔交易的gas成本(2.1万gas)和gas价格(100gwei)相乘,就等于2100000 gwei,也就是0.0021 ETH。在ETH价格为1800美元时,这笔交易的手续费是3.78美元。

ETH的价格和gas之间有什么联系

值得一提的是,gas只是一个抽象单位,它仅存在于以太坊虚拟机中,用户实际上总是在以太坊网络中支付交易。

使用单独的单位来度量计算工作的主要原因是这样可以将其与ETH的价格进行分离。

这意味着ETH价格的增加不会改变交易成本。如果网络活动保持不变,而随着ETH的价格上升,我们应该会看到gas价格的下降,因此以ETH衡量的最终交易成本应该保持不变(美元价值)。

但是ETH的价格上涨通常与以太坊网络上活动的增加相关,这杨就会增加交易成本。

现在,让我们看看网络活动的增加究竟是如何导致交易成本上升的。

首先,所有的交易都被发送到以太坊的内存池(mempool)中。所有没有处理的交易都在等待矿工们将它们取走,并将它们打包到下一个以太坊网络的区块中。

矿工由于受到激励,会首先选择gas价格最高的交易,因为他们通常会在固定的工作时间中选择价格更高的交易。

以太坊的协议也限制了矿工们挖出一个区块中可以包含多少笔交易。这是由每个区块的最大gas限制决定的。在撰写本文时,这个限制被设置为12.5M gas。

举个简单的例子,我们假设内存池中只有简单的ETH交易,每个交易花费21000 gas。一个矿工可以打包595个这样的交易。假设内存池中有1000个待处理的交易,矿工将通过按gas价格对所有待处理的交易进行排序并选择595个付费更高的交易进行打包。

目前的收费模式基于的是一种简单的拍卖机制,希望自己的交易被矿工处理的用户首先必须以高于其他人的加以费用获得区块中的位置。这样反过来又推高了gas的费用,尤其是当很多用户有紧急交易需要确认的时候。

我们为什么需要gas

为了更好的解释gas,我们需要首先理解为什么gas会存在。以太坊虚拟机作为一个图灵完备的机器,它允许执行任意代码。虽然这是使以太坊如此强大的主要原因之一,但它也更容易受到halting problem的影响。halting problem是指从一个任意计算机程序的代码和输入来确定该程序是会结束运行,还是会永远继续运行。

如果没有gas,用户就可以执行一个永远不会停止的程序,其中的原因可能是代码有问题,也可能是有人作恶。为了防止这种情况发生,以太坊引入了与每个操作相关的gas成本,这将防止程序处于永远运行的状态,最终使整个网络陷入停滞状态。

除了gas价格,每笔交易也有一个gas限制,它必须等于或高于成功执行特定交易所需的预期gas数量。

以太坊虚拟机在执行事务中的每个操作之前,会检查是否有足够的剩余空间用于该操作。如果剩余的gas不够,则使用“out of gas”来还原整个交易,并回滚所有状态。即使交易失败,用户仍将为矿工已完成的工作量支付交易费用。这也是为了避免人们发起对网络的恶意攻击。

如果交易消耗的gas比最初预期的少,那么剩余的gas被转换为ETH并退还给发送者。

同样重要的是,以太坊上的所有操作都要有正确的gas成本;否则,它可能成为另一个攻击目标。其中一起攻击发生在2016年,这导致以太坊网络的硬分叉,最终系统重新对某些简单的操作进行了定价。

现在,由于我们对gas有了更多的了解,让我们来看看最近一段时间交易费用上涨的情况,以及一些可以降低现在和未来交易成本的解决方案。

以太坊的高额费用

随着去中心化交易所(DEX)创纪录的交易量,DeFi借贷平台锁定总价值越走越高,很多Yield Farming的项目创造出了很多机会,并且网络上制造出来的NFT(非同质化代币)越来越多,以太坊网络异常繁忙。

这导致了人们对区块空间的极高需求,也反过来推高了交易成本。

支付超过10美元的ERC20转账或支付50-100美元的Uniswap交易已经司同见惯了。当然,收费过高并不是好事儿,因为它让小玩家很难参与以太坊的生态系统。

幸运的是,已经有多种解决方案可用,或者正在积极地研究。让我们来看看其中一些最重要的解决方案吧。

第2层扩展方案和Eth2

第2层扩展方案是一种解决方案的术语,它通过处理链下交易来帮助提高主要以太坊链(第1层)的能力。除了提高交易速度和交易吞吐量外,第二层解决方案还可以大大降低交易费用。

Loopring就是一个很好的例子,它是建立在第二层网络上的去中心化交易所。该平台最近锁定的总价值达到了2亿美元,日交易量超过1000了万美元。

另一个项目Matic近期刚改名为Polygon,它在Plasma+PoS链上的锁仓量也超过了2000万美元。

一种更通用的解决方案——基于optimistic rollups的Optimism也正在推出当中。它的推出非常重要,因为它将允许DeFi智能合约以类似于它们在主网上的交互方式在第二层网络上进行交互。

可以进一步增加第2层解决方案采用的方式是直接参与现有的第2层网络项目。这可以进一步降低交易成本,因为用户可以直接将他们的ETH从交易所转移到第二层解决方案,如Loopring。

如果您想了解更多关于第2层扩展的信息,请查看这篇文章

除了第二层扩展方案,从长远来看,另一个可以降低交易成本的解决方案是Eth2,它引入了分片(sharding)技术和权益证明(PoS)机制。您可以在这里了解更多有关这些概念‌的信息。

EIP– 1559

EIP-1559是优化交易成本的另一个解决方案。

尽管该提议不会对降低交易成本产生直接影响,但它将通过调整费用峰值和限制超额支付交易的数量来优化收费模式。这将使交易费用更容易预测。

EIP-1559有望在2021年初实现。

优化gas的使用

除了使用第2层的扩展解决方案和等待其他改进之外,还有一些其他的技巧可以帮助我们降低主网的交易成本。

首先,如果我们没有任何紧急交易,我们可以尝试找到一天中gas价格最低的时间。

除此之外,我们应该经常通过另一个可靠的来源(如https://ethgasstation.info/)来检查我们钱包里预估的gas费用。

交易所1Inch使用的另一个技巧是降低CHI代币的交易费用。这些代币必须在主要操作的同时燃烧,这允许减少交易中花费的gas总量。

这可以通过利用以太坊虚拟机的机制实现,该机制在释放存储空间时退还gas。当CHI代币生成时,以太坊网络上的虚拟智能合约就会被创建。燃烧gas会破坏这些合约,并产生gas的退款。

其他链的情况怎么样?

那么以太坊之外的其他区块链链的情况怎么样呢?

毫无疑问,最近一段时间以太坊的高交易费用导致其他一些区块链捕获了大量的用户和交易量。

当然,很难说有多少是昙花一现,多少可以捕获长期用户。

说到这里,我们必须要记住,有些链并不是完全去中心化和无许可的。它们实际上是创建了一个假的DeFi生态系统,可能玩起来很有趣,但实际上与使用中心化交易所没有太大不同。

By 巴比特

以太坊GAS怎么计算

Gas 中译是:瓦斯、汽油,代表一种可燃气体。 这形象地比喻以太坊的交易手续费计算模式,不同于比特币中直接支付比特币作为转账手续费, 以太坊视为一个去中心化的计算网络,当你发送Token、执行合约、转移以太币或者在此区块上干其他的时候,计算机在处理这笔交易时需要进行计算消耗网络资源,这样你必须支付燃油费购买燃料才能让计算机为你工作。最终燃料费作为手续费支付给矿工。

与比特币不同的是,无论交易成功与否,你都需要为此支付燃料费。这是因为即使交易失败,矿工依旧为此交易进行校验和计算,消耗了资源。同时你也无法在钱包中直接设置支付多少燃料费,因为实际燃料费是矿工根据计算得出的,并记录在包含此交易的区块中。

当你听到别人谈论 gas 时,实际是在讨论两个概念:gasUsed 和 gasPrice,默认情况下是指 gasUsed。你可以把 gasUsed 看成是汽车所需多少升燃油。把 gas price 看成是燃油单价。

对于汽车,每升汽油6.46元(price),10 升汽油就是64.6元。对于以太坊,每gas是20Gwei(price),21000 个 gas 就是 20*21000 Gwei= 420000 Gwei= 0.00042 Ether。也就是说本次交易手续为 0.00042 Ether。

Gwei是以太币的一种计算单位,具体见文末附录:以太币单位

Gas Used

那么,以太坊这台计算机在处理交易时是如何统计计算量的呢? 以太坊有专门的虚拟机处理交易,虚拟机根据交易中确定的一个一个的操作指令进行逐个处理, 而每个操作指令都有明文规定的Gas消耗量。 比如执行一次加法运算将消耗 3Gas, 这样交易需要消耗多少Gas完全取决于执行完交易中的所有操作指令的累计Gas, 交易执行完成时虚拟机将反馈总消耗Gas量,称之为 gasused。 而你所需支付的手续费等于gasPrice * gasUsed

指令Gas UsedNotes
STOP0停止执行
ADD3两个数相加
MUL5两个数相乘
SUB3两个数相减
DIV5两个数相除

更多细节请参见:Gas清单

Gas Limit

因为手续费等于 gasPrice * gasUsed,用户在转账,特别是执行智能合约时 gasUsed 无法提前预知。 这样存在一个风险,当用户的交易涉及一个恶意的智能合约,该合约执行将消耗无限的燃料, 这样会导致交易方的余额全部消耗(恶意的智能合约有可能是程序Bug,如合约执行陷入一个死循环)。

为了避免合约中的错误引起不可预计的燃料消耗,用户需要在发送交易时设定允许消耗的燃料上限,即 gasLimit。 这样不管合约是否良好,最坏情况也只是消耗 gasLimit 量的燃料。

然而,一笔交易所必须支付的燃料已经在区块中通过该交易已执行的计算量记录。 如果你不想支出太多燃料,而故意设置过底的 gas limit 是没太多帮助的。 你必须支付足够燃料来支付本交易所必要的计算资源。如果交易尚未执行完成,而燃料已用完, 将出现一个 Out of Gas 的错误。特别注意的是,即使交易失败,你也必须为已占用的计算资源所支付手续费。 比如,你通过合约给 TFBOYS 投票,设置 gasPrice=2 gwei,gasLimit=40000(实现投票需要40001的燃料开销), 最终你投票失败且仍然需要支付 40000*2 gwei= 80000 gwei= 0.00008 ETH。

另外,如果最终 gasUsed 低于 gasLimit,即燃料未用完。则剩余燃料(gasLimit – gasUsed )将在交易后退还给你。 比如你发送 1 Ether 到另一个账户B,设置 gas limit 为 400000,将有 400000 – 21000 返回给你。

21000 是标准转账交易的gasUsed。因此一笔标准的转账交易你可以设置 gasLimit 为21000。

Gas Price

因为你所需要支付的燃料费为燃料单价(gasPrice) * 燃料开销(gasUsed),如果你想让交易花费更少, 你能够做的是降低你愿意支付的燃料单价。 另一方面,降低燃料单价的坏处是交易可能需要等待很长时间才被打包到区块中。

这是因为交易燃料费将归属于挖出本区块的矿工。当矿工挖矿时,他需要决定哪些交易放入到区块中,可以随机选择交易, 也可以不包含任何交易。为了鼓励让矿工将你的交易放入区块,你会考虑将燃料单价设置得足够诱人,已确保能优先放入区块。

但这还是一厢情愿,因为这个最终取决于矿工。大部分矿工遵循一个简单策略,优先打包本地交易, 将接受到的交易按燃油单价从高到底排列,依次放入区块中直到塞满区块,或者直到低于矿工所设置的燃料单价底限。

如果你着急交易,高燃料单价会使得你的交易排在别人前面。 如果不着急,你只需设置一个足够让矿工包含你交易的燃油单价即可。

一般情况下:

  • 高燃料单价为50 GWEI 的交易几乎总能放到下一个区块。
  • 高燃料单价为22 GWEI 的交易通常会把它放到未来的几个区块中。
  • 高燃料单价为8 GWEI 的交易通常会在未来几分钟内放入区块。

下图是最近1000个区块中不同燃料价格对交易确认时间的影响:

可以因为当前以太坊的交易处理性能(15笔/秒),当出现交易高峰期拥堵时,你需要考虑调整燃料单价, 比如在Token创建后,抢购火热,为了中签你需要设置更高的燃料单价,以能够优先抢购Token。

在设置燃料单价时,你还需要考虑加密货币的价格波动,相对人民币随时都涨跌20%。 按人民币考虑,之前的交易 10 gas price 相当于0.3元,而现在可能已经是0.4元。 所以需要根据实际情况,尽量调低燃料单价。而当网络中大部分交易都是较低燃料单价时,矿工也会去调整他的底限。

那么问题来了,到底该设置多少燃料单价才合适呢? 你可以到ethgasstation网站上查看。它将告诉你现在整个以太坊的情况,并给你建议的燃料单价,下图是当前的燃料单价设置建议。

"以太坊交易燃料单价设置建议"

附录-以太币的计算单位

  • Kwei(Babbage) = 10**3 Wei
  • Mwei(Lovelace) = 10**6 Wei
  • Gwei(Shannon) = 10**9 Wei
  • Microether(Szabo) = 10**12 Wei
  • Milliether(Finney) = 10**15 Wei
  • Ether = 10**18 Wei

By 虞双齐

什么是以太坊GAS

理解以太坊一定要理解以太坊中的gas的概念,以太坊gas可以说是以太坊生态系统的命脉

任何涉及到以太坊的行为,无论是简单交易,还是智能合约,甚至ICO都需要一定量的gas。gas是衡量执行某些操作所需的计算量的单位,用来计算为了执行操作而需要支付给网络的费用数额。

这里我们将了解gas的工作原理和具体对gas的具体理解。

1.什么是以太坊gas

gas的名字起得非常贴切,翻译成中文就是天然气的意思。在这之前,我们先了解下bitcoin的背景和bitcoin面临的问题。

比特币的创建是因为每个人都在问同样的问题:

• 是否有可能创造一种可以在没有任何中间人的情况下在两个人之间转移的金钱形式?

• 是否有可能创建一个可以在区块链等功能上运行的分散化资金?

Satoshi Nakamoto在创造比特币时回答了这些问题。我们终于有了一个去中心化的货币体系,可以将资金从一个人转移到另一个人身上。

然而,比特币存在问题,这是所有第一代区块链都存在的问题他们只允许货币交易,没有办法为这些交易添加条件。

Alice可以发送Bob 5 BTC,但她不能对这些交易施加条件。例如。她不能告诉鲍勃,只有当他执行某些任务时他才能拿到钱。

这些条件将需要非常复杂的脚本,需要一种“东西”使流程更加无缝。…这个“东西”是就是以太坊的智能合约。关于以太坊的基本原理不多阐述,各位可以参考:区块链技术:以太坊系统核心总结

进入正题:

2.什么是以太坊gas?

正如介绍中所解释的那样,Gas是一个单位,用于测量执行某些操作所需的计算量。

以太坊虚拟机(EVM)中运行的所有智能合约都使用 solidity进行编码(以太坊计划未来将从Solidity转移到Viper。)每一行代码都需要一定量的gas来计算,就好比汽车要用汽油。

下面的图片来自以太坊黄页,可以用来粗略地了解多少具体说明的成本。

图片来源:Ethereum Yellow Paper

3. 以太坊Gas如何工作

为了更好地理解以太坊的gas工作方式,我们使用一个类比。假设你正在进行一次公路旅行。在你这样做之前,你要经过这些步骤:

• 你去加油站,并指定你想要在你的车中注满多少汽油(gas)。

• 你的汽车里充满了汽油(gas)。

• 你向加油站支付你欠他们汽油(gas)的金额。

现在,让我们来与以太坊展开类似的比较。

汽车,就是你想要执行的操作,如gas或智能合同。

加油站是你的矿工。

你付给他们的钱是矿工费。

用户希望在以太坊执行的所有操作必须为以下方面提供gas:

• 涵盖其数据,即intrinsic gas。

• 覆盖整个计算。

现在我们已经介绍了基本的基础知识,你可能会问以下问题。

为什么我们有这个gas系统?

答案很简单…激励

像任何工作对等系统一样,以太坊严重依赖矿工的哈希效率:更多的矿工,更多的哈希效率,更安全和快速的系统。

为了吸引更多的矿工进入该系统,他们需要使该系统对矿工有利可图并尽可能诱人。在以太坊,矿工有两种赚钱方式:

• 通过挖掘块和获得块奖励。

• 通过成为他们的开采块裁决和打包者。

我们来探讨第二点。

矿工负责将交易置于其区块内。为了这样做,他们必须使用他们的计算能力来验证智能合约。gas系统允许他们为此收取一定的费用。

这笔费用被称为矿工费,它有助于激励他们积极参与生态系统。

那么,他们可以收取多少费用?

gas度量的最小单位是wei。所以,如果我们在操作过程中花费1个gas单位,我们称它为1 wei。

单位增加如下:

那么:

4:我们如何将gas转换成以太?

没有固定的转换价格,完全取决于矿工来确定转换价格,然而,平均转换率通常为:1 gas = 0.02 micro Ether

如果要继续深入,了解Gas Limit的概念很重要:

5:以太坊燃料限制(Gas Limit)是什么?

为了在Ethereum中完成操作,发起交易的人员或智能合约创建者必须在向矿工提交Gas Limit之前指定Gas Limit。当指定Gas Limit时,矿工将开始执行操作。

提交Gas Limit时,必须考虑以下几点:

• 不同的运营会产生不同的gas成本(如前所示)。

• gas用完时,矿工将停止执行。

• 如果有剩余gas,将立即退还给发起交易的人员或智能合约创建者。

让我们在假设的场景中看到这一点。

假设我们添加两个数字,并且合同必须执行以下操作:

• 把10存储在一个变量中 —假设这个操作成本是45 wei 的gas。

• 储存最终结果 —成本为45wei。是10 wei。

• 储存最终结果—成本为45wei。

假设 gas limit是120 wei。

矿工使用的gas总量为45 + 10 + 45=100 wei。

假设1 wei的费用为0.02 micro ETH,则所欠的费用为(100 * 0.02 micro ETH)= 0.000002 ETH。

现在,剩下多少gas?

120 – 100 = 20 wei。

20 wei退还给发起交易的人员或智能合约创建者。

所以,在指定的情况下,我们必须考虑两种情况:

• gas limit太低。

• gas limit太高。

情景#1:gas限制太低

如果一个操作用尽了gas,那么它就会恢复到原来的状态,就好比啥事都没发生过,然而,发起交易者或智能合约创建者仍然需要向矿工支付计算成本的费用,并将操作添加到区块链中(即使它尚未执行)。

回到我们的刚刚提到驾车旅行的比喻,如果你的汽车中没有充足的汽油,那么你将无法到达目的地,但即使如此,你还是向加油站支付了燃油费。

让我们看看这是如何在我们假设的智能合约中起作用的。步骤是:

• 把10存储在一个变量中—假设这个操作成本是45 wei 的gas。

• 增加两个变量—假设这个成本是10 wei。

• 储存最终结果—成本为45wei。

但是,这一次,gas limit是90wei

现在,我们知道履行合同所需的gas是100 wei,但我们却有90 wei的限制。

在这种情况下,矿工将进行90 wei的计算,然后对90 wei的运行生成器费用进行计费,结果为(90 * 0.02微ETH)0.000018 ETH。

此外,合约还原为原始状态并添加到区块链中。

情景#2:gas limit太高

那么,如果我们将gas limit设置得太高怎么办?

是不是看起来很合理?毕竟剩下的东西都退还给发起者是吧?

虽然听起来不错,但在现实中并没有那么好。

矿工受到每块6,700,000gas limit的限制。以太坊的每个简单交易通常都有2.1万的gas limit。矿工只能增加加起来小于或等于块gas limit的操作。

图片来源:Hackernoon

假设有一个交易A有一个42,000 gas limit 和两个交易B和C的正常 limit (如21,000)。

哪一个矿工更容易投入其中?

• 他们是否会优先进行交易A并退还大量gas?

• 或者他们会优先处理交易B和C并且退还少量gas?

显而易见,第二点对他们来说更具备吸引力

这正是为什么超高的gas limit不是明智的做法。

以下是平均gas限制图表。

图片来源:Hackernoon

到目前为止,你应该清楚,gas和以太币不是一回事,就如燃料(gas)和费用(fee)不是同一回事一般。gas是需要的计算能力的数量,而以太币是价格,也就是人们必须为这种gas支付的费用。

现在我们已经掌握了迄今为止所获得的一切,让我们通过一些gas和收费情景。

如果一项操作只有低gas,那么矿工不会去处理,因为它没有足够的gas来完成计算。

如果一项操作的费率(fee)较低,但矿工们仍然不会去处理,因为低费用的工作没有吸引力。

如果一个操作有高gas,那么这意味着gas limit非常高,矿工还是不会去处理。

如果一项操作收取高额费用(fee),那么矿工知道他们会从中赚取很多钱,当然优先处理。

根据ethgasstation推荐的不同交易费用的gas价格是:

以太坊gas机制。它是否合理?

尽管gas系统因为提出了一个能够非常积极地激励矿工的平稳运行机制而受到赞扬,但最近也受到了很多质疑,因为对于开发商和智能合约创造者来说成本有点高了。无论如何,以太坊项目的参与者必须了解这些成本,并据此设计 dApp 。我们需要在区块链链上和链外的复杂性之间找到平衡。

By 刘杨

Decentraland – A Virtual Reality Platform

Decentraland is an Ethereum-powered virtual reality platform. In this virtual world, you purchase plots of land that you can later traverse, build upon, and monetize. There’s no limit to what you can do. It’s the first digital platform that’s completely owned by its users.

In this Decentraland beginner’s guide, we’ll dig into:

How Does Decentraland Work?

Similar to games like Skyrim and Fallout, Decentraland is an all-immersive virtual universe. However, instead of playing on a two-dimensional screen, you participate in a three-dimensional world. It seems to be the logical next step before creating full-blown AI-based games in the physical space, à la Westworld.

What Is LAND?

In Decentraland, the spaces that you interact with are LAND, non-fungible digital assets that you purchase in the game. Once you own a plot of LAND, you’re free to do with it as you choose. You can create games, applications, gambling services, or even dynamic 3D scenes. But, why stop there? Although not its primary purpose, you can also create LAND-based services around education, professional development, tourism, etc.

The number of LAND is capped, and each plot of LAND is 33 feet by 33 feet, but there’s no limit to its height. Recently Decentraland created LAND Estates, a feature that allows you to more easily manage your LAND by associating adjacent plots. If you’re interested in purchasing LAND (or just want to see the map), you should check out the LAND marketplace.

Similar groupings on LAND comprise Districts. Districts are basically communities that revolve around a shared theme. For example, there may be a District just for crypto enthusiasts with cryptocurrency apps and services. You can vote on District issues through Decentraland’s voting dApp, Agora. The amount of LAND you hold in a specific district correlates to the weight of your vote. Decentraland created Agora to give you more control over what happens in your districts, and to provide feedback on the platform at large. 

What Is MANA?

MANA is Decentraland’s cryptocurrency token. It’s an ERC20 token that you use to purchase plots of LAND as well as pay for in-world goods and services.

When you buy LAND, Decentraland burns the MANA that you purchase it with. The Decentraland team originally sold each plot of LAND for 1000 MANA. Now that there’s a secondary market, though, the LAND prices vary. Currently, the cheapest plot of LAND is 11,750 MANA while more popular areas have price tags in the millions. The highest selling plot went for 2,000,000 MANA, or $175,578, in March 2018. This was quite a bit of money for a virtual plot of land and left the seller with a nice profit.

Technology Architecture

Decentraland’s protocol has three layers:

  • Consensus layer: Tracks land ownership and land content through an Ethereum smart contract.
  • Land content layer: Uses a decentralized distribution system to render the content in the virtual world.
  • Real-time layer: Provides peer-to-peer connections for users to interact with one another.

The team is building the virtual reality platform using A-Frame. To build in the world, you can first create a model in SketchUp and/or Blender, and then import it onto the platform.

Decentraland Team & Progress

The Decentraland team is led by Ari Meilich (Project Lead) and Esteban Ordano (Tech Lead). Ordano previously worked at Bitpay as a software engineer and founded Smart Contract Solutions, Inc. Both founders have also worked together in creating Stremium and Bitcore.

decentraland founders

Decentraland has been around for longer than you may think. The team hit their first development milestone, Stone Age, in June 2015. This was a simple, pixelated grid that allocated pixels to users through a proof-of-work algorithm. Most recently, they held a Terraform Event in which they sold LAND in the new, 3D world.https://267db645734dd440dbc53370a2db3c85.safeframe.googlesyndication.com/safeframe/1-0-38/html/container.htmlThe team has also partnered with district0xAragon, and imToken to provide some of their services.

Decentraland is fairly unique in the blockchain world with no large, direct competitors. High Fidelity and Sansar both provide spaces to create and sell virtual reality experiences, but they aren’t blockchain based. MARK.SPACE seems to be the most similar project; however, it’s far behind Decentraland in both development and notoriety.

Trading

The MANA price was relatively stagnant until the December/early-January market explosion. Since then, the coin has done relatively well compared to the rest of the altcoin market, maintaining about 75% of its Bitcoin value in the subsequent downturn.

MANA hit its all time high in January 2018 at $0.26, hitting two more peaks in May and July, $0.18 and $0.14 respectively. Since July 2018 MANA has continued to fall, reflecting the trends of the crypto markets.https://267db645734dd440dbc53370a2db3c85.safeframe.googlesyndication.com/safeframe/1-0-38/html/container.html

Because the only use for MANA, right now, is to purchase LAND, it’s hard to predict what will affect the price. An increase in demand for LAND may only lead to a rise in the amount of MANA you need to purchase some – not a rise in the MANA value itself. The MANA price should increase, though, as you become able to buy more things with it.

Where to Buy MANA

You can purchase MANA on most major exchanges with either Bitcoin or Ethereum. Binance and OKEx have the largest trading volume of the exchanges.

If you don’t own either of those two coins, and you’re confused where to start, check out our Bitcoin buying guide or Ethereum buying guide.

Where to Store MANA

MANA is an ERC20 token, so there are numerous wallet options for you to choose from. We recommend using a hardware wallet like the Trezor or Ledger Nano S. These keep your funds offline and are less susceptible to malicious software.

MyEtherWallet is another popular option if you’re not looking to spend the money on a hardware wallet.

Conclusion

Decentraland is a virtual reality platform that you can purchase land on. Tapping into the imagination of gamers and entrepreneurs everywhere, you’re able to do whatever you want with the land that you purchase.

This is a unique project in a largely untested market. The popularity of “alternative life” games is a good sign, but it’s hard to tell if this will carry over into the 3D and blockchain space. However, if Decentraland gains the adoption that its supporters hope it will, then we may just see an entirely new ecosystem of businesses and experiences flourish before our eyes.

By Steven Buchko

Ethereum Gas Fully Explained

  1. Ethereum Gas is a unit that measures the amount of computational effort that it will take to execute certain operations.
  2. Every single operation that takes part in Ethereum, be it a transaction or smart contract execution requires some amount of gas.
  3. Miners get paid an amount in Ether which is equivalent to the total amount of gas it took them to execute a complete operation.

Ethereum Gas – is the lifeblood of the Ethereum ecosystem, there is no other way of putting that. Gas is a unit that measures the amount of computational effort that it will take to execute certain operations.

Every single operation that takes part in Ethereum, be it a simple transaction, or a smart contract, or even an ICO takes some amount of gas. Gas is what is used to calculate the amount of fees that need to be paid to the network in order to execute an operation.

In this guide, we are going to understand how gas works. But before we do so, there are several concepts that we must learn. So, without further ado, let’s begin our deep dive on Ethereum Gas.

What is Ethereum Gas: Step-By-Step Guide

Why is gas not needed in Bitcoin?

Bitcoin was created because everyone was asking the same questions.

  • Will it be possible to create a form of money which can be transferred between two people without any middleman?
  • Will it be possible to create a decentralized money which can function on something like the blockchain?

Satoshi Nakamoto answered these questions when he created bitcoin. We finally had a decentralized monetary system which can transfer money from one person to another.

However, there was a problem with bitcoin which is a problem with all first-generation blockchains. They only allowed for monetary transactions, there was no way to add conditions to those transactions.

Alice can send Bob 5 BTC, but she couldn’t impose conditions on those transactions. Eg. She couldn’t tell Bob that he will get the money only if he performed certain tasks.

These conditions would need extremely complicated scripting. Something was required to make the process more seamless.

…And that “something” was a smart contract.

What is a smart contract?

Smart contracts help you exchange money, property, shares, or anything of value in a transparent, conflict-free way while avoiding the services of a middleman.

What is Ethereum Gas: Step-By-Step Guide

Vitalik Buterin’s Ethereum is easily the stalwart of this generation. They showed the world how the blockchain can evolve from a simple payment mechanism to something far more meaningful and powerful.

So, what are these “smart contracts” and what’s the big deal?

Smart contracts are automated contracts. They are self-executing with specific instructions written in its code which get executed when certain conditions are made.

What is Ethereum Gas: Step-By-Step Guide

You can learn more about smart contracts in our in-depth guide here.

Smart contracts are how things get done in the Ethereum ecosystem. When someone wants to get a particular task done in Ethereum they initiate a smart contract with one or more people.

Smart contracts are a series of instructions, written using the programming language “solidity”, which works on the basis of the IFTTT logic aka the IF-THIS-THEN-THAT logic. Basically, if the first set of instructions are done then execute the next function and after that the next and keep on repeating until you reach the end of the contract.

The best way to understand that is by imagining a vending machine. Each and every step that you take acts like a trigger for the next step to execute itself. It is kinda like the domino effect. So, let’s examine the steps that you will take while interacting with the vending machine:

  • Step 1: You give the vending machine some money.
  • Step 2: You punch in the button corresponding to the item that you want.
  • Step 3: The item comes out and you collect it.

Now look at all those steps and think about it. Will any of the steps work if the previous one wasn’t executed? Each and every one of those steps is directly related to the previous step. There is one more factor to think about, and it is an integral part of smart contracts. You see, in your entire interaction with the vending machine, you (the requestor) were solely working with the machine (the provider). There were absolutely no third parties involved.

So, now how would this transaction have looked like if it happened in the Ethereum network?

Suppose you just bought something from a vending machine in the Ethereum network, how will the steps look like then?

Step 1: You give the vending machine some money and this gets recorded by all the nodes in the Ethereum network and the transaction gets updated in the ledger.

Step 2: You punch in the button corresponding to the item that you want and record of that gets updated in the Ethereum network and ledger.

Step 3: The item comes out and you collect it and this gets recorded by all the nodes and the ledger.

Every transaction that you do through the smart contracts will get recorded and updated by the network. What this does is that it keeps everyone involved with the contract accountable for their actions. It takes away human malice by making every action taken visible to the entire network

What is the Ethereum Virtual Machine?

Before we understand what the Ethereum Virtual Machine (EVM) is, we must understand why a “Virtual Machine” is needed.

So let’s go back to smart contracts.

What are the desirable properties that we want in our smart contract?

Anything that runs on a blockchain needs to be immutable and must have the ability to run through multiple nodes without compromising on its integrity. As a result of which, smart contract functionality needs to be three things:

  • Deterministic.
  • Terminable.
  • Isolated.

Feature #1: Deterministic

A program is deterministic if it gives the same output to a given input every single time. Eg. If 3+1 = 4 then 3+1 will ALWAYS be 4 (assuming the same base). So when a program gives the same output to the same set of inputs in different computers, the program is called deterministic.

There are various moments when a program can act in an un-deterministic manner:

  • Calling un-deterministic system functions: When a programmer calls an un-deterministic function in their program.
  • Un-deterministic data resources: If a program acquires data during runtime and that data source is un-deterministic then the program becomes un-deterministic. Eg. Suppose a program that acquires the top 10 google searches of a particular query. The list may keep changing.
  • Dynamic Calls: When a program calls the second program it is called dynamic calling. Since the call target is determined only during execution, it is un-deterministic in nature.

Feature #2: Terminable

In mathematical logic, we have an error called “halting problem”. Basically, it states that there is an inability to know whether or not a given program can execute its function in a time limit. In 1936, Alan Turing deduced, using Cantor’s Diagonal Problem, that there is no way to know whether a given program can finish in a time limit or not.

This is obviously a problem with smart contracts because, contracts by definition, must be capable of termination in a given time limit. There are some measures taken to ensure that there is a way to externally “kill” the contract and to not enter into an endless loop which will drain resources:

  • Turing Incompleteness: A Turing Incomplete blockchain will have limited functionality and not be capable of making jumps and/or loops. Hence they can’t enter an endless loop.
  • Step and Fee Meter: A program can simply keep track of the number “steps” it has taken, i.e. the number of instructions it has executed, and then terminate once a particular step count has been executed. Another method is the Fee meter. Here the contracts are executed with a pre-paid fee. Every instruction execution requires a particular amount of fee. If the fee spent exceeds the pre-paid fee then the contract is terminated.
  • Timer: Here a pre-determined timer is kept. If the contract execution exceeds the time-limit then it is externally aborted.

Feature #3: Isolated

In a blockchain, anyone and everyone can upload a smart contract. However, because of this the contracts may, knowingly and unknowingly contain virus and bugs.

If the contract is not isolated, this may hamper the whole system. Hence, it is critical for a contract to be kept isolated in a sandbox to save the entire ecosystem from any negative effects.

Now that we have seen these features, it is important to know how they are executed. Usually, the smart contracts are run using one of the two systems:

  • Virtual Machines: Ethereum uses this.
  • Docker: Fabric uses this.

Let’s compare these two and determine which makes for a better ecosystem. For simplicity’s sake, we are going to compare Ethereum (Virtual Machine) to Fabric (Docker).

What is Ethereum Gas: Step-By-Step Guide

So, as can be seen, Virtual Machines provide better Deterministic, terminable and isolated environment for the Smart contracts. However, dockers have one distinct advantage. They provide coding language flexibility while in a Virtual Machine (VM) like Ethereum, one needs to learn a whole new language (solidity) to create smart contracts.

The EVM is the virtual machine in which all the smart contracts function in Ethereum. It is a simple yet powerful Turing Complete 256-bit virtual machine. Turing Complete means that given the resources and memory, any program executed in the EVM can solve any problem.

What is Ethereum Gas?

As explained in the introduction, Gas is a unit that measures the amount of computational effort that it will take to execute certain operations.

Note: Before we continue, huge shoutout to Joseph Chow for his amazing presentation on Ethereum gas.

Most of the smart contracts that run in the EVM are coded using Solidity (Ethereum is planning to move on to Viper from Solidity in the future).  Each and every line of code in Solidity requires a certain amount of gas to be executed.

ETH gas price chart

The image below has been taken from the Ethereum Yellowpaper and can be used to gain a rough idea of how much specific instructions cost gas-wise. Every transaction requires at least 21,000 gas according to this table:

What is Ethereum Gas: Step-By-Step Guide

Image Courtesy: Ethereum Yellow Paper

To better understand how gas works in Ethereum, let’s use an analogy. Suppose you are going on a road trip. Before you do so you go through these steps:

  • You go to the gas station and specify how much gas you want to fill up in your car.
  • You get that gas filled up in your car.
  • You pay the gas station the amount of money you owe them for the gas.

Now, let’s draw parallels with Ethereum.

Driving the car is the operation that you want to execute, like executing a function of a smart contract.

The gas is well….gas.

The gas station is your miner.

The money that you paid them is the miner fees.

All the operations that users want to execute in ethereum must provide gas for the following:

  • To cover its data aka intrinsic gas.
  • To cover its entire computation.

Now that we have covered the bare basics, you maybe asking the following question.

Why do we have this Gas system?

The answer is simple…incentivization.

Like any proof-of-work peer-to-peer system, Ethereum is heavily dependent on the hashrate of their miners. More the miners, more the hashrate, more secure and fast the system.

In order to attract more miners into the system, they need to make the system as profitable and alluring as possible for the miners. In Ethereum, there are two ways that miners can earn money:

  • By mining blocks and getting block rewards.
  • By becoming temporary dictators of their mined blocks.

Let’s explore the second point.

The miners are responsible for putting transactions inside their blocks. In order to do so, they must use their computational power to validate smart contracts. The gas system allows them to charge a certain fee for doing so.

This fee is known as the miner’s fee and it helps incentivize them enough to take part actively in the ecosystem.

So, how much fees can they charge? Before we can calculate that let’s understand how we measure gas.

Gas is simply measured in units of gas. A transaction sent to the Ethereum network costs some discrete amount of gas (e.g. 100 gas) depending on how many EVM instructions need to be executed.

So, how do we convert the gas into Ether?

There is no fixed price of conversion. It is up to the sender of a transaction to specify any gas price they like. On the other side, it is up to the miner to verify any transactions they like (usually ones that specify the highest gas price). The average gas price is typically on the order of about 20 Gwei (or 0.00000002 ETH), but can increase during times of high network traffic as there are more transactions competing to be included in the next block.

The following chart shows you the average Ethereum gas price chart.

What is Ethereum Gas: Step-By-Step Guide

Image courtesy: Etherscan.

Before we go any further, it is important to know the concept of gas limit.

What is Ethereum Gas Limit?

In order to get an operation done in Ethereum, the sender of the transaction must specify a gas limit before they submit it to the network. The gas limit is the maximum amount of gas the sender is willing to pay for this transaction.

When specifying a gas limit, the following points must be considered:

  • Different operations will have different gas costs (as has been shown before).
  • The miners will stop executing the moment the gas runs out.
  • If there is any gas left over, it will be immediately refunded to the operation generator.

Let’s see this in operation in a hypothetical scenario.

Suppose, we are adding two numbers and for that the contract must do the following actions:

  • Storing 10 in a variable. Let’s say this operation costs 45 gas.
  • Adding two variables, let’s say this costs 10 gas.
  • Storing the result which again costs 45 gas.

Suppose the sender specifies a gas limit of 120 gas.

The total gas used by the miner to run the computation is (45+10+45) = 100 gas.

The fee that is owed to the miner, assuming 1 gas costs 20 Gwei, is (100 * 20 Gwei) = 0.000002 ETH.

Now, how much gas is left over?

120 – 100 = 20 gas.

The 20 unused gas is returned back to the sender (20 * 20 Gwei) = 0.0000004 ETH.

So, having said that, there are two scenarios that one must consider:

  • The specified gas limit is too low.
  • The specified gas limit is too high.

Scenario #1: The Gas Limit is too low

If an operation runs out of gas, then it is reverted back to its original state like nothing actually happened, however, the operation generator must STILL pay the miners the fee for their computational costs and the operation gets added to the blockchain (even if it has not been executed).

Going back to our road trip analogy, if you haven’t filled up enough gas in your car, then you will not be able to reach your destination, but even then you paid the gas station the money for the fuel right?

Let’s see how this works in our hypothetical smart contract. The steps were:

  • Storing 10 in a variable. Let’s say this operation costs 45 gas.
  • Adding two variables, let’s say this costs 10 gas.
  • Storing the result which again costs 45 gas.

However, this time, the sender sets a gas limit of 90 gas.

Now, we know that the gas that will be required for fulfilling the transaction is 100 gas, but we only specified 90 gas limit.

In this scenario, the miner will do 90 gas worth of computation and then charge the sender fees for the 90 gas which turns out to be (90 * 20 Gwei) = 0.0000018 ETH.

Also, the contract reverts back to its original state and the transaction is included in the blockchain.


Scenario #2: The Gas Limit is too high

So, what if we set the gas limit too high?

That would make sense to do right? Afterall, whatever is leftover gets refunded to the sender right?

That sounds good on paper but it doesn’t really work that well in reality.

Miners are limited by the block gas limit, which we’ll suppose is 6,700,000 gas. A basic transaction (simple transfer of ETH) has at least a gas requirement of 21,000 gas. Miners can only include transactions which add up to be less than or equal to the block gas limit.

What is Ethereum Gas: Step-By-Step Guide

Image courtesy: Hackernoon

Suppose there is a transaction A (which does a simple transfer of ETH) and has a specified gas limit of 42,000 and two transactions B and C (also simple transfers of ETH) which have specified gas limits of 21,000.

Which will make more sense for a miner to put in their block?

  • Will they put in transaction A and refund back a huge amount of unused gas?
  • Or will they put transactions B and C and refund little to nothing back?

The second point makes more sense to them economically right?

This is precisely why having a bloated gas limit is not a sensible way to go. It is more reasonable to set a gas limit which is just a little higher than the required amount of gas for your transaction.

The following is the average gas limit chart.

What is Ethereum Gas: Step-By-Step Guide

Image Courtesy: Etherscan

High and Low Ethereum Gas vs High and Low Fee

It should be clear to you so far that gas and ether are not the same things. Gas is the amount of computational power required while ether is the currency used to pay for that gas.

Now with the knowledge of everything we have obtained so far, let’s go through certain gas and fees scenarios.

If an operation has LOW gas, then the miners won’t even pick it up because it doesn’t have enough gas to finish computation.

If an operation has LOW fees, then it might have just enough gas to cover it but still, the miners won’t be chomping at the bits to pick it up because an operation with low fees isn’t economically appealing for them.

If an operation has HIGH gas, then it means that the operation is bloated with a high gas limit and hence the miners will not pick it up.

If an operation has HIGH fees, then the miners know that they will make a lot of money from it and will be picking it up instantly.

The currently recommended gas prices for different types of transaction speeds, according to ethgasstation are:

What is Ethereum Gas: Step-By-Step Guide

What Happens in Ethereum Gas Refund Scenarios?

In solidity, there are two commands which ensure that you get some gas refund back.

  • SUICIDE: This basically kills the smart contract. Doing so will get you back 24000 gas.
  • SSTORE: Storage deletion, which gets you back 15,000.

So, if your contract is using up 14,000 gas and deletes a storage then you should get back (15000-14000) 1000 gas refunded to you right?

It isn’t that simple.

If that was the case, then miners will lose all incentive. After all, the miners shouldn’t pay you to do your computations right?

To avoid scenarios like these, a condition was put in.

The refund that has been accumulated cannot exceed half the gas used up during computation.

Let’s take an example to clear this up.

…Suppose we have a smart contract which uses up 14,000 gas.

The gas limit that we have set up is 20,000 gas.

The smart contract also includes an SSTORAGE command.

So, how much gas will the contract creator get back post computation?

Firstly, they will get back (20,000-14,000) = 6,000 units of unused gas.

Now, the SSTORAGE command has also been used, so theoretically they should get back 15,000 gas as well.

However, the amount of gas that has been used in the contract is 14,000 and since 15,000 > 14,000/2, the REFUND generated will be 14,000/2= 7000.

So the total gas that the creator is getting back in the end is 6000+7000 = 13,000.

Let’s take another example.

Suppose this time the contract uses up 70,000 gas and it includes a SUICIDE function.

A SUICIDE function should give you 24,000 gas back which is < 70,000/2.

In this situation, the gas refund will be 24,000 + unused gas.

Criticism of Ethereum Gas. Is it Justified?

Even though the gas system has gotten praise for presenting a smoothly running mechanism which incentivizes the miners pretty positively, it has come under criticism lately for being a tad too expensive for developers and smart contract creators.

Regarding this, Danny Ryan did some interesting studies in his Hackernoon article.

Consider the following scenario:

What is Ethereum Gas: Step-By-Step Guide

When two numbers are added a million times in Ethereum it costs ~$26.55 in fees.

Danny Ryan compared that to a standard AWS system. He said that he can add two numbers a million times using python in 0.04 seconds, which going by the $0.0059 hourly Amazon EC2 rate costs $0.000000066.

This means that computation in Ethereum is 400 million times more expensive!

Based on his studies, this is the conclusion he made:

“To be fair, adding two numbers together 1 million times is a bit contrived. A well written contract would likely move such computational complexity off-chain and deal more with updating state in the contract. Storing vast amounts of data to the blockchain is also not an ordinary task. Depending on the task, a user would likely store a cryptographic reference (a hash) of the data on-chain and keep the rest of the data off-chain.

That said, we as developers need to be aware of these costs, and design dApps accordingly. We need to find the balance between on-chain and off-chain complexity, while still leveraging the decentralized capabilities of the blockchain.”

Increasing Ethereum Gas Prices Affecting Innovation

The problem with Ethereum’s high gas prices is that it makes it impossible for a developer to microtransaction payments to their projects. Lately, it has increased significantly due to network congestion from DeFi and the increasing transaction fees.

As you may be aware, DeFi (decentralized finance) apps are going through a boom period right now. Everyone wants to have a slice of the yield farming pie. As of writing, the amount of value locked up in DeFi is around $11 billion with UniSwap, Maker, WBTC being the most popular apps.

From a developer POV, the beauty of DeFi lies in its composability. One can easily incorporate different DeFi features and create a whole new app. However, with the skyrocketing gas fees, it’s becoming harder for the developers to incorporate an internal economic system that enables micropayments.

By Ameer Rosic

Details about Celo (CGLD)

Celo is a payments platform attempting to make crypto payments as easy as possible to support communities around the world who are still left without critical financial services.

Key Takeaways

  • Celo is a blockchain project focusing on improving the lives of communities around the world via swift and easy payments infrastructure.
  • The PoS network offers multiple tiers for participants: An application that doubles as a light client, full nodes, and validators.
  • The system offers a stablecoin called Celo Dollars and a governance token called Celo Gold.
  • Mainnet launch is slated for next Monday.

As Celo concludes its latest $10 million token sale, many may still be wondering what the payments platform is all about. In the following guide, Crypto Briefing will dig into the technology, the native cryptocurrencies, and the project’s broader mission.

What Is Celo?

Celo is a blockchain project focused on making crypto payments as easy as possible. Instead of having to manage complex crypto addresses, users can send cryptocurrencies using mobile phone numbers. 

Sending the platform’s stablecoin, Celo Dollars, is even possible for users who do not have the Celo app. Users can send value via WhatsApp too. To access this value, however, recipients would eventually need to download the application. 

When a user opens a Celo account, they link their telephone numbers to a specific address. A cryptographic hash of the phone number is then stored on the blockchain. To get a better understanding of how to open a Celo account, Crypto Briefing experimented with Celo’s Alfajores Testnet

How Celo Turns Phone Numbers into Blockchain Addresses
Source: Celo

The process is straightforward. 

Once users connect their mobile number with the app, the app sends an invite code via SMS which users must input to synchronize their number. After that, the app sends three SMS messages to verify the synchronization. 

According to a company blog post, users can connect multiple phone numbers to the same Celo address. 

There is also a small fee to verify the phone number. From there, the testnet gives users a small amount of Celo Dollars with which to experiment. There is a related faucet that developers and early adopters can use to replenish their Celo accounts. These are all testnet tokens and hold no real value.

There will be more discussion on the purpose of Celo Dollars and Celo Gold further along in this article. 

The simplicity of the app has led Polychain Capital CEO to describe the project as “the WhatsApp for money.”

Along with Polychain, Celo has attracted an army of notable investors to the project. Coinbase Ventures, Andreessen Horowitz’s a16z, 9YardCapital, and several well-known angel investors have contributed over $36.5 million in support. 

Adding the token offering, Celo’s coffers now hold roughly $46.5 million. Co-founder of Celo, Rene Reinsberg, told Crypto Briefing that the proceeds from the latest raise “will be used to fund ongoing development work and for community grants supporting  the ecosystem.”

The team behind the project comes from an impressive tech and finance background.

There are three co-founders, Sep Kamvar, Rene Reinsberg, and Marek Olszewski. Kamvar is the inventor of a digital reputation system called EigenTrust. Reinsberg and Olszewski sold their machine learning startup to GoDaddy. 

Other members come from other notable internet companies. 

How Does Celo Work?

On the technical side, Celo is built using the Go implementation of Ethereum and leverages a Proof-of-Stake (PoS) consensus algorithm. There are validators and nodes which help verify transactions and secure the network. 

But insofar as Celo is focused on a mobile-first user base, operating hefty and expensive validators is problematic. Once Ethereum finally transitions to a PoS network, the financial barrier of operating an Ethereum node would be 32 ether, or ~$6,344 at time of press. 

Readers should also refer to AlgorandTezos, and Cosmos for examples of successful PoS networks currently operating in the wild. 

It currently costs users more than $20,000 in equipment, $2,100 in fees per month, and a stake of 10,000 ATOM (~$25,000) tokens to run a competitive Cosmos validator. According to Reinsberg, the price is less to operate a Celo validator: 

“Each validator requires 10,000 cGLD locked up, and validator groups require 10,000 cGLD per validator affiliated with it. So, if someone wants to run 1 validator in their own validator group, they will need 20,000 locked cGLD (10k for the group, and 10k for the validator). Interestingly, this amount aligns with the average amount purchased per person in the auction, $19,646.37.” 

Though this may be prohibitive to some, Celo is looking to include as many users as possible through a multi-tiered system of light clients, validators, and nodes. 

Celo's Muli-Tiered Network
Source: Celo

The Celo mobile application doubles as a light client. Each time a user makes a payment using the application, the light client selects the cheapest, highest latency full-node in the area to confirm its transactions. 

As with any blockchain-based network there are fees for transacting. In the Celo scheme, the fees are included in the transactions sent to full nodes. Each full node can choose their lowest minimum fee to process the transaction.

The more full nodes that exist, the more efficient a network will operate. And once users recognize that they can earn money for running a full node, they too will be incentivized to launch a full node. 

There are no fees or costs for joining the network at this tier; simply run a node on a computer and begin earning. 

The third tier, validators, must be much more robust than the full node group. This is because the number of validators is limited and also because validators wield much more power in the network. This level of the network is responsible for protocol changes, providing security audits, as well as supplying hardware and software to keep the network running.

They are compensated for these contributions, much in the same way Tezos and Cosmos validators are. Like these two networks, Celo validators also hold governance properties to help steer the direction of the protocol. 

Validators that fail to operate in the best interests of the network are penalized.

What Are the Celo Assets?

Celo offers users two native crypto assets, Celo Dollars (cUSD) and Celo Gold (cGLD). 

Celo Dollars help facilitate the stable transfer of digital value between users. It is an ERC-20 stablecoin backed by reserves and pegged to the price of the U.S. dollar. 

The team has said that they will expand this offering to cover other fiat currencies. 

Unlike Celo Dollars, there is a fixed supply of Celo Gold. It is in this fixed cryptocurrency that Celo is able to manage price stability as well as much of its governance operations. Users can create cUSD by sending $1 worth of cGLD to the Celo Foundation reserve. They can also destroy cUSD by converting it back into cGLD. 

A portion of this fixed supply will be sold upon the network’s launch with the rest being created throughout the network’s life. 

Users holding cGLD can join the network as a validator or validator group, as well as propose and vote on protocol changes. They must first send some cGLD to a smart contract where the funds are locked in. The events that users can participate in are not mutually exclusive either. 

One can vote on a protocol change as well as select a validator using the same locked cGLD. For a deeper dive into the details of the governance structure, readers are invited to explore Celo’s documentation on the subject.

Users who frequently vote and are active throughout the governance process, are eligible for various rewards. The ultimate goal behind the network’s design is to entice as much participation as possible regardless of technical knowledge and financial standing. 

This in part due to the project’s grander mission. 

What Is the Alliance for Prosperity?

There are clear reasons that Celo wants to be one of the first mobile-friendly, highly-secured blockchain networks. 

They are focused on improving financial inclusion in parts of the world that have been traditionally neglected. It is for this reason that the mobile application plays such a critical role in this network. 

For the uninitiated, it is well known that many of the poorest regions in the world have turned to mobile phones to “leapfrog” technologically. 

Although they may have never experienced fixed-lines, for instance, cellphones are found throughout. Not just that, but the amount of value now being passed using mobile devices is growing every year. 

A report from the Global System for Mobile Communications (GSMA) indicates that “in 2018, $136 billion (the total value of cash-in transactions) were digitized by mobile money agents globally.” 

The number of mobile money agents even exceeds that of commercial banking infrastructure. 

Mobile Payments and Celo
Source: GSMA

To continue building on this mission, the Celo Foundation has created a so-called “Alliance for Prosperity.” This group of projects, investment funds, and service providers are all committed to improving the financial conditions where it is needed most. 

This could be in the way of payments, but also includes a number of other use cases that Celo has defined as follows: Accept, Acquire, Build, Earn, Educate, Give, Grow, Lend, Preserve, Send, Save, and Secure.

UABA has joined the @CeloOrg Alliance for Prosperity and will contribute to the Celo Ecosystem through education, community management and ecosystem support of the Celo platform.
pic.twitter.com/P9AZ1xpmR2

— United Africa Blockchain Association (@UABA_Africa) May 7, 2020

This Alliance has grown leaps and bounds since its formation and has even attracted a similar audience as that of Facebook’s Libra project. It is for this reason that there have been so many comparisons drawn between the two ventures. 

The Giving Block, a member of the Alliance and a project that helps nonprofits accept crypto donations, is exemplary of the Celo mission.

Alex Wilson, a co-founder, told Crypto Briefing:

“Celo is the first major blockchain project to put social impact at its core which makes it a great fit for us. We’re excited to help bring prosperity to all.”

Companies within the Alliance will also be able to collaborate with one another. uTrust, a crypto company helping to onboard businesses to the world of digital assets, is hoping to do exactly this.

CEO Sanja Kon, said:

“With our Payment platform and B2B solutions, we are ready to help people worldwide to open their business to millions of new users worldwide. Anyone in Africa or Latin America, can open their online business and start accepting digital currencies as a means of payment for their goods and services from anyone in the world, with truly borderless payments with low fees and no chargebacks. The fact that this is an Alliance with other amazing companies will enable synergies between Alliance members for innovative solutions worldwide.”

Concluding, Celo is one of the more ambitious projects in the cryptocurrency space. It is tackling a major social issue by delivering new technology at scale. The design is built from the bottom up for ease-of-use and ease-of-access. 

Interested parties need only download the app. If the network gains traction, there will be further incentive to participate at the full node tier or even the validator tier. With any blockchain-based network, overcoming this critical adoption chasm is the ultimate challenge. 

The mainnet launch is slated for launch on May 18, with users voting to unfreeze cGLD for Monday, according to Reinsberg.

By Liam Kelly

以太坊与开放金融

人类是基于集体想象的共同体,人类之所以能够合作,是建立在叙事和讲故事的基础之上。这个观点来自尤瓦尔·赫拉利的著名畅销书《人类简史》:

 “任何大规模人类合作的根基,都在于某种只存在于集体想象中的虚构故事,只要改变所讲的故事,就能改变人类合作的方式。” 

加密世界也是如此,每一个区块链项目的目标和生态系统都是根据特定叙事往前发展的。举个栗子,比特币从“点对点的电子现金系统”开始,经历7次叙事变迁转向了“价值存储,数字黄金”的集体想象。加密笔记之前的文章《比特币的本质是什么?比特币思维的七次变迁》已经对此有过介绍。

Image

今天我们聊一聊以太坊。以太坊的叙事最初从“ 世界计算机 ”开始,然后转向“ 建造永动的、不可阻挡的应用程序”。现在我们看到在以太坊周围形成了一种新叙事,社群参与者称之为“ 开放金融”或者“去中心化金融”。

这个概念来自我们从加密社区中流行的对话和叙述中获取的灵感。“开放金融”到底是什么呢?包含哪些部分?对于创业者有什么机会?

开放金融目前主要集中在建立开源、去中心化的金融基础设施方面。我们将目前致力于构建新金融生态系统的项目进行了分类整理,绘制出一幅未来版图,希望能够对你有所助益。

开放金融支持者认为,我们可以重塑当前的金融生态系统并“去中心化”他们提供的所有服务。根据梳理,该领域目前包含10个金融子行业和服务,这些将成为建立以太坊开放式金融项目的主战场:

1、衍生品

Image

去中心化的数字资产衍生品协议/平台,使交易员和投资者能够创建基于以太坊的加密货币衍生品智能合约。明星项目如dYdX协议,是基于以太坊的衍生品交易平台,提供可以用于做空以太坊代币 ETH 和其他 ERC20 标准代币的协议,从而让投资者可以利用协议对 ERC20 代币进行杠杆投资。

中心化替代方案:BitMEX,OkCoin和Cboe

2、支付

Image

分布式支付平台使用户和商家能够直接点对点进行商品和服务支付,而无需中心化的中介机构。这些平台为用户提供抗审查的、匿名的和免费的付款方式。

中心化替代方案:PayPal,支付宝,Venmo,Square

3、信用贷和借贷

Image

分布式的信贷和贷款平台实现了真正意义上的P2P——点对点借贷。这些项目让用户可以建立信任的同时,无需像中心化机构一样搜集个人数据,没有各种借贷的身份证,运营商认证,信用卡数据等。 代表性项目SALT(Saltlending)成立于2017年。作为一个智能撮合、自动化实现的数字资产抵押贷款平台,SALT主要从三个方面解决用户需求。其一是方便、快捷、低息的法币贷款;其二是用于抵押的数字资产不变更所有权,维持投资属性的同时增加现金流动性;最后是资产抵押并非出售,可抵消税务事件。完整的SALT贷款系统涉及借贷双方、资产保存、流动性转移、以及实现以上运行的智能合约设计与风控技术支持。

中心化替代方案:Equifax,Lending Club,SoFi

4、托管服务

Image

加密资产钱包是分布式的托管服务。这些产品使用户能够保护和转移基于以太坊的令牌,而无需托管银行这样的中心化机构存在。由于这些钱包不需要中介来管理它们,因此用户始终完全掌控自己的资金。

中心化替代方案:摩根大通

5、交易所和流动性

Image

去中心化交易所协议和流动性网络使得基于以太坊的代币的对等交易成为可能。这些平台也使得项目代币能够零门槛的利用去中心化交易所获得流动性。

中心化替代方案:纽约证券交易所,纳斯达克,港交所,外汇市场

6、稳定币

Image

稳定币提供法定货币的价格稳定性,同时保持加密货币的抗审查特性。

中心化替代方案:法定货币,如美元,欧元,人民币

7、KYC和身份

Image

去中心化的KYC(即充分了解你的客户)和身份平台使用户能够完全掌控其数据的可访问性。这些平台不需要集中注册表或身份提供商来验证个人身份。

中心化替代方案:SAS Institute,KYC Global Technologies,Clear View Systems

8、保险

Image

去中心化保险平台使用户无需中介即可创建和获取保险产品。这消除了传统保险公司收取的高额费用,并且提供了利基市场和创建独特保险产品的可能。比如Aigang网络的区块链协议将采用去中心化自治组织(DAO)和智能合约的物联网(IoT)设备提供新一代数字保险,该协议将被广泛应用于移动电池、无人机和无人驾驶汽车中。

中心化替代方案:传统保险公司如State Farm(美国最大的互助保险公司,首家引入UBI车险模式)

9、投资

Image

将资产和证券代币化使投资者能够随时进出那些非流动性投资市场。证券代币可以在市场上随时交易,这样可以更好地发现价格并增加投资流动性。比如你想投资房地产项目,一是有资金门槛,二是当你要卖房子的时候可能流动性不足哦,有价无市。如果将房子收益权代币化,很少的钱也可以参与到房地产投资,同时具备极大的流动性,随时可以在交易所变现掉。

中心化替代方案:创业公司股权,房地产和债务

10、预测市场

去中心化的预测市场平台通过提供抗审查的投注市场来提高传统预测市场的准确性。由于任何接入互联网的人都可以访问这些市场,因此极大地增加了参与者的数量,从而提高了准确性。 最具代表性项目去中心化的预测市场是Augur,基于以太坊区块链技术。用户可以用数字货币进行预测和下注,依靠群众的智慧来预判事件的发展结果,可以有效地消除对手方风险和服务器的中心化风险,同时采用加密货币(如比特币)创建出一个全球性的市场。

暗网的发展与进化

互联网上充斥着各式各样的商业活动,非法的商业活动也同样活跃。今天我们来聊聊非法网络商业活动的中流砥柱:暗网市场。

实际上,“暗网”一般指的是匿名网络上的匿名网站。原本是个中性词,因为大量黑市交易和非法活动通过暗网进行,所以很多人谈暗网色变,于是暗网被有意无意跟网络黑市等同起来了。而稍微了解点比特币历史的朋友可能知道,比特币的最早用例,则是暗网支付。

第一个使用比特币支付的暗网市场,也是最为大家熟知的叫做丝绸之路。嗯,当然不是唐僧哥哥西天取经走的那个丝绸之路。是下图这货:

丝绸之路是暗网中最具“品牌价值”的电商,堪称暗黑版淘宝。你能想到的东西都有可能在里面找到。毒品、性奴、儿童色情、军火,下限是什么?不知道。

其实这个网站的起源,颇有点理想主义色彩,一个信仰自由经济理论的年轻人准备干一番大事业:

我要创建一个经济仿真体,让人们体验:生活在一个没有系统化权力使用的世界里是什么样子。

只是后来,剧情有点魔幻,天使“走火入魔”,自由成了无底线。丝绸之路的来龙去脉不是本文的重点,感兴趣的朋友可以阅读这篇文章。我们还是回到暗网市场跟加密货币以及去中心化实践的叙事上来,因为加密货币和区块链技术的兴起,让在线黑市参与者看到了重新发明轮子的机遇,以逃避全球执法机构的打击。

本文主要八一下暗网市场的发展历程——包括起源、现状以及未来发展趋势。内容有点长,但是值得一看。

我们将不对暗网市场做出任何法律或道德判断,而是从技术和运营安全的角度入手。一件事是否合乎法律或者道德,要考虑当时、当地和观者立场。请读者自行判断。

第一阶段:明网黑市,2011 年以前

随着互联网的兴起,黑市卖家很早就利用网络来与买家沟通、做广告和收款。我有时候忍不住感叹,最早利用新科技做生意的,往往都是这一群人。比如微信、陌陌刚出来,我们还不知道怎么在上面赚钱的时候,皮肉生意已经如火如荼在上面交易。所以,互联网的早期一样,早期的黑市产品主要围绕色情服务、盗窃数据和知识产权犯罪。因此,黑市卖家主要关注的是如何交付虚拟的货物或服务,以及协助某些“个人”服务。

利用互联网来营销和买卖实体商品,如毒品,武器和伪造证件,则是从1990年代末开始的,但通常发生在少数大城市的特定社区内,原因是付款和货物交付都需要买卖双方见面。在那个年代,网络支付方式不通畅,而且对黑市卖家来说风险大,现金支付仍是主流。

2003 至 2007 年间,情况发生了根本性的改变:黑市卖家开始注意到了中心化的匿名数字货币。基于邮购的非法实物交易开始出现。这些卖家一般不会公开打广告,营销一般靠口耳相传,局限在组织严密的团体内。

后来出现了比特币,作为第一个去中心化的加密货币,它推动了黑市支付的范式转换。2011年1月诞生的暗网市场”丝绸之路” 可能是第一个融合了这种新型在线支付系统的匿名交易网络。

第二阶段:暗网黑市,2011年-2017年

“丝绸之路” 也是第一个进入大众眼帘的暗网市场。

暗网市场的浅层描述是一个托管在Tor洋葱路由等匿名覆盖网络上的网站(通过使用“洋葱路由”技术, 像剥洋葱一样,一层又一层代理连接,追查起来非常困难),商家列出商品,买家浏览和挑选商品,两者之间的支付是通过加密货币进行的。暗网还会提供额外的功能,例如买卖双方间的加密通信、声誉管理、支付托管,以及买卖双方可自由发布信息的论坛。

暗网商品一般通过邮政或是第三方物流送货。

暗网市场本身是中心化的平台,一站式地提供营销、客服、流程、声誉和支付托管等功能。这种平台对小商家非常有吸引力,他们往往没有组织层级,或者层级扁平化。用户和黑市份额都绑定在特定平台,不会具体到某个卖家。

暗网市场的一个限制因素是客户必须使用Tor或I2P等匿名访问软件才能访问这些平台。技术门槛是大部分潜在消费者进入暗网的障碍,并且要达到访问的安全性,用户只能用非移动设备如台式机或笔记本。显然不符合大多数现代消费者所需求的便利性。

暗网市场的中心化、客户与市场的约束、物流服务的使用、商家的扁平化组织层级,这些因素对暗网的安全性有许多负面影响。

虽然商家的欺诈行为被每个市场的中央声誉系统有效地制服,但买家作弊的情况却很常见。为应对这种情况,暗网市场开始提供支付托管服务。这是通过引入多方交易验证来实现的,这种交易要求买家、卖家和市场运营者中至少两方授权的情况下,款项才会移动。

执法部门对暗网市场的渗透和破坏则是更大的危害。由于大多数商品信息和卖家声誉数据都是公开发布的,暗网经常受得攻击,这些攻击使用的工具和方法往往是开源的,例如爬虫和数据分析,恶意盗取用户账户等。警方曾渗透过若干暗网调解员和管理员,甚至是卖家的账户,这些事件降低了暗网的公信力。另外,警方还直接取缔了几个暗网黑市,冻结了所有资金,扰乱了整个暗网的经济。

29岁两年狂赚77亿,35岁被判终身监禁,暗网“丝绸之路”缔造者的末路

▲丝绸之路创始人乌布利希

警方通过卧底、货运追踪和加密货币交易跟踪等方式,对黑市卖家进行追查。成功破获了一个黑市卖家以后,往往从他们的账本里拿到交易历史明细、买家发货地址等数据,这进一步损害了暗网的公信力。黑市卖家的扁平化组织,也使警方的深入渗透和对罪犯的身份识别变得容易。

最后,暗网市场往往会因为身份数据和声誉数据的丢失,之前所有的工作都泡汤,这些都会导致该网站暂时性或永久性的关闭。

新阶段,从2017/2018年开始

上述问题促进了暗网的发展。

为了防止客户被平台绑定和不受平台关闭的影响,卖家慢慢离开中心化暗网平台,开始用新的技术去搭建自己的交易系统。

卖家现在不再使用暗网上的网站,而是在主流移动即时通讯软件(如Telegram)上运营仅限邀请的群,类似国内常用的邀请制Q群、微信群。这让卖家可以更自主的管理自己的客户,不用担心平台被查封的影响。为了进一步稳定买卖双方的联系,卖家会为熟客指定联系人,为他们开单独的群,让跟踪和取缔变得更困难。公共群往往由聊天机器人来运营,能够自动回复买家咨询、下单,甚至支持全程自动化、无须人工参与的购物体验。

移动即时通讯工具的使用,让买家通过智能手机即可联系卖家,是一种更好的购物体验。这也意味着大部分的通信不再经过 Tor 或 I2P 网络,而是由买方和卖方两端所用的技术来加密保护,比如会用到流行的翻墙软件VPN。

另外一个改变是卖家不用邮政或者物流系统来送货,而是用一种秘密藏货点的方式(跟以前谍报人员传递秘密情报类似)。发货的商品被隐藏在公共场合,例如公园,买家下了单后会收到货物的具体位置,然后亲自去取货。这意味着发货和下单的分离,卖家在下订单之前就把货物藏好。买家也不用等待发货,与传统快递方式相比,大大减少了等待时间——收货往往以小时来计算。更妙的是,这种方式使买家不必再透露个人数据给卖家,因此卖家不用为如何存储隐私数据而烦恼。数据存得越少,风险越小。

使用秘密藏货的方式让卖家避开了传统快递易被追踪的风险,卖家不必再亲自去发货点,而是将整个公共场所变成藏货备选地。

加密货币仍然是主流支付方式,由于买卖之间不再有平台作为媒介,同时卖方已对买方进行过审核,双方之间不再使用支付托管。

买家和卖家的营销和审核发生在暗网的论坛和私人聊天室里,这种活动不会涉及具体交易内容。在这种虚拟场所里,买卖双方会讨论交易的流程、方法和价格。通过分享各自的经历,市场逐渐形成一套最佳实践。虽然目前还在早期阶段,这些讨论会慢慢变成一种信用记录。

除了让交易变得更安全和快捷以外,这些趋势也引起了卖家的组织结构变化:相比于从前常见的扁平化结构,如今的黑市卖家重新采用了树状组织结构,分为采购层、销售层和送货层。在每个层次下的员工不会知道高层员工的身份,也不会跟他们有任何接触。所有的通信都是数字化的 —— 通过 IM 消息和加密货币,货物只通过转移 “藏货” 地点的方式来移动。也就是金流、物流、信息流模型完全重塑,风险隔离。

采购层负责货物的采购,以及运到指定区域,然后销售人员会支付给采购层一定数量的加密货币。这样的交接过程,把采购和销售两个层级的风险分离开。

销售层负责把货物分成更小的单位,然后把藏货地点告诉送货层。送货层会把货物分成更小的销售单位,然后运到新的藏货地点,然后新地点告诉给销售层,由销售层与买家沟通。

为了防止送货人员私吞货物,销售层会做随机测试:他们会让送货人员去不同的藏货地点取货,在验证货物以后,又会指定他们运到另一处位置。通常每件货物上会有一张纸,上面会有独一无二的密文,销售层会用它来验证货物的真假。每个送货人员会以加密货币的形式,向销售层交一笔押金,如果货物验证没有通过,部分押金会被没收。目前为止,我们还没看到这种组织使用暴力去维护秩序的案例。

这种在组织内部使用移动即时通讯、加密货币和藏货的方式,让组织内部的风险完全隔离开来,处于下层的人员对于上层一无所知。即使送货人员运货时被抓获,警方也无迹可循,因为无法区分他们到底是组织人员还是普通顾客。这种组织结构能够抵抗渗透、取缔和人员被捕,具有内在的恢复能力。

另外,当销售人员提货时,他们会用一些高级技术来避开采购层的监视,这使警方很难从上而下去摸清整个组织结构。

当这种组织的成员落网了,他们一般不掌握成员身份、藏货地点和交易时间等关键信息,因为成员间的通信没有必要涉及到这些内容。

经过这些演化,结果是一个高度去中心化、细分化和恢复力强的暗网黑市运作方法,达到了收集信息少,送货快,人员间风险隔离,以及多条独立销售渠道的效果。

暗网市场的未来发展

该领域的未来发展可能会更关注客户的便利性。为了实现更好的用户体验,更多科技会被整合进暗网市场的新交易流程。比如信息服务会集成买卖双方的匿名通信、一体化的支付系统、藏货地点自动定位等功能。声誉系统会是下一个被集成的功能。

上述的信息服务具有双重用途,所有卖家,不论非法的与合法的,都会使用这些服务,慢慢集成自动回复、聊天机器人和点对点支付技术。即时通讯巨头比如微信、Telegram,甚至是 Facebook 已经涉足这个领域。

随机技术的发展,黑市的存在和需求将会更加普及。我们周围的城区将会看到各种黑市商品,可被匿名地、安全地购买。由于所需的技术不高,越来越多的人会靠黑市送货为生,勤奋的参与者会获得一笔持续稳定的收入。青少年将为黑市送货,而不是送报纸。

这种趋势会促进技术的发展,会使黑市买卖变得更方便与安全。这种送货方式会变得更普及,更多货物种类会用这种方法发送,合法的和非法的货物间界限会变得模糊。更多新服务和技术会打法律擦边球,例如支持点对点加密货币支付的锁箱。

目光再放远一点,将来整个城区会布满一次性的藏货地点,由人工或者无人机来送货,价格低廉的无人机已可在市面上买到,只缺一个研发送货技术的玩家。买卖双方都会使用无人机,通过手机就可以租到,一台无人机把货送到双方约好的一处屋顶,再由另一台无人机取货。经过了多次结点交换以后,跟踪货物变得极其困难,这个方法其实是借鉴了现有的匿名化数字通信技术。

未来可能会出现越来越多支持长距离、高载货量的无人机,价格适中,采购流程会变得更加高效和安全。

技术的发展有可能会导致对轻量级无人送货的管制放松。黑市将近在咫尺。

再开一下脑洞,结合了5G 移动网络、匿名通讯、聊天机器人、匿名加密货币、端对端加密、GPS、廉价电子设备、3D打印技术和廉价无人机的未来——短距离多轨飞行器和长距离飞机,支持基于图像识别的定位导航,还有更多的代码。

把这么多种新技术结合在一起,还有没有其他可能性呢?

By 何宇清