File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
app/react-library/use-campaign Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,12 @@ import { useCampaign } from "@metrom-xyz/react";
1919### Usage
2020
2121``` tsx
22- import { useCampaign } from " @metrom-xyz/react" ;
22+ import { useCampaign , type ChainType } from " @metrom-xyz/react" ;
2323
2424function App() {
2525 const { isLoading, data } = useCampaign ({
2626 chainId: 1 ,
27+ chainType: ChainType .Evm ,
2728 id: " 0xa8b1dc25d4ea47406771c4db401455a5d8b377dff381e2aea2722084808b4b47" ,
2829 });
2930
@@ -47,6 +48,23 @@ function App() {
4748import { type useCampaignParams } from " @metrom-xyz/react" ;
4849```
4950
51+ #### chainType
52+
53+ ` ChainType | undefined `
54+
55+ Chain type of the campaign. Defaults to ` evm ` .
56+
57+ ``` tsx
58+ import { useCampaign , type ChainType } from " @metrom-xyz/react" ;
59+
60+ function App() {
61+ const { isLoading, data } = useCampaign ({
62+ chainId: 1 ,
63+ chainType: ChainType .Evm ,
64+ });
65+ }
66+ ```
67+
5068#### chainId
5169
5270` number | undefined `
You can’t perform that action at this time.
0 commit comments