Constructors

  • Creates a new instance of the Marshal class, which can be used to interact with the marshal service

    Parameters

    • env: string

      'devnet' | 'mainnet' | 'testnet'

    Returns DataMarshal

Properties

chainID: string
env: string
marshalUrl: string

Methods

  • Method that checks the uptime of the data stream using the NFT token identifier and the data marshal service

    Parameters

    • tokenIdentifier: string

      The token identifier that is used to check the uptime of th data stream

    Returns Promise<{
        response_code: number;
    }>

    The response code 200 or 404

  • Method that encrypts the data stream using the data marshal service

    Parameters

    • dataStream: string

      The data stream to be encrypted

    • creatorAddress: string

      The address of the creator of the data stream

    Returns Promise<{
        dataStreamEncrypted: string;
        messageHash: string;
    }>

    The encrypted data stream and the hash of the data stream

  • Method that returns a nonce to sign in order to prove ownership of a wallet address

    Returns Promise<{
        nonce: string;
    }>

    The nonce to sign

Generated using TypeDoc