-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb3.tsx
More file actions
25 lines (23 loc) · 689 Bytes
/
web3.tsx
File metadata and controls
25 lines (23 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { createConfig, http } from "wagmi";
import { mainnet } from "wagmi/chains";
import { WagmiWeb3ConfigProvider } from "@ant-design/web3-wagmi";
import { Address, NFTCard } from "@ant-design/web3";
const config = createConfig({
chains: [mainnet],
transports: {
[mainnet.id]: http(
"https://api.zan.top/node/v1/eth/mainnet/{YourZANApiKey}"
),
},
});
export default function Web3() {
return (
<WagmiWeb3ConfigProvider config={config}>
<Address format address="0xEcd0D12E21805803f70de03B72B1C162dB0898d9" />
<NFTCard
address="0xEcd0D12E21805803f70de03B72B1C162dB0898d9"
tokenId={641}
/>
</WagmiWeb3ConfigProvider>
);
}