Variable default

default: { activateAccount: ((op: <internal>.Operation) => string); address: ((addressArg: string) => string); ballot: ((op: <internal>.Operation) => string); bool: ((boolArg: boolean) => string); decodeRawBytes: ((bytes: string) => <internal>.Micheline); delegation: ((op: <internal>.Operation) => string); doubleBakingEvidence: (() => string); doubleEndorsementEvidence: (() => string); encodeRawBytes: ((input: <internal>.Micheline) => string); endorsement: ((op: <internal>.Operation) => string); forge: ((opOb: <internal>.OperationObject, counter: number, protocol: string) => Promise<<internal>.ForgedBytes>); operation: ((op: <internal>.Operation) => string); origination: ((op: <internal>.Operation) => string); parameters: ((parameter: any) => string); proposals: (() => string); publicKey: ((pk: string) => string); publicKeyHash: ((pkh: string) => string); reveal: ((op: <internal>.Operation) => string); script: ((scriptArg: { code: <internal>.Micheline; storage: <internal>.Micheline }) => string); seedNonceRevelation: ((op: <internal>.Operation) => string); toBytesInt32: ((num: number) => any); toBytesInt32Hex: ((num: number) => string); transaction: ((op: <internal>.Operation) => string); zarith: ((n: string) => string) }

Type declaration

  • activateAccount: ((op: <internal>.Operation) => string)
  • address: ((addressArg: string) => string)
      • (addressArg: string): string
      • Description

        Forge address bytes

        Returns

        Forged address bytes

        Parameters

        • addressArg: string

          Address to forge

        Returns string

  • ballot: ((op: <internal>.Operation) => string)
  • bool: ((boolArg: boolean) => string)
      • (boolArg: boolean): string
      • Description

        Forge boolean

        Returns

        The converted boolean

        Parameters

        • boolArg: boolean

          Boolean value to convert

        Returns string

  • decodeRawBytes: ((bytes: string) => <internal>.Micheline)
  • delegation: ((op: <internal>.Operation) => string)
  • doubleBakingEvidence: (() => string)
      • (): string
      • Description

        Forge double_baking_evidence operation bytes

        Returns

        Forged operation bytes

        Returns string

  • doubleEndorsementEvidence: (() => string)
      • (): string
      • Description

        Forge double_endorsement_evidence operation bytes

        Returns

        Forged operation bytes

        Returns string

  • encodeRawBytes: ((input: <internal>.Micheline) => string)
  • endorsement: ((op: <internal>.Operation) => string)
  • forge: ((opOb: <internal>.OperationObject, counter: number, protocol: string) => Promise<<internal>.ForgedBytes>)
      • (opOb: <internal>.OperationObject, counter: number, protocol: string): Promise<<internal>.ForgedBytes>
      • 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>

  • operation: ((op: <internal>.Operation) => string)
  • origination: ((op: <internal>.Operation) => string)
  • parameters: ((parameter: any) => string)
      • (parameter: any): string
      • Description

        Forge parameter bytes

        Returns

        Forged parameter bytes

        Parameters

        • parameter: any

          Script to forge

        Returns string

  • proposals: (() => string)
      • (): string
      • Description

        Forge proposals operation bytes

        Returns

        Forged operation bytes

        Returns string

  • publicKey: ((pk: string) => string)
      • (pk: string): string
      • Description

        Forge public key bytes

        Returns

        Forged public key bytes

        Parameters

        • pk: string

          Public key to forge

        Returns string

  • publicKeyHash: ((pkh: string) => string)
      • (pkh: string): string
      • Description

        Forge public key hash bytes

        Returns

        Forged public key hash bytes

        Parameters

        • pkh: string

          Public key hash to forge

        Returns string

  • reveal: ((op: <internal>.Operation) => string)
  • script: ((scriptArg: { code: <internal>.Micheline; storage: <internal>.Micheline }) => string)
  • seedNonceRevelation: ((op: <internal>.Operation) => string)
      • (op: <internal>.Operation): string
      • Description

        Forge seed_nonce_revelation operation bytes

        Returns

        Forged operation bytes

        Parameters

        Returns string

  • toBytesInt32: ((num: number) => any)
      • (num: number): any
      • Description

        Convert bytes from Int32

        Returns

        The converted number

        Parameters

        • num: number

          Number to convert to bytes

        Returns any

  • toBytesInt32Hex: ((num: number) => string)
      • (num: number): string
      • Description

        Convert hex from Int32

        Returns

        The converted number

        Parameters

        • num: number

          Number to convert to hex

        Returns string

  • transaction: ((op: <internal>.Operation) => string)
  • zarith: ((n: string) => string)
      • (n: string): string
      • Description

        Forge zarith bytes

        Returns

        Forged zarith bytes

        Parameters

        • n: string

          Zarith to forge

        Returns string

Generated using TypeDoc