Skip to content

Instantly share code, notes, and snippets.

View ethandaya's full-sized avatar

Ethan Daya ethandaya

View GitHub Profile
import {
createPublicClient,
createWalletClient,
encodeAbiParameters,
encodeFunctionData,
Hex,
http,
keccak256,
TypedDataDomain,
} from 'viem';
@ethandaya
ethandaya / gist.ts
Last active May 14, 2021 23:34
GET_MEDIA_QUERY
// GET MEDIA QUERY
// REPLACE YOUR CREATOR ADDRESS
const GET_MEDIAS_CREATED_BY_ADDRESS = gql`
query getAuctionById($creatorAddress: String) {
{
medias(
where:{
creator: $creatorAddress
}