# Is there a way to share contracts between participants nodes in Canton using HTTP JSON API Service?

**URL:** <https://forum.canton.network/t/is-there-a-way-to-share-contracts-between-participants-nodes-in-canton-using-http-json-api-service/618>\
**Category:** App Development\
**Tags:** daml\
**Created:** [June 9, 2020, 11:22am UTC](https://forum.canton.network/t/is-there-a-way-to-share-contracts-between-participants-nodes-in-canton-using-http-json-api-service/618 "2020-06-09T11:22:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grigor](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@Grigor](https://forum.canton.network/u/Grigor)\
**Post date:** [June 9, 2020, 11:22am UTC](https://forum.canton.network/t/is-there-a-way-to-share-contracts-between-participants-nodes-in-canton-using-http-json-api-service/618/1 "2020-06-09T11:22:25Z")

</div>

We have the following topology in Canton:  
We have single domain named “MYDOMAIN” which contains two participants nodes “A” and “B”.  
The “A” ledger node uses port “10001” and “B” uses “11001” port.  
We have created one DAML A-Certificate in “A” node and then B-Certificate in a “B” node using JSON Api service. Is there way to share/use/makevisible certificates created in “A” participants node to “B” participant node using JSON API service?

---

<div class="post-metadata">

**Author:** ![bernhard](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/bernhard/32/356_2.png) [@bernhard](https://forum.canton.network/u/bernhard)\
**Post date:** [June 9, 2020, 11:36am UTC](https://forum.canton.network/t/is-there-a-way-to-share-contracts-between-participants-nodes-in-canton-using-http-json-api-service/618/2 "2020-06-09T11:36:30Z")

</div>

Hi @Grigor, welcome to the DAML community forum.

The JSON API shows active contracts. on which the requesting party, specified as part of the JWT, is a stakeholder. _Parties_ here are different to nodes, but in Canton each note also comes with its own party, called something like `participant1::somehash` by default. So if you have two parties `A::somehash` and `B::anotherhash` hosted on nodes A, and B, respectively, A can make a contract visible to B by adding `B::anotherhash` as an [observer](https://docs.daml.com/daml/reference/templates.html#observers) to that contract.

---

<div class="post-metadata">

**Author:** ![Grigor](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@Grigor](https://forum.canton.network/u/Grigor)\
**Post date:** [June 9, 2020, 1:47pm UTC](https://forum.canton.network/t/is-there-a-way-to-share-contracts-between-participants-nodes-in-canton-using-http-json-api-service/618/3 "2020-06-09T13:47:55Z")

</div>

Thanks for quick response @bernhard

Here is my case:  
// A and B are participants  
A.domains.connect\_local(MYDOMAIN)  
B.domains.connect\_local(MYDOMAIN)

Alice is a party in A participants node, and Bob is the party in B node. Alice created contractID with JSON API in A participant node, and BOB need to accept it, when I am trying to refer that contract ID created in A node json API gives an error:  
"io.grpc.StatusRuntimeException: INVALID\_ARGUMENT: Command interpretation error in LF-DAMLe: dependency error: couldn’t find contract AbsoluteContractId

So I am thinking what is the way to share that contractID created in A participants node in B.

---

<div class="post-metadata">

**Author:** ![drsk](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/drsk/32/43_2.png) [@drsk](https://forum.canton.network/u/drsk)\
**Post date:** [June 9, 2020, 6:01pm UTC](https://forum.canton.network/t/is-there-a-way-to-share-contracts-between-participants-nodes-in-canton-using-http-json-api-service/618/4 "2020-06-09T18:01:23Z")

</div>

Hi @Grigor, as @Bernhard mentioned, the way to share a contract with another party on the ledger is via the `observer` field of the contract. Would it be possible for you to share the DAML code of the `Certificate` contract?
