RPC gets BTC balance of 0
If you want to query the transaction records on the main network, you can use Etherscan. However, if you build your own private chain, how should you query the transaction records
the answer is that you need to listen to the logs on the chain, save them in the database, and then query them in the database. For example:
< pre t = "code" L = "Java" > varaddr = & quot& quot;< br />varfilter=web3.eth.filter({fromB lock:0 ,toBlock:' latest', address:addr });< br />filter.get(function(err,transactions){transactions.forEach(function(tx){
vartxInfo=web3.eth.getTransaction(tx.transactionHash);
/ / at this time, the transaction information txinfo can be stored in the database
})< br />}); Pre >
Web3. Eth. Filter() is used to monitor the log on the chain, and Web3. Eth. Gettransaction() is used to extract the information of the specified transaction. Once the transaction information is obtained, it can be stored in the database for query
recommend a practical introction, you can see: Ethereum tutorial
I hope my answer can help you. If you don't understand anything, you can ask.
3. Debug hardware and software
The scenery is excellent. The park has deep forest, green peaks, and rippling Longchi rocks. It integrates lake, stone, forest, and waterfall. The main scenic spots are: temple gate, rain praying platform, main hall, and auxiliary Hall of Longwang temple. Yulongyuan, a stone wonder here, is the site of the Himalayan orogeny, which was formed six or seven million years ago. With the advent of winter, there is a four month long Longchi ice and snow festival. Skiing, skating, ice sculpture, snow sculpture, sledge and other rich activities will make you forget to return
yangyangyan waterfall
yangyangyan Waterfall Scenic Area is located on the left side of the entrance to the forest park. It is about 3 li from the mountain gate to the waterfall. It is called yangyangyangyan because the mountain rock sits from the west to the East with direct sunlight. Sunshine rock waterfall from the hillside flying down, about 100 meters high, about 20 meters wide, flying beads splash jade, straight into the deep pool. The water overflowed and then flew to the foot of the mountain, which was very spectacular. There is also a big waterfall on the top of the waterfall, with a drop of about 60 meters. The waterfall falls along the cave, forming a huge water curtain cave. In case of rain, the waterfall sounds like thunder, which makes it more magnificent
Longchi
the water surface of Longchi is about 130000 square meters. For thousands of years, people have called it the dragon pool, which means the place where the white dragon spits water. The water surface of Longchi is as clear as a mirror, and the scenery of lakes and mountains reflects the bottom of the water. There are more than ten kinds of rare birds on the water, such as Swan, yellow ck, bamboo chicken, mandarin ck and so on. It is said that these migratory birds take good care of the cleanliness of the water surface. As soon as they see rotten leaves on the water surface, they take them out of the water and discard them in the forest. Therefore, the water surface of Longchi is always as bright as a mirror
Yulong garden
Yulong garden has a strange stone community area of more than 80000 square meters on the edge of Longchi. In the area, there are many different peaks and huge stones, forming countless deep and quiet, thick and steep stone ditches, caves, stone walls and stone forests. What's more amazing is that tens of thousands of odd shaped granite are covered with thick lichens and various rare ancient trees, including Alpine Rhododendron, Davidia involucrata, Lianxiang, Maliu, Yinque, etc. Some miscellaneous trees grow at the top of the stone, and their roots extend to the soil along the stone wall; Some rhododendrons live in the moss on the top of the stone and depend on the stone; There are also some thousand year old trees, whose strong roots tightly stuck to the rocks, forming a strange "wood stone marriage" in the primitive jungle. There is a plank road in the Yulong garden. Visitors can enjoy the primitive wild taste of nature by walking through the forest and stone forest
Dragon King Temple
the Dragon King Temple is located on a high platform beside the dragon pool. It is the place where the government and the people worshiped the Dragon God for rain in ancient times. In 1871, when there was a severe drought in Central Sichuan, the magistrate of Cheng once walked to Longchi to pray for rain. The Qiang people in Maowen area believe in the Dragon God and send representatives to Longchi to pray for rain on June 23 every year. It is reported that the Dragon King temple was first built in the Kaiyuan period of Emperor Xuanzong of Tang Dynasty. The Emperor Yongzheng of the Qing Dynasty granted the Dragon King of Longchi the title of Xianyou Dragon King, and inscribed the temple plaque "zepeichuanyuan". The building complex of Longwang temple is composed of temple gate, rain praying platform, main hall and auxiliary hall. The temple gate is located at both ends of the platform, forming an altar surrounded by stone railings. In the center of the rain praying platform, there are eight diagrams made of white marble. In the solemn and simple main hall, there are five standing statues of the Dragon God, the Yellow Dragon in the middle, symbolizing the Yellow Emperor, the ancestor of the Chinese nation. The four Dragon gods on both sides are the incarnations of green, red, white and black dragons. The five dragon statues gathered together to show the theme of "Five Dragon governance"

the festival customs of Han nationality in robbing Yinshui. It is popular in eastern and Western Sichuan. On the first day of the first month of every year, people scramble to get up early to carry well water, which is called robbing silver water. The folk believe that the earliest person to take back the water will be the most prosperous in this year. The full tank of clear silver water symbolizes the inflow of financial resources. In some places, silver water was used to make tea, which was offered under the shrine of the main hall, praying for the gods' blessing and wealth
shaotouxiang is the festival custom of Han nationality. It is popular in some areas of Sichuan. In the old days, people used to go to temples to offer incense ring the Spring Festival. On the first day of the lunar new year, many people rush to be the first pillar of incense in the year, believing that this will bring good luck
festival customs of the Han nationality in Cheng. It is popular in Cheng. It is held around the Spring Festival every year. As early as the Tang Dynasty, the custom of enjoying Lantern Festival was popular in Cheng. After the completion of the people's Republic of China, Cheng Lantern Festival was held in Qingyang palace. Once a year, on the basis of retaining the characteristics of the original Lantern Festival, the new Lantern Festival has greatly developed in terms of variety, style, scale and influence, and has become an important place for people to play ring the Spring Festival
the festival customs of Han nationality in Zigong Dinosaur Lantern Festival. It is popular in Zigong area. It is held around the Spring Festival every year. By then, the people's Park in Zigong will be full of lights and excitement. Among the lamps and lanterns used in the lantern fair are traditional paper colored lamps, silk colored lamps and glass colored lamps, as well as porcelain colored lamps, neon colored lamps, underwater colored lamps, low-pressure running water lamps, gas discharge lamps and program-controlled lamps made of new technologies and materials. The content includes myths and legends, historical stories, film and television stories, folk customs and science fiction characters. The dinosaur form is indispensable in the lantern design, and it is the most characteristic and charming, and is well-known at home and abroad. The custom of Hai is still popular
the festival customs of Han nationality in Cheng flower fair. It is popular in Cheng. It is held every spring. It evolved from Cheng flower market. Cheng flower market was very prosperous in Downing. It was held on the 15th of February of the lunar calendar. People think that this day is the birthday of hundred flowers, which are in full bloom and most worthy of visiting. At that time, the flower farmers from far and near will transport their well-developed famous flowers to Cheng for exhibition and sale. During the flower festival, famous snacks in Cheng and nearby districts and counties are set up in the garden for tourists to taste
the custom of returning to niangwu ring the Rain Festival. It is popular in Western Sichuan. When it comes to the Rain Festival, the married daughters bring gifts back to their parents' home to visit their parents. A woman who has given birth to a child must bring a can of meat, chairs and other gifts to thank her parents for their upbringing. For women who have not been pregnant for a long time, their mother sews a pair of red trousers for them and puts them close to the body. It is said that this can ensure that they can get pregnant and have children as soon as possible. The custom is still popular in rural areas
the festival customs of Han nationality in Zitong temple fair. It is also called Zitong temple fair. It is popular in Zitong county. It is held twice every year in February and from the first day to the 15th day of August. After the founding of the people's Republic of China, temple fairs were once banned. Since the 1980s, the custom has spread again. On the basis of inheriting the tradition, the activities mainly focus on watching and participating in recreational activities and tourism which are beneficial to physical and mental health
the Spring Festival custom of the Han nationality, which is popular in Anxian County, is held every year on the fifth day after the beginning of spring. At that time, people from Deyang, Mianyang, Shifang, Beichuan, Jiangyou, Maoxian and other places gather in the water watching field to step on the bridge
the festival customs of the Han nationality in Dujiangyan water release Festival. Popular in Dujiangyan City. Every year, Qingming Festival holds a water release ceremony
Zhang Yehui is a traditional festival of Han nationality. It is popular in Jiajiang County. It is held on the fourth day of the fourth lunar month every year. It is said that this day is Zhang Fei's birthday. At that time, the butchers prepared sacrifices one after another and went to the temple to worship and pray for little things to protect the prosperity of business
the festival customs of the Han nationality. It is popular all over Sichuan. It is held every year on April 8 of the lunar calendar. In the early morning, people went out of the house one after another to collect dew from grass leaves, seedlings and leaves at the edge of the field and take it home to polish ink. Then, on the red paper cut into strips, the words such as "caterpillars marry today, go to the mountains and never return home" are written. After writing, two pieces of paper will be cross pasted on the wall of the house, people think that this can make the crops from pests, and harvest
the festival customs of the Han nationality in wangcong song club. It is popular in Pixian. The festival is held every year. At that time, people from far and near will go to wangcong temple to offer incense, sacrifice to Wangdi and congdi's virtuous adherents, and wish the crops a good harvest
the Han nationality's festival custom of drying clothes on June 6. It is popular all over Sichuan. According to legend, the sixth day of the sixth month of the lunar calendar is the day when Buddha Sakyamuni basks in the sutras. Therefore, people think that the things basked in the sutras on this day are easy to preserve. As the folk saying goes, "June 6, drying clothes." People used to take their clothes out to dry on that day, thinking that they would not be eaten by insects<
the festival customs of the Han nationality in CAI Hou Hui. It is popular in Jiajiang County. It is held in August every year. Jiajiang is a famous paper town with many paper mills. The majority of papermaking artists worship Cai Lun as their ancestor, and every family worships the statue of Cai Lun. In August of the lunar calendar, when Hsinchu is finished and the old materials are used up, the artists raise funds to hold the CAI Hou Hui
the Han nationality's festival customs on daughter's day. It is popular in Guangyuan. According to legend, the mother of Empress Wu Zetian of the Tang Dynasty was pregnant with Heilong when she was touring Hewan in Guangyuan. She gave birth to Wu Zetian on the 23rd day of the first lunar month. In the old days, people took this day as the meeting time of Empress Wu. On this day, people come to Shengze temple, zetianba and Jialing River in groups. The women wear new clothes and invite each other to swim along the river for good luck. After the founding of the people's Republic of China, this activity was once interrupted. In 1988, Guangyuan municipal government decided to restore this folk festival, and named it "daughter's Day", which was set on September 1 of the Gregorian calendar
the festival customs of the Han nationality in Mako, the God of kitchen preparation. It is popular in most areas of Sichuan. The people call the 24th day of the twelfth lunar month as the Lunar New Year's day. On this day, the Kitchen God should be worshipped by lighting lamps and candles
the festival customs of Han nationality in ghost town temple fair. It is popular in Feng County. In the old days, temple fairs were held on the birthday of the main god of the temple. Feng ghost town has numerous temples and sessions, with 35 sessions throughout the year. For example, on the ninth day of the first month, the Jade Emperor's Christmas temple fair was held in the Jade Emperor's hall; on the second day of the second month, the emperor's fair was held for the emperor of Yama's Christmas and his mother's incarnation; on the eighth day of April, the Buddha's fair was held for Sakyamuni's Christmas; on the eighth day of September, the Feng emperor held a land Fair for Christmas. After the founding of the people's Republic of China, the ghost town temple fair was once interrupted. On April 18, 1988, Feng County held the first ghost town temple fair. On the basis of retaining the characteristics of the original temple fair, it added economic and trade negotiations, material exchanges and other contents. The custom is popular now
Torch Festival is a traditional festival for Yi people to sacrifice gods and pray for evil spirits. It is usually held on June 24 of the lunar calendar. There are many legends about the origin of the torch. Some say that the torch can drive away disasters and evil spirits. Some say that it is "to lead the ears of grain out to see the torch." some say it is in memory of an ancient Yi woman. At present, Liangshan Prefecture closely combines the torch festival with the implementation of opening to the outside world, strengthening horizontal ties, and promoting business exchanges. Every year, the torch festival is held ring the festival period, with material transactions and grand celebrations. The ྚ Chinese Liangshan Yi international torch festival is successfully held, adding new ideas with the characteristics of the times to the traditional festivals
the new year of the Yi people. The festival lasts for three days, and the time is different. It is usually in October or November of the lunar calendar and is determined by the wizard. If there is a good harvest in that year, the time of the previous year can be used. Otherwise, choose another auspicious day. On the morning of the festival, people shoot guns to celebrate each other's grain harvest and a happy festival. Middle aged men in small groups visit relatives and friends, pay New Year's greetings to each other, and women stay at home to invite guests. In addition to singing and dancing, people also hold sports activities such as autumn grinding, horse racing and archery
yang Festival is a traditional Yi Festival. It is popular in Leibo County. The festival is held on the fifth day of the fifth lunar month, which is similar to the Dragon Boat Festival of the Han nationality. On this day, every family hangs Acorus calamus and Artemisia argyi leaves in front of the door. Children wipe their faces with realgar wine. Young people bring zongzi, wine and Tuotuo meat to the mountain lawn to sing, dance, wrestle and horse race for entertainment
zhuanshanhui is a traditional Tibetan Festival, also known as mufo Festival and mountain god worship. It is popular in Ganzi and Aba Tibetan areas. Every year on the birthday of the eighth day of the fourth lunar month, jiulongye water bathes it, so it is also known as mufo Festival. On this day of every year, people from far and near Ganzi Tibetan area, dressed in ethnic costumes, gather on the Paoma mountain and the Bank of zhedo river. People first went to the temple to burn incense, pray and burn paper money. Then turn the mountain to offer sacrifices to the gods and pray for their blessing. After turning the mountain, he set up a tent for a picnic and performed Tibetan opera. They sing folk songs, dance Guozhuang dance and string dance, and the riders also compete in horse racing and archery. During this period, people will hold material exchange activities and other cultural and sports activities
flower picking Festival is a traditional Tibetan festival in Boyu area of Nanping County. Every year, it is held on the fifth day of the fifth day of the fifth lunar month, with a festival period of two days. It is said that Boyu was a remote gully a long time ago. People lived by collecting and hunting, and made clothes from leaves and animal skins. One day, a girl named Lian came from afar. She was beautiful, kind-hearted and handy. She taught the local people to open up wasteland and cultivate land, to weave and sew clothes, and to collect lilies to treat people's diseases. One day on the fifth day of May, Lian went up to the mountain to pick flowers. She was swept down the cliff by the nickel wind and fell to death. People were very sad, so they went up the mountain to pick flowers on this day to commemorate her. Over time, a flower picking festival was formed
Huanglong Temple Fair is a traditional festival of Tibetan, Qiang, Hui, Han and other nationalities in Aba Prefecture. Every year, it is held in Huanglong Temple of Songpan County on June 15 of the lunar calendar. On the day of the festival, Huanglong Temple and the surrounding hillside forest were lined with all kinds of local procts, forming a grand material exchange meeting. The old people went to the temple to burn incense and pray for a safe life. The young people sang, danced and enjoyed themselves
herdsman's Day is a traditional festival of Tibetan herdsmen in Aba Prefecture. Every year, it is held at the beginning of the next month of the lunar calendar, and the festival period is generally one week. Before the festival, every household cleaning, when the sun is about to set, the garbage to the west, intended to let the flame of the sun will burn all ominous things. Then, each family prepared highland barley wine, yogurt and other festival food. On the morning of the first day of the festival, fathers and daughters compete for the auspicious water. Then, wash your face and hands with auspicious water with milk, and burn cypress incense with the washed hands, praying for abundant water and grass, and prosperity of cattle and sheep. Then the whole family sat around and had a feast. Three days before the festival, every village dances, sings, wrestles and has various recreational activities. Three days later, people began to go from village to house to congratulate each other on the happy holiday. Every night, people gather outside the village to light bonfires and sing and dance
Russian Festival is a traditional Tibetan Festival. It is popular in Muli County. The festival is held on the seventh day of the twelfth lunar month. It is said that in ancient times, houmuli area was very rich. Eight Tibetan branches from Tibet and Yunnan moved to live far away. The day they settled down was the beginning of the lunar month
