Skip to content

Update AppKit documentation to reflect latest changes #425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions appkit/android/core/actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ Returns the current active account connected via AppKit

```kotlin
AppKit.getAccount()

// With optional namespace parameter for specific blockchain network
AppKit.getAccount("eip155") // for EVM chains
AppKit.getAccount("solana")
AppKit.getAccount("bip122") // for bitcoin
```

### Get Connection type
Expand Down
5 changes: 5 additions & 0 deletions appkit/unity/core/actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ Chain activeChain = AppKit.NetworkController.ActiveChain;
// Get active account in CAIP-10 format
Account account = AppKit.GetAccountAsync();

// Get account for a specific blockchain network using namespace parameter
Account eip155Account = AppKit.GetAccountAsync("eip155"); // for EVM chains
Account solanaAccount = AppKit.GetAccountAsync("solana");
Account bip122Account = AppKit.GetAccountAsync("bip122"); // for bitcoin

Debug.Log(account.Address); // e.g. '0x12345...'
Debug.Log(account.ChainId); // e.g. 'eip155:1'
Debug.Log(account.AccountId); // e.g. 'eip155:1:0x12345...'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
String URL to your privacy policy page, if specified will append special "legal info" footer to the modal. Defaults to `undefined`.
String URL to your privacy policy page, if specified will append special "legal info" footer to the modal. The "UX by reown" branding footer will always be displayed regardless of this setting. Defaults to `undefined`.

```ts
privacyPolicyUrl: 'https://example.com/privacy-policy'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
String URL to your terms of service page, if specified will append special "legal info" footer to the modal. Defaults to `undefined`.
String URL to your terms of service page, if specified will append special "legal info" footer to the modal. The "UX by reown" branding footer will always be displayed regardless of this setting. Defaults to `undefined`.

```ts
termsOfServiceUrl: 'https://example.com/terms-and-conditions'
Expand Down