ImmutableDataInterface

ImmutableDataInterface

new ImmutableDataInterface(app)

Parameters:
Name Type Description
app SAFEApp
Source:

Methods

create() → {Promise.<Writer>}

Create a new ImmutableDataInterface writer

Source:
Example
// Assumes SAFEApp interface has been obtained
const asyncFn = async () => {
    try {
        const iDataWriter = await app.immutableData.create()
    } catch(err) {
      throw err;
    }
};

fetch(Network) → {Promise.<Reader>}

Look up an existing ImmutableDataInterface for the given address

Parameters:
Name Type Description
Network Buffer

XOR address

Source:
Example
// Assumes SAFEApp interface has been obtained
const asyncFn = async () => {
    try {
        const iDataReader = await app.immutableData.fetch(iDataAddress);
    } catch(err) {
      throw err;
    }
};