Day 4: Additional Arweave GraphQL Queries

Writers Note: I had an entire post written and was working on testing something when I disconnected my wallet from Mirror to do said testing. I did not save my draft first. I lost the entire post. I’m not going to rewrite it in its entirety. Don’t be like me. Also, WTB Autosave Feature (or something similar).

Using the transaction ID from yesterday’s post we are able to view the full .JSON of the post itself. All we have to do is browse to https://arweave.net/{transactionid} to view the full .JSON.

https://arweave.net/MFsP_oMTTeMJZ05HQrCjo3IxxF3zBuafM72YiEq3JK0

post image

Pretty cool! Now I am wondering how to get a list of all my posts on mirror? This is the part where I lost everything so I am going to speed run through this again.

In the Arweave GraphQL Guide it has a code sample for getting a list of all transactions by a wallet address.

query {
    transactions(owners:["M6w588ZkR8SVFdPkNXdBy4sqbMN0Y3F8ZJUWm2WCm8M"]) {
        edges {
            node {
                id
            }
        }
    }
}

If I paste that into the GraphQL Explorer I get what I would expect, which is a list of transactions.

post image

So, if I put in my wallet address I should see 3 transactions for my 3 previous posts.

post image

Mmm…what?

After MUCH trial and error and testing, I began to wonder if the fact that I am using my coffeeandcrypto.eth ENS name as my mirror URL was screwing things up. This is where I previously disconnected my wallet and forgot to save and bathed in my own tears.

I connected to a different wallet, published a post, submitted a new query with that wallet address, and still got nothing back. Now I am even more confused than ever. And I think that is enough for today.