createProposal

Create an unsigned transaction to create proposal

Usage

visionWeb.transactionBuilder.createProposal(parameters, address, options);

Parameters

ParameterDescriptionTypeDefault
parametersProposal parameters.array-
addressCreator address.stringDefault account address
optionsDescriptions are below.object-

options parameters

ParameterDescriptionTypeDefault
permissionIdPermission id for multi-signature use.number-

Returns

Object

Example

visionWeb.transactionBuilder.createProposal([{key: 1,value: 1}]);
> {
  visible: false,
  txID: '8f357ffee7ee3411de16deed7d8680a21d82f74510574aa8a19369815a419f0e',
  raw_data: {
    contract: [ [Object] ],
    ref_block_bytes: '44c1',
    ref_block_hash: '2d03e4c729bd267b',
    expiration: 1608465405000,
    timestamp: 1608465347336
  },
  raw_data_hex: '0a0244c122082d03e4c729bd267b40c8a88980e82e5a58081012540a33747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e50726f706f73616c437265617465436f6e7472616374121d0a15462d7a77f8bef6fe225bf5e353dd6a380f588a14961204080110017088e68580e82e'
}