File tree Expand file tree Collapse file tree 3 files changed +225
-196
lines changed
app/react-library/use-claims-transaction Expand file tree Collapse file tree 3 files changed +225
-196
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,29 @@ function App() {
115115}
116116```
117117
118+ #### address
119+
120+ ` Address | undefined `
121+
122+ The account address eligible to receive the claims (the receiver). The
123+ ` useClaims ` hook won’t run until an ` address ` is provided.
124+
125+ ``` tsx
126+ import { useClaimsTransaction , useClaims } from " @metrom-xyz/react" ;
127+
128+ function App() {
129+ const { data : claims } = useClaims ({
130+ address: " 0x0000000000000000000000000000000000000000" ,
131+ });
132+
133+ const { isLoading, data } = useClaimsTransaction ({
134+ chainId: 1 ,
135+ claims ,
136+ address: " 0x0000000000000000000000000000000000000000" ,
137+ });
138+ }
139+ ```
140+
118141<QueryOptions />
119142
120143### Return Type
Original file line number Diff line number Diff line change 1717 "dependencies" : {
1818 "@fontsource/ibm-plex-mono" : " ^5.2.6" ,
1919 "@fontsource/ibm-plex-sans" : " ^5.2.6" ,
20- "@metrom-xyz/ui" : " ^0.11.4 " ,
20+ "@metrom-xyz/ui" : " ^0.11.5 " ,
2121 "next" : " ^15.3.4" ,
2222 "nextra" : " ^4.2.17" ,
2323 "nextra-theme-docs" : " ^4.2.17" ,
24- "react" : " ^19.1.0 " ,
25- "react-dom" : " ^19.1.0 "
24+ "react" : " ^19.1.1 " ,
25+ "react-dom" : " ^19.1.1 "
2626 },
2727 "devDependencies" : {
2828 "@changesets/cli" : " ^2.29.5" ,
You can’t perform that action at this time.
0 commit comments