Skip to content

Commit f50ffa4

Browse files
committed
Add BitKub Chain docs
1 parent 624a06e commit f50ffa4

File tree

12 files changed

+611
-1
lines changed

12 files changed

+611
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: Integrate Web3Auth with the BitKub Blockchain in Android
3+
sidebar_label: Android
4+
image: "banners/bitkub.png"
5+
keywords: [android, bitkub, web3auth, authentication, blockchain]
6+
description: "Integrate Web3Auth with the BitKub Blockchain in Android | Documentation - Web3Auth"
7+
---
8+
9+
import EVMInteraction from "@site/src/common/docs/android-connect-blockchain/_evm-interaction.mdx";
10+
import SEO from "@site/src/components/SEO";
11+
12+
<SEO
13+
title="Integrate Web3Auth with the BitKub Blockchain in Android"
14+
description="Integrate Web3Auth with the BitKub Blockchain in Android | Documentation - Web3Auth"
15+
image="https://web3auth.io/docs/banners/bitkub.png"
16+
slug="/connect-blockchain/evm/bitkub/android"
17+
/>
18+
19+
While using the Web3Auth Android SDK, you get the private key within the user scope after successful
20+
authorization. This private key can be used to retrieve the user's address, and interact with
21+
[BitKub](https://developers.bitkubchain.com/) to make any blockchain calls. We have highlighted a
22+
few here for getting you started quickly on that.
23+
24+
<EVMInteraction />
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: Integrate Web3Auth with the BitKub Blockchain
3+
hide_table_of_contents: true
4+
image: "banners/bitkub.png"
5+
description: "Integrate Web3Auth with the BitKub Blockchain | Documentation - Web3Auth"
6+
---
7+
8+
import Tiles from "@theme/Tiles";
9+
import SEO from "@site/src/components/SEO";
10+
11+
<SEO
12+
title="Integrate Web3Auth with the BitKub Blockchain"
13+
description="Integrate Web3Auth with the BitKub Blockchain | Documentation - Web3Auth"
14+
image="https://web3auth.io/docs/banners/bitkub.png"
15+
slug="/connect-blockchain/evm/bitkub"
16+
/>
17+
18+
The BitKub blockchain's integration with Web3Auth, helps you get started with the integration in a
19+
matter of minutes. The integration is available for the following platforms: Web, Android, iOS,
20+
Flutter, React Native, and Unity.
21+
22+
export const BitKub = [
23+
{
24+
name: "",
25+
description: "",
26+
tiles: [
27+
{
28+
key: "web",
29+
title: "Web",
30+
icon: "logo-js.png",
31+
path: "/connect-blockchain/evm/bitkub/web",
32+
},
33+
{
34+
key: "android",
35+
title: "Android (Kotlin)",
36+
icon: "logo-android.png",
37+
path: "/connect-blockchain/evm/bitkub/android",
38+
},
39+
{
40+
key: "apple",
41+
title: "iOS (Swift)",
42+
icon: "logo-apple.png",
43+
path: "/connect-blockchain/evm/bitkub/ios",
44+
},
45+
{
46+
key: "flutter",
47+
title: "Flutter",
48+
icon: "logo-flutter.png",
49+
path: "/connect-blockchain/evm/bitkub/flutter",
50+
},
51+
{
52+
key: "react-native",
53+
title: "React Native",
54+
icon: "logo-react.png",
55+
path: "/connect-blockchain/evm/bitkub/react-native",
56+
},
57+
{
58+
key: "unity",
59+
title: "Unity",
60+
icon: "logo-unity.png",
61+
path: "/connect-blockchain/evm/bitkub/unity",
62+
},
63+
],
64+
},
65+
];
66+
67+
<Tiles tileGroups={BitKub} />
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Integrate Web3Auth with the BitKub Blockchain in Flutter
3+
sidebar_label: Flutter
4+
image: "banners/bitkub.png"
5+
keywords: [flutter, bitkub, web3auth, authentication, blockchain]
6+
description: "Integrate Web3Auth with the BitKub Blockchain in Flutter | Documentation - Web3Auth"
7+
---
8+
9+
import EVMInteraction from "@site/src/common/docs/flutter-connect-blockchain/_evm-interaction.mdx";
10+
import Tabs from "@theme/Tabs";
11+
import TabItem from "@theme/TabItem";
12+
import SEO from "@site/src/components/SEO";
13+
14+
<SEO
15+
title="Integrate Web3Auth with the BitKub Blockchain in Flutter"
16+
description="Integrate Web3Auth with the BitKub Blockchain in Flutter | Documentation - Web3Auth"
17+
image="https://web3auth.io/docs/banners/bitkub.png"
18+
slug="/connect-blockchain/evm/bitkub/flutter"
19+
/>
20+
21+
While using the Web3Auth Flutter SDK, you get the private key within the user scope after successful
22+
authorization. This private key can be used to retrieve the user's address, and interact with
23+
[BitKub](https://developers.bitkubchain.com/) to make any blockchain calls. We have highlighted a
24+
few here for getting you started quickly on that.
25+
26+
<EVMInteraction />
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
title: Integrate Web3Auth with the BitKub Blockchain in iOS/Swift Applications
3+
sidebar_label: iOS
4+
image: "banners/bitkub.png"
5+
keywords: [ios, swift, bitkub, web3auth, authentication, blockchain]
6+
description:
7+
"Integrate Web3Auth with the BitKub Blockchain in iOS/Swift Applications | Documentation -
8+
Web3Auth"
9+
---
10+
11+
import InstallationSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-installation.mdx";
12+
import GetAccountSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-get-account.mdx";
13+
import UserInfoSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-user-info.mdx";
14+
import GetBalanceSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-get-balance.mdx";
15+
import InitialisationSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-initialisation.mdx";
16+
import SignMessageSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-sign-message.mdx";
17+
import SendTransactionSnippet from "@site/src/common/docs/ios-connect-blockchain/_evm-send-transaction.mdx";
18+
import Tabs from "@theme/Tabs";
19+
import TabItem from "@theme/TabItem";
20+
import SEO from "@site/src/components/SEO";
21+
22+
<SEO
23+
title="Integrate Web3Auth with the BitKub Blockchain in iOS/Swift Applications"
24+
description="Integrate Web3Auth with the BitKub Blockchain in iOS/Swift Applications | Documentation - Web3Auth"
25+
image="https://web3auth.io/docs/banners/bitkub.png"
26+
slug="/connect-blockchain/evm/bitkub/ios"
27+
/>
28+
29+
While using the Web3Auth iOS SDK, you get the private key within the user scope. This private key
30+
can interact with [BitKub](https://developers.bitkubchain.com/) to make any blockchain calls, like
31+
getting the user's `account`, fetching `balance`, `sign transaction`, `send transaction`, `read`
32+
from and `write` to the smart contract, etc. We have highlighted a few here to get you started
33+
quickly on that.
34+
35+
## Installation
36+
37+
<InstallationSnippet />
38+
39+
## Chain Details for BitKub
40+
41+
<Tabs
42+
defaultValue="mainnet"
43+
values={[
44+
{ label: "Mainnet", value: "mainnet", },
45+
{ label: "Testnet", value: "testnet", },
46+
]}
47+
>
48+
<TabItem
49+
value="mainnet"
50+
>
51+
52+
- Chain ID: `0x60`
53+
- Public RPC URL: `https://rpc.bitkubchain.io`
54+
- Display Name: BitKub Mainnet
55+
- Block Explorer Link: `https://www.bkcscan.com`
56+
- Ticker: KUB
57+
- Ticker Name: KUB
58+
59+
</TabItem>
60+
61+
<TabItem
62+
value="testnet"
63+
>
64+
65+
- Chain ID: `0x6545`
66+
- Public RPC URL: `https://rpc-testnet.bitkubchain.io/`
67+
- Display Name: BitKub Testnet
68+
- Block Explorer Link: `https://testnet.bkcscan.com`
69+
- Ticker: tKUB
70+
- Ticker Name: tKUB
71+
72+
</TabItem>
73+
</Tabs>
74+
75+
## Initialize
76+
77+
<InitialisationSnippet />
78+
79+
## Get User Info
80+
81+
<UserInfoSnippet />
82+
83+
## Get Account
84+
85+
<GetAccountSnippet />
86+
87+
## Get Balance
88+
89+
<GetBalanceSnippet />
90+
91+
## Send Transaction
92+
93+
<SendTransactionSnippet />
94+
95+
## Sign a message
96+
97+
<SignMessageSnippet />
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
---
2+
title: Integrate Web3Auth with the BitKub Blockchain in React Native
3+
sidebar_label: React Native
4+
image: "banners/bitkub.png"
5+
keywords: [react-native, bitkub, web3auth, authentication, blockchain]
6+
description:
7+
"Integrate Web3Auth with the BitKub Blockchain in React Native | Documentation - Web3Auth"
8+
---
9+
10+
import InstallationSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-installation.mdx";
11+
import GetAccountSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-get-account.mdx";
12+
import UserInfoSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-user-info.mdx";
13+
import GetBalanceSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-get-balance.mdx";
14+
import InitialisationSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-initialisation.mdx";
15+
import SignMessageSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-sign-message.mdx";
16+
import SendTransactionSnippet from "@site/src/common/docs/react-native-connect-blockchain/_evm-send-transaction.mdx";
17+
import Tabs from "@theme/Tabs";
18+
import TabItem from "@theme/TabItem";
19+
import SEO from "@site/src/components/SEO";
20+
21+
<SEO
22+
title="Integrate Web3Auth with the BitKub Blockchain in React Native"
23+
description="Integrate Web3Auth with the BitKub Blockchain in React Native | Documentation - Web3Auth"
24+
image="https://web3auth.io/docs/banners/bitkub.png"
25+
slug="/connect-blockchain/evm/bitkub/react-native"
26+
/>
27+
28+
While using the Web3Auth React Native SDK, you get a
29+
[`EIP1193`](https://eips.ethereum.org/EIPS/eip-1193) provider, similar to the
30+
[Metamask Provider](https://docs.metamask.io/guide/ethereum-provider.html). This provider can be
31+
used with libraries like [`web3.js`](https://web3js.readthedocs.io/en/v1.2.8/getting-started.html),
32+
[`ethers.js`](https://docs.ethers.io/v5/getting-started/) etc. to make
33+
[BitKub](https://developers.bitkubchain.com/) blockchain calls like getting the user's `account`,
34+
fetching `balance`, `sign transaction`, `send transaction`, `read` from and `write` to the smart
35+
contract, etc. We have highlighted a few here to get you started quickly on that.
36+
37+
## Installation
38+
39+
<InstallationSnippet />
40+
41+
## Initializing Provider
42+
43+
Using `eip155` as `chainNamespace` while initializing `web3auth` will provide an
44+
[`EIP1193`](https://eips.ethereum.org/EIPS/eip-1193) compatible provider as **`web3auth.provider`**
45+
after successful authentication.
46+
47+
### Getting the `chainConfig`
48+
49+
<Tabs
50+
defaultValue="mainnet"
51+
values={[
52+
{ label: "Mainnet", value: "mainnet", },
53+
{ label: "Testnet", value: "testnet", },
54+
]}
55+
>
56+
<TabItem
57+
value="mainnet"
58+
>
59+
60+
```typescript
61+
const chainConfig = {
62+
chainNamespace: ChainNamespace.EIP155,
63+
chainId: "0x60", // hex of 96
64+
rpcTarget: "https://rpc.bitkubchain.io",
65+
// Avoid using public rpcTarget in production.
66+
// Use services like Infura, Quicknode etc
67+
displayName: "BitKub",
68+
blockExplorer: "https://www.bkcscan.com",
69+
ticker: "KUB",
70+
tickerName: "KUB",
71+
};
72+
```
73+
74+
</TabItem>
75+
76+
<TabItem
77+
value="testnet"
78+
>
79+
80+
```typescript
81+
const chainConfig = {
82+
chainNamespace: ChainNamespace.EIP155,
83+
chainId: "0x6545", // hex of 25925
84+
rpcTarget: "https://rpc-testnet.bitkubchain.io",
85+
// Avoid using public rpcTarget in production.
86+
// Use services like Infura, Quicknode etc
87+
displayName: "BitKub Testnet",
88+
blockExplorer: "https://testnet.bkcscan.com",
89+
ticker: "tKUB",
90+
tickerName: "tKUB",
91+
};
92+
```
93+
94+
</TabItem>
95+
</Tabs>
96+
97+
## Initialize
98+
99+
<InitialisationSnippet />
100+
101+
## Get User Info
102+
103+
<UserInfoSnippet />
104+
105+
## Get Account
106+
107+
<GetAccountSnippet />
108+
109+
## Get Balance
110+
111+
<GetBalanceSnippet />
112+
113+
## Send Transaction
114+
115+
<SendTransactionSnippet />
116+
117+
## Sign a message
118+
119+
<SignMessageSnippet />

0 commit comments

Comments
 (0)