Questions tagged [parser]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
43 views

Convert address to string after solidity 0.5.x

After solidity 0.5.x release none of conversions from address to string appear to be working. I've tested all of them on remix and got errors like converting bytes to uint or something like this. ...
0
votes
0answers
15 views

Finding methods executing a transfer

How can we find all the function which executes a .transfer to transfer ether even by parsing the contract or going through opcodes? One can also put their views related to it. Thanks!
0
votes
1answer
38 views

How can I parse internal transactions with light node?

is that possible to receive all transactions from new block with light node and parse all and even internal transactions with the help of its api?
1
vote
0answers
48 views

Parsing ethereum chaindata using leveldb

I'm new here :) I'm writing a c++ program that parses ethereum chain data. As of present I was able to get the key value pairs by using leveldb::ReadOptions command (as illustrated in the below code) ...
1
vote
1answer
78 views

Parsing the WolframAlpha string result from the Oracalize __callback function into a usable format?

I need to generate 10 unique random numbers between 0 to 100 in my smart contract. For this I've decided to utilise Oracalize and one of the datasource called WolframAlpha. This is how I use it: ...
2
votes
2answers
547 views

Decoding ethereum leveldb keys and values

I've created a simple script to read ethereum data from the leveldb using C++. Basically this testing program would print all keys in leveldb to the console. #include <cassert> #include <...
1
vote
1answer
114 views

Blockchain structure with smart contracts and access data

I found several articles explaining how smart contracts used and stored in blockchain but where does the smart contract actually resides in a blockchain (block or transaction or separate structure in ...
3
votes
0answers
139 views

Ethereum block chain extracter and parser like blocksci

I'm new to ethereum and I would like to develop an analyzing framework for ethereum. Is there a blockchain extractor and a parser to similar to blocksci available for ethereum and support analyzing of ...
0
votes
1answer
105 views

Solidity IDE Parser Error on Token Name

Getting this in Solidity: browser/ballot.sol:121:16: Parser Error: Expected Primary Expression. Here is my code, says that it is the name line with the parser error function ERC20Token( ) { ...
3
votes
2answers
763 views

Is there a current (11/2017) way to parse the Ethereum blockchain?

I understand there exist many (defunct/unsupported to date) blockchain explorer project and rate-limited web APIs exist for culling Ethereum data from the .ldb blockchain files. But what about bulk ...
2
votes
1answer
217 views

Parsing contract endpoint output

A contract endpoint on Ropsten returns a set like this: (uint256 _assetId, address _assetOwner, address _issuer, string _content, uint256 _sellPrice, uint256 _status) The endpoint is getAssetById at ...
5
votes
2answers
559 views

Convert ABI to Solidity code

Is there a tool to generate a solidity code from the ABI interface? const Ballot = [{"constant":false,"inputs":[{"name":"to","type":"address"}],"name":"delegate","outputs":[],"payable":false,"type":"...
1
vote
2answers
186 views

Parsing contract method output as an array of fields

I have a constant method in a Smart Contract that returns this array: (uint256 _field1, uint256 _field2, uint256 _field3, address _field4, string _field5) When invoking it I got this hex result: ...
4
votes
1answer
96 views

Parse contract to retrieve declared identifiers

Node.js Solidity compiler parses contract and returns its ABI, is there any library to retrieve all declared identifiers in a contract? For example, the following contract: contract Person { ...
9
votes
5answers
1k views

BNF grammar definition for Solidity

I scoured the Mix and Solidity repos for something like a formal definition of the language's grammar, so that one may generate parsers using tools like GrammarKit, but couldn't find anything. Any ...
10
votes
2answers
3k views

How can I easily parse a raw transaction?

In the Bitcoin ecosystem, there are tools like https://blockchain.info/decode-tx to decode a raw transaction. Is there a site that offers the equivalent for Ethereum? I'm looking for an easy way to ...
13
votes
3answers
2k views

How to parse blocks with Python?

I'm building a basic analytics framework for the Ethereum blockchain. As a first step I need to extract the data and I'd like to do this in Python. I've been using Geth as a client on OSX and so, as ...
11
votes
3answers
1k views

How to build an AST for Solidity?

I'm trying to build a parser for Solidity, and it would help if I could build a working version off of the existing parser. I've tried looking at the source code on the official git, but I haven't ...
5
votes
1answer
325 views

Is there available source code for the Ethereum parser (JS/Solidity or Python/Serpent?

I've tried looking at the source code, but I'm unfamiliar with the structure. I can't seem to find a parser module or source code. I'm attempting to understand the parser and perhaps write one from ...