This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| createPublicClient, | |
| createWalletClient, | |
| encodeAbiParameters, | |
| encodeFunctionData, | |
| Hex, | |
| http, | |
| keccak256, | |
| TypedDataDomain, | |
| } from 'viem'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // GET MEDIA QUERY | |
| // REPLACE YOUR CREATOR ADDRESS | |
| const GET_MEDIAS_CREATED_BY_ADDRESS = gql` | |
| query getAuctionById($creatorAddress: String) { | |
| { | |
| medias( | |
| where:{ | |
| creator: $creatorAddress | |
| } |