Skip to content

Sample code for block api #12

Closed
Closed
@travisperson

Description

@travisperson
repo.blocks.read('12200007d4e3a319cd8c7c9979280e150fc5dbaae1ce54e790f84ae5fd3c3c1a0475', function (buff, err) {
  console.log(err)
})

While this basically works as intended (to print out the data of the block), the variable names are confusing and probably should be switched.

repo.blocks.write(buff, function (buff, err) {
  console.log(buff.toString('utf-8'), err)
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions