payload

payload definition | code​

1
/**
2
* LiquidAccounts use a payload syntax in order to pass params. This payload is setup as a struct and uses the EOSLIB_SERIALIZE to create the payload type
3
*
4
* @param {name} vaccount - vaccount that owns table
5
*
6
* Notes
7
* - primary key for the vaccount payload table must be "vaccount" for client side library support
8
*
9
* Example:
10
*
11
* @code
12
* struct dummy_action_hello {
13
* name vaccount;
14
* uint64_t b;
15
* uint64_t c;
16
*
17
* EOSLIB_SERIALIZE( dummy_action_hello, (vaccount)(b)(c) )
18
* };
19
*
20
* [[eosio::action]] void hello(dummy_action_hello payload) {
21
* ...
22
* }
23
* @endcode
24
*/
Copied!
Copy link