create account

Full Public Fake/Mirror API [WIP] by gtg

View this thread on: hive.blogpeakd.comecency.com
· @gtg · (edited)
$229.79
Full Public Fake/Mirror API [WIP]
# IPA rorriM\ekaF cilbuP lluF | Full Public Fake/Mirror API
Here it is again - a post that is meant to serve the purpose of on-chain coordination on the progress of testing the upcoming upgrade of our ecosystem.

<center>https://www.youtube.com/watch?v=KhuTi1VLldo</center><sup>Yet another Hive logo reveal, special edition for the full Fake/Mirror API</sup>

# RTFM
Please refer to my previous posts if you are not familiar with what the mirror/fakenet is.
I strongly recommend you read it before doing anything that involves Hive Mirrornet.

# Dealing with rough edges
Before we turn the bleeding edge into cutting edge technology, let's deal with rough edges first.
Please make sure that this environment is set up properly. There might still be some minor issues in the environment itself. If you’ve found anything, make a comment here or come to [OpenHive.Chat’s #dev channel](https://openhive.chat/channel/dev) to tell about your issues.

This post will be edited as we progress (as long as there’s [WIP] in the title), so please pay attention to the changelog.

# Fake API endpoint: `https://api.fake.openhive.network`
Fake chain-id: 42

Previously I focused on the consensus nodes and their interaction in the mirrornet, but for app developers it was not enough to perform full scale testing. For that, nodes need to support not only the ability to broadcast transactions, but more API calls, which means more plugins in hived, especially the `account_history`, but also `market_history`, and `transaction_status`, etc.

## Plugins
My reference hived node used for API endpoint have those plugins configured:

```
plugin = webserver p2p json_rpc
plugin = database_api condenser_api

plugin = witness
plugin = rc

plugin = market_history
plugin = market_history_api

plugin = account_history_rocksdb
plugin = account_history_api

plugin = transaction_status
plugin = transaction_status_api

plugin = account_by_key
plugin = account_by_key_api

plugin = reputation
plugin = reputation_api

plugin = block_api network_broadcast_api rc_api

plugin = wallet_bridge_api

plugin = state_snapshot
```

## Hivemind
Such a full blown `hived` node is still not enough for many applications, especially those that deal with social aspects. For that `hivemind` is needed. Unfortunately it takes a lot of time before it can be sync from scratch, and since it’s a mirror/fake, I couldn’t use the mainnet snapshot to speed things up.

## Jussi
And of course in order to route API calls properly between the `hived` and the `hivemind` there’s a `jussi`, preceded of course with other mundane stuff such as SSL termination.

## Broadcaster
Currently, the same node that deals with incoming API calls (such as accoun_history calls), also serves as a source for hivemind and for any broadcast transactions.

# Mainnet traffic
Please be aware that some of the mainnet traffic also comes to the mirrornet through a so-called “node based converter”. That means that accounts on the mirror net live their own life.

# Mainnet lookalike but fake
Again, it's extremely important to understand that everything that's happening on the Fake/Mirror net is ... fake. Even if it looks real. All that stuff is for testing purposes only. Please make sure that you know what you are doing.

# Changelog
- API endpoint is up and running

# Let the testing begin
> _”Should anyone present know of any reason that this mirror should not be joined in holy consensus, speak now or forever hold your peace”_
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 493 others
👎  , , , ,
properties (23)
authorgtg
permlinkfull-public-fake-mirror-api
categoryhive-160391
json_metadata{"tags":["witness-category","witness-update","hive","dev","fakenet","mirror"],"image":["https://img.youtube.com/vi/KhuTi1VLldo/0.jpg"],"links":["https://www.youtube.com/watch?v=KhuTi1VLldo"],"app":"hiveblog/0.1","format":"markdown"}
created2022-08-20 10:23:30
last_update2022-08-20 10:24:09
depth0
children15
last_payout2022-08-27 10:23:30
cashout_time1969-12-31 23:59:59
total_payout_value114.972 HBD
curator_payout_value114.822 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,474
author_reputation461,778,196,648,915
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,877,745
net_rshares324,124,947,496,968
author_curate_reward""
vote details (562)
@altleft ·
$0.20
Can a regular user use this? I tried to set the API node on hive.blog to it, but I don't think it worked.
👍  ,
properties (23)
authoraltleft
permlinkrgwz32
categoryhive-160391
json_metadata{"app":"hiveblog/0.1"}
created2022-08-20 12:37:51
last_update2022-08-20 12:37:51
depth1
children2
last_payout2022-08-27 12:37:51
cashout_time1969-12-31 23:59:59
total_payout_value0.096 HBD
curator_payout_value0.099 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length105
author_reputation411,439,148,402
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries
0.
accounthiveonboard
weight100
1.
accountthreespeak
weight100
2.
accountwehmoen
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,880,009
net_rshares281,605,530,529
author_curate_reward""
vote details (2)
@ctrpch ·
Hi @altleft, I just wanted to touch base with you to ask for a witness vote, I am a new witness but a long time hiver and am here for the long term, I own my hardware, hosted here in Adelaide. Thanks again mate
properties (22)
authorctrpch
permlinkre-altleft-s86ayi
categoryhive-160391
json_metadata{"tags":["hive-160391"],"app":"peakd/2023.11.3"}
created2024-02-01 10:39:57
last_update2024-02-01 10:39:57
depth2
children0
last_payout2024-02-08 10:39:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length210
author_reputation99,235,930,688,736
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id130,955,552
net_rshares0
@gtg ·
Regular users are very welcome to use applications that are in their testing/fake/mirror mode but it MUST be done in a way that user is aware in any given moment that what they are seeing and doing is not true.
For this very reason I wouldn't recommend using mirror api by regular Hive apps, they should have their separate instances for the mirror.
Soon (hopefully) different apps will be available within the fake/mirror net for the testing purposes.
👍  
properties (23)
authorgtg
permlinkrgx1i2
categoryhive-160391
json_metadata{"app":"hiveblog/0.1"}
created2022-08-20 13:30:03
last_update2022-08-20 13:30:03
depth2
children0
last_payout2022-08-27 13:30:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length452
author_reputation461,778,196,648,915
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,881,107
net_rshares2,122,268,884
author_curate_reward""
vote details (1)
@cryptobrewmaster ·
Dear, @gtg

May we ask you to review and support our @cryptobrewmaster GameFi proposal on DHF? It can be [found here](https://peakd.com/me/proposals/235)

If you havent tried playing [CryptoBrewMaster](https://cryptobrewmaster.io) you can give it a shot. Our @hivefest presentation [available here on the YouTube](https://youtu.be/DZ9MpQQoPu4?t=19996) with a [pitchdeck](https://docs.google.com/presentation/d/1x8eEoQIbNCTS5zQ6yfJ1SarLZz_BXinDVPOPebp4_-M/edit?usp=sharing) of what we building in general 

Vote with [Peakd.com](https://peakd.com/me/proposals/235), [Ecency.com](https://ecency.com/proposals/235), [Hivesigner](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22235%22%5D&approve=true)

Thank you!
properties (22)
authorcryptobrewmaster
permlinkre-gtg-rivh21
categoryhive-160391
json_metadata{"tags":["hive-160391"],"app":"peakd/2022.07.1"}
created2022-09-27 14:18:03
last_update2022-09-27 14:18:03
depth1
children0
last_payout2022-10-04 14:18:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length730
author_reputation119,480,288,448,053
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id116,978,305
net_rshares0
@hivebuzz ·
Congratulations @gtg! Your post has been a top performer on the Hive blockchain and you have been rewarded with the following badge:

<table><tr><td><img src="https://images.hive.blog/60x60/http://hivebuzz.me/badges/toppayoutday.png"></td><td>Post with the highest payout of the day.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@gtg) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/hive-188409/@hivebuzz/farewell-erikasue"><img src="https://images.hive.blog/64x128/https://i.imgur.com/LdjPLQF.png"></a></td><td><a href="/hive-188409/@hivebuzz/farewell-erikasue">The Hive community is in mourning. Farewell @erikasue!</a></td></tr><tr><td><a href="/nftforpeace/@hivebuzz/nft-for-peace-update2"><img src="https://images.hive.blog/64x128/https://i.imgur.com/tBCp4ps.png"></a></td><td><a href="/nftforpeace/@hivebuzz/nft-for-peace-update2">Level up your NFTs and continue supporting the victims of war</a></td></tr></table>
properties (22)
authorhivebuzz
permlinknotify-gtg-20220821t020109
categoryhive-160391
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-08-21 02:01:09
last_update2022-08-21 02:01:09
depth1
children0
last_payout2022-08-28 02:01:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,174
author_reputation369,507,902,883,232
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,895,720
net_rshares0
@howo ·
I'm slightly late to post this but I got asked the question so I feel like this could be useful for someone, when gtg says the chain id is 42, it means in the js libraries you should input `4200000000000000000000000000000000000000000000000000000000000000`
properties (22)
authorhowo
permlinkre-gtg-rimg03
categoryhive-160391
json_metadata{"tags":["hive-160391"],"app":"peakd/2022.07.1"}
created2022-09-22 17:16:51
last_update2022-09-22 17:16:51
depth1
children0
last_payout2022-09-29 17:16:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length255
author_reputation511,962,302,102,641
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id116,841,565
net_rshares0
@ismaelrd04 ·
awesome. I like that
properties (22)
authorismaelrd04
permlinkre-gtg-2022820t20279829z
categoryhive-160391
json_metadata{"tags":["witness-category","witness-update","hive","dev","fakenet","mirror"],"app":"ecency/3.0.25-vision","format":"markdown+html"}
created2022-08-21 01:27:57
last_update2022-08-21 01:27:57
depth1
children0
last_payout2022-08-28 01:27:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length20
author_reputation162,498,951,809,680
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,895,270
net_rshares0
@mercyagins ·
interesting, thanks for the info.
properties (22)
authormercyagins
permlinkre-gtg-20221025t162544439z
categoryhive-160391
json_metadata{"tags":["witness-category","witness-update","hive","dev","fakenet","mirror"],"app":"ecency/3.0.28-vision","format":"markdown+html"}
created2022-10-25 15:25:42
last_update2022-10-25 15:25:42
depth1
children0
last_payout2022-11-01 15:25:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length33
author_reputation353,861,143,646
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,770,607
net_rshares0
@officialrosh1 ·
$0.20
Hello @gtg can you help in building a project on hive blockchain ? 
👍  ,
properties (23)
authorofficialrosh1
permlinkre-gtg-rgwtdt
categoryhive-160391
json_metadata{"tags":["hive-160391"],"app":"peakd/2022.07.1"}
created2022-08-20 10:34:42
last_update2022-08-20 10:34:42
depth1
children4
last_payout2022-08-27 10:34:42
cashout_time1969-12-31 23:59:59
total_payout_value0.099 HBD
curator_payout_value0.098 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length67
author_reputation5,185,904,658,085
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,877,903
net_rshares281,657,002,947
author_curate_reward""
vote details (2)
@gtg ·
Sure. That's what we do here.
properties (22)
authorgtg
permlinkrgww02
categoryhive-160391
json_metadata{"app":"hiveblog/0.1"}
created2022-08-20 11:31:21
last_update2022-08-20 11:31:21
depth2
children3
last_payout2022-08-27 11:31:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length29
author_reputation461,778,196,648,915
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,878,847
net_rshares0
@officialrosh1 ·
Oh great @davidmaxwell is introducing Flipstarter to hive blockchain, but he needs support to make his version comes true we are looking for dev to work with us in building that i don't know if you are willing join us in building that 
👍  
properties (23)
authorofficialrosh1
permlinkre-gtg-2022820t123424832z
categoryhive-160391
json_metadata{"tags":["ecency"],"app":"ecency/3.0.32-mobile","format":"markdown+html"}
created2022-08-20 11:34:27
last_update2022-08-20 11:34:27
depth3
children2
last_payout2022-08-27 11:34:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length235
author_reputation5,185,904,658,085
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,878,902
net_rshares0
author_curate_reward""
vote details (1)
@poshtoken ·
https://twitter.com/JohnLuha1/status/1560976795704340480
<sub> The rewards earned on this comment will go directly to the people( @johndieo ) sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.</sub>
properties (22)
authorposhtoken
permlinkre-gtg-full-public-fake-mirror-api-4531
categoryhive-160391
json_metadata"{"app":"Poshtoken 0.0.1","payoutToUser":["johndieo"]}"
created2022-08-20 13:08:18
last_update2022-08-20 13:08:18
depth1
children0
last_payout2022-08-27 13:08:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length257
author_reputation5,225,739,826,428,098
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries
0.
accountreward.app
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id115,880,576
net_rshares0
@winstonwolfe ·
![main-qimg-4ef83b16924583901866daa3788f10ac.gif](https://images.hive.blog/DQmRGWD5iWHHCQGauq3DFDxWWVc86jqJbagskCTYXXiHTiG/main-qimg-4ef83b16924583901866daa3788f10ac.gif)
properties (22)
authorwinstonwolfe
permlinkrgysg7
categoryhive-160391
json_metadata{"image":["https://images.hive.blog/DQmRGWD5iWHHCQGauq3DFDxWWVc86jqJbagskCTYXXiHTiG/main-qimg-4ef83b16924583901866daa3788f10ac.gif"],"app":"hiveblog/0.1"}
created2022-08-21 12:09:45
last_update2022-08-21 12:09:45
depth1
children0
last_payout2022-08-28 12:09:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length170
author_reputation161,894,117,584,940
root_title"Full Public Fake/Mirror API [WIP]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,904,724
net_rshares0