Create an unsigned transaction to delete a proposal.
Usage
visionWeb.transactionBuilder.deleteProposal(id, address, options);
Parameters
Parameter | Description | Type | Default |
---|---|---|---|
id | Proposal id. | number | - |
address | Account address. | string | Default account address |
options | Descriptions are below. | object | - |
options parameters
Parameter | Description | Type | Default |
---|---|---|---|
permissionId | The permission Id,optional, for multi-signature use. | number | - |
Returns
Object
Example
visionWeb.transactionBuilder.deleteProposal(1);
> {
visible: false,
txID: '82667425d5202509a4362742d82c1296d530eb8ed326078c0afcb13045c5c196',
raw_data: {
contract: [ [Object] ],
ref_block_bytes: '4651',
ref_block_hash: '8ad0e03099fdb655',
expiration: 1608466629000,
timestamp: 1608466570863
},
raw_data_hex: '0a02465122088ad0e03099fdb655408883d480e82e5a58081012540a33747970652e676f6f676c65617069732e636f6d2f70726f746f636f6c2e50726f706f73616c437265617465436f6e7472616374121d0a15462d7a77f8bef6fe225bf5e353dd6a380f588a149612040801100170efbcd080e82e'
}