A tag specification for linking Arweave wallets to other cryptocurrency wallets
I created ArLink with the intentions of establishing a way to get a user's Ethereum wallet address from the Arweave. By having Arweave users link their accounts to other blockchains, profit-sharing communities can choose to pay out users in other cryptocurrencies not on the weave.
See this example:
Application: "ArLink"
Chain: "ETH"
Wallet: "0x614B0d11A0439A0791E8b96b2107582bDcB3B018"
The Chain
and Wallet
tags are customizable to whatever the user wants. Because of this, nobody necessarily has to use a currency listed on my POC site. This specification, though simple, will allow for an easy and straightforward way for people to pull external wallet addresses of a given user.
In order to query for a wallet address from a different blockchain, see the GraphQL examples below:
To get all transactions of linked wallets for a given user:
query {
transactions(
owners: ["pvPWBZ8A5HLpGSEfhEmK1A3PfMgB_an8vVS6L14Hsls"]
tags: [
{ name: "Application", values: "ArLink" }
]
) {
edges {
node {
id
}
}
}
}
To get all linked wallets of a currency for a given user:
query {
transactions(
owners: ["pvPWBZ8A5HLpGSEfhEmK1A3PfMgB_an8vVS6L14Hsls"]
tags: [
{ name: "Application", values: "ArLink" }
{ name: "Chain", values: "ETH" }
]
) {
edges {
node {
id
}
}
}
}
I'd love to continue expanding this specification with the help of anyone interested. Feel free to fork and make a PR with any additions (or fixes)!
yarn install
yarn serve
yarn build
yarn lint
TEST 3