UNPKG

@ylide/everscale

Version:

Ylide Protocol SDK implementation for EverScale blockchain

46 lines (44 loc) 784 B
// export const getContractMessagesQuery = (dst: string, contractAddress: string) => ` // query { // messages( // filter: { // msg_type: { eq: 2 }, // dst: { eq: "${dst}" }, // src: { eq: "${contractAddress}" }, // } // orderBy: [{path: "created_at", direction: DESC}] // ) { // body // id // src // created_at // created_lt // dst // } // } // `; export const getContractMessagesQuery = (dst: string, contractAddress: string, limit = 10) => ` query { blockchain { account(address:"${contractAddress}") { messages( msg_type: [ExtOut], counterparties: ["${dst}"] last: ${limit} ) { edges { node { body msg_type id src created_at created_lt dst } } } } } } `;