LiquidAccounts

​LiquidAccounts​

push_liquid_account_transaction - register new account
1
/*
2
getClient()
3
* service name: vaccounts
4
* contract name
5
​
6
service.push_liquid_account_transaction
7
* account name of contract with LiquidAcount code deployed
8
* private key of LiquidAccount
9
* action name: regaccount to register new account
10
* payload
11
* vaccount - name of LiquidAccount
12
​
13
*/
14
​
15
const service = await (await getClient()).service('vaccounts', "vacctstst123");
16
const response = await service.push_liquid_account_transaction(
17
"vacctstst123",
18
"5JMUyaQ4qw6Zt816B1kWJjgRA5cdEE6PhCb2BW45rU8GBEDa1RC",
19
"regaccount",
20
{
21
vaccount: 'testing126'
22
}
23
);
Copied!
push_liquid_account_transaction - push transaction after creating account
1
/*
2
getClient()
3
* service name: vaccounts
4
* contract name
5
​
6
service.push_liquid_account_transaction
7
* account name of contract with LiquidAcount code deployed
8
* private key of LiquidAccount
9
* action name: hello
10
* payload
11
* any - payload must match struct outline in the smart contract
12
​
13
*/
14
​
15
const service = await (await getClient()).service('vaccounts', "vacctstst123");
16
const response = await service.push_liquid_account_transaction(
17
"vacctstst123",
18
"5JMUyaQ4qw6Zt816B1kWJjgRA5cdEE6PhCb2BW45rU8GBEDa1RC",
19
"hello",
20
{
21
vaccount: 'testing126'
22
}
23
);
Copied!
Last modified 1yr ago
Copy link