Function forge

  • Description

    Forge operation bytes

    Returns

    Forged operation bytes

    Example

    forge.forge({
    branch: head.hash,
    contents: [{
    kind: 'transaction',
    source: 'tz1fXdNLZ4jrkjtgJWMcfeNpFDK9mbCBsaV4',
    fee: '50000',
    counter: '31204',
    gas_limit: '10200',
    storage_limit: '0',
    amount: '100000000',
    destination: 'tz1RvhdZ5pcjD19vCCK9PgZpnmErTba3dsBs',
    }],
    }, 32847).then(({ opbytes, opOb }) => console.log(opbytes, opOb));

    Parameters

    • opOb: <internal>.OperationObject

      The operation object(s)

    • counter: number

      The current counter for the account

    • protocol: string

      The next protocol for the operation. Used to handle protocol upgrade events if necessary.

    Returns Promise<<internal>.ForgedBytes>

Generated using TypeDoc