Skip to content

Commit

Permalink
docs: revert create invite for onchain groups docs
Browse files Browse the repository at this point in the history
  • Loading branch information
waddaboo committed Nov 29, 2024
1 parent a60b8de commit d40f843
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions apps/docs/docs/tutorials/api-sdk/groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,27 +189,6 @@ Here is an example of the custom URL structure:
https://<custom-domain>?inviteCode=<invite-code>
```


#### Create invite for on-chain groups

You will have to create an associated off-chain group first in order to use the create invite feature for on-chain groups.

```ts
const apiKey = "your-api-key"
const groupName = "onchain-group-name"
const description = `This group is associated to the on-chain group ${groupName}`

const associatedGroup = await apiSdk.createGroup(
groupName,
description,
"on-chain",
16,
3600
)

const invite = await apiSdk.createInvite(associatedGroup.id, apiKey)
```

#### Get invite

Returns a specific invite along with the group details associated to the invite.
Expand Down

0 comments on commit d40f843

Please sign in to comment.