You are viewing a single comment's thread:
Hi
We already have this in our mobile app and website:
Here is the format example, where type define if it is external chain or 2nd layer name, etc.:
{
"profile": {
"name": "...",
"about": "...",
"version": 2,
"tokens": [
{
"symbol": "BTC",
"type": "CHAIN",
"meta": {
"address": "1848UG3vGSaRP94NxdYtyCMbfsSJha48BC",
"publicKey": "03e4928405fd277ac60b08b74783dcec1aeeb9505d75031484cab97b9982507fe9",
"show": true
}
},
{
"symbol": "ETH",
"type": "CHAIN",
"meta": { "address": "0x436a...3da3", "publicKey": "0x0433...f6d0", "show": true }
},
{ "symbol": "LEO", "type": "ENGINE", "meta": { "show": true } }
]
}
}
profile.tokens in posting_json_metadata is an array of {symbol, type, meta} that lists a Hive user's linked wallets. Entries with type: "CHAIN" hold the user's public receive address on another blockchain (meta.address). Show an entry only when meta.show is not false.
oh cool, looks a bit complicated though, but more expandable, I was aiming for a simpler approach, just having the address association. Where do you use the tokens?
@vikisecrets modified this reply with more context!
In the Ecency wallet, on web and mobile:
profile.tokensand offer their external addresses as destinations. On the website the transfer itself goes through MetaMask; the mobile app shows the balances.So it backs a full wallet, which is why each entry carries a
typeand ametaobject and not only an address.The format, a read snippet and the write rules are documented here: https://docs.ecency.com/developers/wallets/#profile-tokens-format
Then let's take the ecency approach even though its a but complicated, ok? Then we have 3 apps following one format. I would see the social media links on the same level as tokens.
View more
Didn‘t know you can tip Sats via @ecency. How does that work?
You can’t tip lightning sats, we have BTC and other chains tipping working with MetaMask extension on website. Mobile app shows your balances on those tokens, website allows you to transfer. Lightning network is not there yet. We haven’t seen much utility or usage to extend those areas…