Questions tagged [inline-action]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

Purpose of max_inline_action_size?

What is the practical purpose of max_inline_action_size in global settings? I was attempting to create a contract that would be set with contract@eosio.prods / contract@eosio.code active permissions ...
user avatar
0 votes
0 answers
18 views

Why eosio.code permission is not required in my local blockchain?

I am running a local blockchain with the following command: nodeos -e -p "eosio" --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin --delete-all-blocks > /dev/null 2>&...
user avatar
  • 1
0 votes
2 answers
113 views

Inline action for transferring tokens

I am trying to transfer some tokens as part of my contract action, but I get an error: ACTION maincontract::sendtoken(const name sender, const name receiver) { action( permission_level{ get_self(...
user avatar
0 votes
1 answer
115 views

Calling external action with 'action_wrapper' and 'action'

In contract we have two way to call another action: Use 'action' action(permission_level{get_self(), eosio::name{"active"}}, eosio::name{"eosio"}, ...
user avatar
  • 125
0 votes
1 answer
51 views

make inline transfer contract and using it on jungle testnet

hello everyone i am faceing a problem on jungle testnet i am trying to make a inline transfer but i got this error after i work with the api_endpoint the code is #include <eosio/eosio.hpp> #...
user avatar
1 vote
1 answer
41 views

Eos-sharp jungle Error 3090003 when trying to call external smart contract

I’m trying to achieve something quite simple. I try to call eosio.token transfer from one of my smartContract (lomtaxjungle dopurchase), but after severals days i still don’t manage to do it. From ...
user avatar
1 vote
1 answer
74 views

I have doubts about intercontract communication

I have read that: In order to call an inline action, that is to call an action of contract A from contract B, there is a need to set some special permission. In this case, the Ram payer for the ...
user avatar
  • 43
0 votes
2 answers
291 views

use inline action with eosio.token

Hello guys i am trying to build a contract that act with eosio.token to make a transfer from my contract using inline action with the eosio.token contract here my code #include <eosio/eosio.hpp&...
user avatar
0 votes
1 answer
73 views

Are all actions on a transaction supposed to be included in the block?

I've noticed something strange that is confusing me. I have a transaction that includes multiple actions on it, but it appears that the "transfer" action did not get recorded in the actual block. You ...
user avatar
  • 1
0 votes
1 answer
37 views

Return token to owner after initiating a transfer to my contract

Good Day, I am working on a contract where for example, If I send 2 ETH to a contract, ( 1 ETH = 2 Cryptokitty tokens ) then that contract is supposed to return me 4 Cryptokitty tokens. What I Have ...
user avatar
  • 105
2 votes
0 answers
45 views

How to get the parent action in the inline action?

There's a contract A with action void a(string memo), it calls an inline action for contract B with action void b(), can I get the "memo" parameter in the function void b()? Note that I can't modify ...
user avatar
  • 1,066
1 vote
0 answers
43 views

cannot get latest state of table after modifying table in inline action

As shown with code below, I modify table in an inline action, and then want to get the latest data. But the data I get is not the latest. Why? void mycontract::myfunc() { action ( ...
user avatar
1 vote
2 answers
337 views

What is the difference between a method call and the use of SEND_INLINE_ACTION?

in looking at the code for eosio.token (https://github.com/EOSIO/eos/blob/master/contracts/eosio.token/eosio.token.cpp) the issue method calls the transfer method at the bottom, but instead of just ...
user avatar
  • 495
1 vote
0 answers
52 views

Inline actions doesn`t show up in Jungle Testnet Monitor

On the Jungle testnet when I transfer tokens to somebody I can see the transaction in account history, but when I call contract action, which has inline transfer action, I can`t see it on Testnet ...
user avatar
3 votes
1 answer
374 views

How can multisig trigger an action in contract other than eosio.token contract?

Other than eosio.token contract how can we call the inline actions in contract from multisig contract. For example, I have a contracts namely mltisigmetup(with action meetup). Now I need a ...
user avatar
  • 85
5 votes
1 answer
373 views

Are inline actions asynchronous?

The docs say that Communication among contracts should be considered as occurring asynchronously. However, the description of inline communication given is Inline communication takes the form ...
user avatar
4 votes
2 answers
3k views

Require inline action be sent by contract, and not account

I have contractB trigger an inline action: /// @abi action void send() { action( permission_level{ _self, N(active) }, N(contractA), N(get), std::make_tuple( _self ) ...
user avatar
  • 91
3 votes
1 answer
566 views

How to authorize inline action of another contract within a contract?

I deployed a contract omes.user. In the reguser(account_name user) action of contract omes.user I want to send an inline action to another contract eosio.token to issue some tokens to user. Here is ...
user avatar
1 vote
1 answer
619 views

Can we get all the actions from all blocks?

Somebody say we can get all the blocks through rpc, then we can get all the actions. But I found that in the block information, there're no inline actions, so many inline actions will lose, right?
user avatar
  • 1,066
5 votes
2 answers
662 views

How to set up chain of permission levels for a user?

This is a great answer that describes the ways you can handle user permission levels for inline actions. According to that answer: This can be done a few ways (ordered from most risky for the user ...
user avatar
  • 111
4 votes
1 answer
644 views

"dice" contract "withdraw" action problem

I wonder if anyone experienced a similar problem and managed to resolve it. I'm testing the "dice" contract on my local tesnet. I've setup up all necessary contracts and could deposit assets to the "...
user avatar
  • 63
2 votes
1 answer
411 views

Are inline actions are executed in a separate transaction?

As it is stated here , Inline communication paragraph inline actions are supposed to be executed in the same transaction and inherit authorization from calling action. But when i do action.send ...
user avatar
  • 125
3 votes
1 answer
373 views

Contract A makes an inline call to contract B. How can B determine that A is the one making the call?

Contract A calls an inline action on contract B via INLINE_ACTION_SENDER(...). How can contract B determine that it is being called by contract A?
user avatar
  • 695
2 votes
1 answer
1k views

require_auth differs from the auth check of INLINE_ACTION_SENDER but how?

In a contract action I've got the following: require_auth(from); // NOTICE THIS LINE... INLINE_ACTION_SENDER(contract, transfer)( N(contract), {from, N(active)}, // ... AND THIS LINE. {...
user avatar
  • 695