Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some example about how to create a document #1481

Open
DiazRock opened this issue Jul 7, 2021 · 0 comments
Open

Some example about how to create a document #1481

DiazRock opened this issue Jul 7, 2021 · 0 comments

Comments

@DiazRock
Copy link

DiazRock commented Jul 7, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant