All Questions

Filter by
Sorted by
Tagged with
1
vote
2answers
37 views

How do I confirm that the person sending an action is the same as a user in the parameter?

Specific example from a contract: ... void hi(name user){ // verification here, require_auth(user)? print(user); } ... I've tried require_auth(user) but that seems to always fail unless the user ...
0
votes
2answers
66 views

require_auth() not working as expected

I adapted the hello contract, expanding with require_auth() and added an additional account oliver that should be able to execute the action hashin on behalf of the contract owner doctest1. I adjusted ...
0
votes
1answer
30 views

Can a contract know the creation date of accounts?

Is the creation date of accounts part of consensus? Can I query it within contracts? If so, how to do it?
2
votes
1answer
45 views

Reclaim RAM for dApp that creates an account and transfers funds

A dApp that creates a new account and transfers EOS to that account will have to 'pay' for 240 bytes of RAM for the new balance object on the new account. When the new account transfers some funds, ...
1
vote
1answer
41 views

Is there a way to mark accounts like give an account a property value?

Let's say I'm making a game character and each eos account is a unique character. Is there a way to mark an account with different properties like strength, speed, durability, etc....
3
votes
1answer
119 views

EOSIO account and smart contract

I have some questions about the account and smart contract: From google and my research, I found that one account can have only one smart contract, why? It seems you can't have the same action name ...
4
votes
1answer
72 views

How to check (within a smart contract) if an account has an associated smart contract?

Is it possible to check if an account has a smart contract, from within a smart contract?
3
votes
1answer
94 views

What happens when wallet is kept unlocked on eos mainnet?

Lets say, for pushing a transaction I unlocked my wallet and pushed the transaction with the active permission by command line. So, while wallet is remained unlocked, can anyone who knows my account ...
3
votes
1answer
534 views

How to get accounts info in smart contract

How can I get accounts info in a smart contract? Or if given a public key and account_name, is there any way can verify that account has this public key in a certain permission?
3
votes
2answers
58 views

Commented owner/active parameters in the newaccount smart contract

In contracts/eosio.system/eosio.system.cpp, the following function has the owner and active authority parameters commented: void native::newaccount( account_name creator, ...
1
vote
2answers
446 views

What is the purpose for each of the eosio.* system accounts?

There are several eosio.* accounts - also referred to as system accounts - described in the bios sequence tutorial: eosio.bpay eosio.msig eosio.names eosio.ram eosio.ramfee eosio.saving eosio.stake ...
2
votes
1answer
227 views

EOS Token Economy with Contract, Wallet, Account

i'm trying to making dApp with EOS. I have some questions. About token. Should i use "eosio.token" contract to make token economy? Or it is just for example? Then should i make new smart contract ...
8
votes
2answers
856 views

How to validate if an Account exists?

I know that we have require_auth to check for permission, but I'm looking for something like is_valid_account to check if the account exists and is active in the chain. Do we have anything like that?...