You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, the first "Alice" represents the entity that is doing the retirement/offset. The second one represents the party that 'benefits' from it, in this case "Bob". We will also add Bob's address so now the relation of the certificate is set to that address instead of the retiring party.
321
+
"Alice" represents the entity that is doing the retirement/offset. The second name represents the party that 'benefits' from it, in this case "Bob". We will also add Bob's address so now the relation of the certificate is set to that address instead of the retiring party.
324
322
325
323
This useful in case you happen to be an entity that retires on behalf of someone else.
You could also set the signer/provider later if you prefer that. They are optional. But you will need to set them if you want to interact with contracts. The provider is read-only, while the signer allows both writing to and reading from the blockchain.
38
38
39
39
```typescript
40
-
import{ ToucanClient }from"toucan-sdk";
40
+
importToucanClientfrom"toucan-sdk";
41
41
42
42
const toucan =newToucanClient("alfajores");
43
43
toucan.setProvider(provider);
@@ -140,7 +140,7 @@ Now you have quite some info on the project, including its address.
140
140
Toucan SDK offers a lot of pre-defined queries. Try them out!
141
141
142
142
```typescript
143
-
import{ ToucanClient }from"toucan-sdk";
143
+
importToucanClientfrom"toucan-sdk";
144
144
145
145
// here we don't need to set the signer or provider
146
146
const toucan =newToucanClient("alfajores");
@@ -186,7 +186,7 @@ This allows you to fetch with your own queries and can be very powerful if you k
0 commit comments