deso-protocol / deso-protocol/rosetta-deso

Unknown Values of Creator_coin Transactions in Rosetta

Open
#37 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21
Forks
18
PR merge metrics
No merged PRs in 30d

Description

**Transaction Hash**: 812749496fcbe7f87b5385888083da5c00cc814f5b6e4d926492142f2f81eebe
**Rosetta Response**:
`"operations": [
{
"operation_identifier": {
"index": 0
},
"type": "INPUT",
"status": "SUCCESS",
"account": {
"address": "BC1YLjGbnv2HM8nWbXprgeEUVCDbQ3WQwdTs3HZpF5rqDqe5T5bT5yU"
},
"amount": {
"value": "-29018911",
"currency": {
"symbol": "DESO",
"decimals": 9
}
}
},
{
"operation_identifier": {
"index": 1
},
"type": "OUTPUT",
"status": "SUCCESS",
"account": {
"address": "BC1YLhi8duT4tn93bFDNyV1WhUyTeU49wBxRhXjY11cSmR429JAb3dZ"
},
"amount": {
"value": "2901577",
"currency": {
"symbol": "DESO",
"decimals": 9
}
}
},
{
"operation_identifier": {
"index": 2
},
"type": "OUTPUT",
"status": "SUCCESS",
"account": {
"address": "BC1YLhi8duT4tn93bFDNyV1WhUyTeU49wBxRhXjY11cSmR429JAb3dZ",
"sub_account": {
"address": "CREATOR_COIN"
}
},
"amount": {
"value": "26114198",
"currency": {
"symbol": "DESO",
"decimals": 9
}
}
}
],
"metadata": {
"CreatorCoinToSellNanos": 0,
"DeSoToAddNanos": 0,
"DeSoToSellNanos": 29018677,
"MinCreatorCoinExpectedNanos": 3865000,
"MinDeSoExpectedNanos": 0,
"OperationType": 0,
"ProfilePublicKey": "AwyG8i9RBZ4BfLngPK8bj1GR0okrkmLWfu+t2lB4BpIp"
}
},`

The value in operation_identifier.index=0 specifies the amount of DeSo transferred by the buyer. This value is debited from the buyer's account. **What value gets credited into seller's account?**
**What do the values in _operation_identifier.index=1_ and _operation_identifier.index=2_ signify?**
**What values indicate the amount of creator coins bought?**
**How does the transfer of creator coins change the wallet balance?**

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source files, tests, or entry points. Start by tracing the Go code that assembles Rosetta responses for creator-coin transactions, then compare operation indexes, amounts, metadata, and wallet-balance changes for this transaction hash. Done means the operation values and creator-coin accounting are explained or corrected with coverage for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, blockchain
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.