Skip to content

Some example about how to create a document #1481

@DiazRock

Description

@DiazRock

I'm following the official doc of the node API, and the developers docs for a p2p node. I succes installed my node on my machine with ubuntu 18.04. I ping it and I got:

{
    "version": "1.0.0+0b1c3d55df5c410a5a6c57a1addcfa2c26b0a58f",
    "network": "flint"
}

I want to create a document with my centrifuge node. But I can't find any example around there, and the example of api docs is not very helpful. I tried with this json

{
    "attributes": {},
    "data": {},
    "document_id": "",
    "read_access": [
        "string"
    ],
    "schema": "",
    "write_access": [
        "string"
    ]
}

But it gave me "Malformed address". I tried generating two bit32 numbers in hex format for schema and document_id, but I got the same error. Would you guys help me?

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