import TransactionBuilder from '@decentrawise/graphenejs/lib/chain/src/TransactionBuilder.js'TransactionBuilder
Constructor Summary
| Public Constructor | ||
| public | 
      
       | 
    |
Member Summary
| Public Members | ||
| public | 
       expiration: *  | 
    |
| public | 
       operations: *[]  | 
    |
| public | 
      
       | 
    |
| public | 
      
       | 
    |
| public | 
       signatures: *  | 
    |
| public | 
      
       | 
    |
| public | 
       signer_private_keys: *[]  | 
    |
| public | 
       tr_buffer: *  | 
    |
| Private Members | ||
| private | 
       _broadcast: *  | 
    |
Method Summary
| Public Methods | ||
| public | 
       add_operation(operation: *) Typically one will use this.add_type_operation instead.  | 
    |
| public | 
       add_signer(private_key: *, public_key: *)  | 
    |
| public | 
       add_type_operation(name: *, operation: *)  | 
    |
| public | 
       broadcast(was_broadcast_callback: *): *  | 
    |
| public | 
       finalize(): * Typically this is called automatically just prior to signing.  | 
    |
| public | 
      
       | 
    |
| public | 
       get_required_signatures(available_keys: *): *  | 
    |
| public | 
       get_type_operation(name: *, operation: *): undefined[]  | 
    |
| public | 
      
       | 
    |
| public | 
      
       | 
    |
| public | 
       process_transaction(cwallet: *, signer_pubkeys: undefined, broadcast: boolean): * This does it all: set fees, finalize, sign, and broadcast (if wanted).  | 
    |
| public | 
       propose(proposal_create_options: *): *  | 
    |
| public | 
       serialize(): *  | 
    |
| public | 
       set_expire_seconds(sec: *): * optional: there is a deafult expiration  | 
    |
| public | 
       set_required_fees(asset_id: *, removeDuplicates: *): * optional: the fees can be obtained from the witness node  | 
    |
| public | 
       sign(chain_id: *)  | 
    |
| public | 
       toObject(): *  | 
    |
| public | 
       update_head_block(): *  | 
    |
Public Constructors
public constructor() source
Public Members
public expiration: * source
public operations: *[] source
public ref_block_num: * source
public ref_block_prefix: * source
public signatures: * source
public signer_private_keys: *[] source
public tr_buffer: * source
Private Members
private _broadcast: * source
Public Methods
public add_operation(operation: *) source
Typically one will use this.add_type_operation instead.
Params:
| Name | Type | Attribute | Description | 
| operation | * | 
public add_signer(private_key: *, public_key: *) source
Params:
| Name | Type | Attribute | Description | 
| private_key | * | ||
| public_key | * | 
  | 
      
public add_type_operation(name: *, operation: *) source
Params:
| Name | Type | Attribute | Description | 
| name | * | ||
| operation | * | 
public broadcast(was_broadcast_callback: *): * source
Params:
| Name | Type | Attribute | Description | 
| was_broadcast_callback | * | 
Return:
| * | 
public finalize(): * source
Typically this is called automatically just prior to signing. Once finalized this transaction can not be changed.
Return:
| * | 
public get_required_signatures(available_keys: *): * source
Params:
| Name | Type | Attribute | Description | 
| available_keys | * | 
Return:
| * | 
public get_type_operation(name: *, operation: *): undefined[] source
Params:
| Name | Type | Attribute | Description | 
| name | * | ||
| operation | * | 
public process_transaction(cwallet: *, signer_pubkeys: undefined, broadcast: boolean): * source
This does it all: set fees, finalize, sign, and broadcast (if wanted).
Return:
| * | 
public propose(proposal_create_options: *): * source
Params:
| Name | Type | Attribute | Description | 
| proposal_create_options | * | 
Return:
| * | 
public set_expire_seconds(sec: *): * source
optional: there is a deafult expiration
Params:
| Name | Type | Attribute | Description | 
| sec | * | 
Return:
| * | 
public set_required_fees(asset_id: *, removeDuplicates: *): * source
optional: the fees can be obtained from the witness node
Params:
| Name | Type | Attribute | Description | 
| asset_id | * | ||
| removeDuplicates | * | 
Return:
| * | 
public sign(chain_id: *) source
Params:
| Name | Type | Attribute | Description | 
| chain_id | * | 
  | 
      
    
  