-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7464ec2
commit 9a8bf15
Showing
5 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Redeem Ecash | ||
|
||
### `federation.getConfig()` | ||
|
||
Access configuration details about a connected federation. | ||
|
||
```ts twoslash | ||
// @esModuleInterop | ||
import { FedimintWallet } from '@fedimint/core-web' | ||
|
||
const wallet = new FedimintWallet() | ||
wallet.open() | ||
|
||
const config = await wallet.federation.getConfig() // [!code focus] | ||
``` |
15 changes: 15 additions & 0 deletions
15
docs/core/FedimintWallet/FederationService/getFederationId.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Redeem Ecash | ||
|
||
### `federation.getFederationId()` | ||
|
||
Access the `federationId` of the connected Federation. | ||
|
||
```ts twoslash | ||
// @esModuleInterop | ||
import { FedimintWallet } from '@fedimint/core-web' | ||
|
||
const wallet = new FedimintWallet() | ||
wallet.open() | ||
|
||
const config = await wallet.federation.getFederationId() // [!code focus] | ||
``` |
17 changes: 17 additions & 0 deletions
17
docs/core/FedimintWallet/FederationService/getInviteCode.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Redeem Ecash | ||
|
||
### `federation.getInviteCode()` | ||
|
||
Access the invite code for the connected federation. | ||
|
||
```ts twoslash | ||
// @esModuleInterop | ||
import { FedimintWallet } from '@fedimint/core-web' | ||
|
||
const wallet = new FedimintWallet() | ||
wallet.open() | ||
|
||
const peerId = 0 // Index of the guardian to ask for the invite code // [!code focus] | ||
|
||
const inviteCode = await wallet.federation.getInviteCode(peerId) // [!code focus] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters