Hello guys,
we were able to fetch the public id but not the public token
here is the call POST api.projectdabl.com/api/ledger//public/token
reponse:
{
“code”: “missing_token”,
“description”: “this endpoint requires a valid token and none was supplied”,
“success”: false
}
if anyone has an idea?
Thanks!
1 Like
Hello @Med_Amine_ID and welcome to the forum. We actually created a little library to make it easier to write UIs for dabl. @daml/hub-react - npm . Within a PublicLedger
React context that fetch is handled for you and you can just get data as the Public
party.
With respect to your specific question, you forgot to insert the ledgerId
into the URL for the token (at according to this code ).
5 Likes
Thank you for your answer I will check it out and I did have the correct ledgerId on my request just a typo from my end.
1 Like