Skip to content

🔖 Release v1.0.0

Compare
Choose a tag to compare
@nekomeowww nekomeowww released this 03 Sep 05:14
· 13 commits to production since this release
3f80ac6

The Arweave Avatar v1.0.0 is online now.
Link to the dApp: https://arweave.net/6rDkV6Dg8IqMliS7ucT_5NVkl50UWxBcg9N-AuEBXmU

We aim to make a avatar identification system like Arweave ID for users to use across the Arweave permaweb and the mass majority of dApps. We wanted to make a good tool for users to use as simple as they can to provide the such services.
We all know the Gavatar is the most known common Avatar serving service out there for the centralized web apps, but we are missing one of the tool to get users to their favorite avatar on the Arweave permaweb. So the project was born from such case. And as well as the Project ArcLight dApp, it will need a avatar system though.

By using this dApp on Arweave permaweb, you can share your avatar across all the web.
In case you need help to use ArQL to find out the user's avatar, I provide the following code as reference:

arweave.arql({
    op: 'and',  // use AND operator to bind expr1 and expr2 with AND connective
    expr1: {
        op: 'equals',  // use equals to bind expr1 and expr2 with Equals (===) connective
        expr1: 'from', // use from keyword to sepecify assets
        expr2: address // input a address to search
    },
    expr2: {
        op: 'or',  // use OR operator to bind expr1 and expr2 with OR connective
        expr1: {
            op: 'equals', //  use equals to bind expr1 and expr2 with Equals (===) connective
            expr1: 'App-Name', // sepecify tag name "App-Name"
            expr2: 'arweave-avatar' // specify tag value ''arweave-avatar"
        },
        expr2: {
            op: 'equals',  // // use equals to bind expr1 and expr2 with Equals (===) connective
            expr1: 'Type', // sepecify tag name "Type"
            expr2: 'avatar' // sepecify tag value "avatar"
        }
      }
})

Basically you can use the same code above to get the Tx IDs with ArQL.
And you will get many tx ids if a user has been updated the avatar for many times, you can use the first one. The first one is the lasted updated one for you to get.

To use the encoded image, you need to use the code below to get the data for

function getAvatarFromId () {
    return new Promise((resolve, reject) => {
        arweave.transactions.getData(id, {decode: true, string: true}).then(data => {
            resolve(data)
        })
    })
})