Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 32978

Questions regarding the development of smart contracts

1 vote
Accepted

Its possible to recive and send tokens by smartcontract?

As long as you implement into your contract functions that allows it to interact with the contract that created the tokens, this is possible. If the token is a standard, like ERC20, the same code (cha …
Jaime's user avatar
  • 8,390
2 votes
Accepted

Is it possible to change a variable based on time?

You can not do this natively. As stated above you can use services. ETH-Tempus Oraclize Ethereum Alarm Clock ETH-Tempus is the simplest and cheaper. The difference with oraclize is that the gas co …
Jaime's user avatar
  • 8,390
1 vote

What _totalsupply number are we passing in smart contract in functions?

You should use the number that is multiplied by decimals (10**18). So if you want to transfer one token you pass the value 1000000000000000000. This is because there is not float number representation …
Jaime's user avatar
  • 8,390
1 vote
Accepted

Can smart contracts be used for refundable purchases of physical items?

In any system that requires information, something or someone should provide the information. The contracts that you describe could very easily be implemented on ethereum. The information can be prov …
Jaime's user avatar
  • 8,390
0 votes

calling payable (solidity) method with python

Using web3py you can access the functions in your contract, which I assume is what you are doing. From your code, I get that the contract instance is fcontract. You can do: fcontract.functions.inves …
Jaime's user avatar
  • 8,390
1 vote

How to integrate Ethereum with MATLAB?

You can do the matrix manipulations on python instead, using web3.py I hope this helps.
Jaime's user avatar
  • 8,390
1 vote

How to tell a contract when to do an action based on time and blocks?

You could use any of the services available to schedule executions of functions. You can use: Ethereum Clock Alarm. Oraclize Chronos Disclaimer: I wrote the Chronos code and it is available only on …
Jaime's user avatar
  • 8,390
2 votes

How to call function from child contract in parent contract?

There is an issue in the first contract. two = ConfigContract(msg.sender); The address you need to put in ConfigContract('address') is the address at which ConfigContract was deployed. Like this: …
Jaime's user avatar
  • 8,390
1 vote
Accepted

Will encodeAbi() preserve now value?

Now will be the value of the timestamp of the current block, so the value will change with time.
Jaime's user avatar
  • 8,390
0 votes
Accepted

How do I implement an internally populated blacklist?

The blacklist checking is simple: mapping (address => bool) public blacklist; // TODO: function to clear blacklist ----- if (msg.value < 0.005 ether) { require(firstPurchaceTierAllowe …
Jaime's user avatar
  • 8,390
3 votes
Accepted

Calling a smart-contract fallback function from another contract

The thing is that the transfer method allows for 2300 gas stipend. Because the fallback has a transfer again, 2300 won't be enough. You can use addressB.call.value(msg.value)() which will pass all …
Jaime's user avatar
  • 8,390
1 vote

How can a smart contract store mutable data outside blockchain?

In this case you will use the Blockchain ( using a smart contract) as a source of truth that for each document will provide an unique identifier (the document's hash). Assume for example, that your ap …
Jaime's user avatar
  • 8,390
5 votes

Encryption in solidity

If you send the data and then encrypt it in solidity, the data will be visible in the transaction that in the first place was used to send the data to the contract. Also, solidity doesn't have a funct …
Jaime's user avatar
  • 8,390
0 votes
Accepted

what is ERC20 ERC20 token = ERC20(_tokenAddress)

assume that the ERC20 token that you want to transfer is called ERC20Token (thats the name of the contract) you can import ERC20Token contract (or the interface of it) in your contract and then do th …
Jaime's user avatar
  • 8,390
1 vote

How smart contract different than programs-package?

Through human history people has come with new ideas and baptize these ideas with names. "Smart contract" is a name for one idea. It is nothing but a piece of code ( in this case running in a decentra …
Jaime's user avatar
  • 8,390

1
2 3 4 5
15 30 50 per page