-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest_enc.js
More file actions
51 lines (48 loc) · 1.01 KB
/
test_enc.js
File metadata and controls
51 lines (48 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { ops } from "@quantadex/bitsharesjs";
var trans = {
"ref_block_num": 18517,
"ref_block_prefix": 532182519,
"expiration": "2019-01-03T22:12:12",
"operations": [[
10, {
"fee": {
"amount": 500000000,
"asset_id": "1.3.0"
},
"issuer": "1.2.23",
"symbol": "ETHERTEST2",
"precision": 5,
"common_options": {
"max_supply": "100000000000",
"market_fee_percent": 0,
"max_market_fee": 1000,
"issuer_permissions": 79,
"flags": 0,
"core_exchange_rate": {
"base": {
"amount": 1,
"asset_id": "1.3.0"
},
"quote": {
"amount": 1,
"asset_id": "1.3.1"
}
},
"whitelist_authorities": [],
"blacklist_authorities": [],
"whitelist_markets": [],
"blacklist_markets": [],
"description": "My fancy description",
"extensions": []
},
"is_prediction_market": false,
"extensions": []
}
]],
"extensions": []
};
function test() {
var b = ops.transaction.toBuffer(trans);
console.log(b.toString('hex'));
}
test()