Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rosetta - Send Many memo contract operations not included in /block response #2139

Open
crustywhale opened this issue Oct 23, 2024 · 1 comment

Comments

@crustywhale
Copy link

Calling /block on block 86900 on Primary Testnet (as an example), results in the following json below, which is missing the individual send many transfer operations. Even changing the TESTNET_SEND_MANY_CONTRACT_ID to the current ST3FFRX7C911PZP5RHE148YDVDD9JWVS6FZRA60VS.send-many-memo does not help in getting them to show up.

    "block": {
        "block_identifier": {
            "index": 86900,
            "hash": "0x0b832348b195ed506c9402a7c1bb6c71cad5a1eb9dd31bae02a4e1de6dd01190"
        },
        "parent_block_identifier": {
            "index": 86899,
            "hash": "0x621f0f36cdb07e27c93c49f8898d3d5e3c00f3c93666f212994354e33e4cae1b"
        },
        "timestamp": 1729588574000,
        "transactions": [
            {
                "transaction_identifier": {
                    "hash": "0xfb0572b76f03e24356fc4772fdad7418f2043e04f510ca9eb5f6a9472daec017"
                },
                "operations": [
                    {
                        "operation_identifier": {
                            "index": 0
                        },
                        "type": "fee",
                        "status": "success",
                        "account": {
                            "address": "ST3071RH3KFEWB4HZMPPEMWRN468PQRBKJPPTVSTA"
                        },
                        "amount": {
                            "value": "-3000",
                            "currency": {
                                "decimals": 6,
                                "symbol": "STX"
                            }
                        }
                    },
                    {
                        "operation_identifier": {
                            "index": 1
                        },
                        "type": "contract_call",
                        "status": "success",
                        "account": {
                            "address": "ST3071RH3KFEWB4HZMPPEMWRN468PQRBKJPPTVSTA"
                        },
                        "metadata": {
                            "contract_id": "ST3FFRX7C911PZP5RHE148YDVDD9JWVS6FZRA60VS.send-many-memo",
                            "function_name": "send-many",
                            "function_signature": "(define-public (send-many (recipients (list 200 (tuple (memo (buff 34)) (to principal) (ustx uint))))))",
                            "function_args": [
                                {
                                    "hex": "0x0b000000040c00000003046d656d6f020000000931393337363632393602746f051a429ef01f9fdf415ef56a84e96b54bd507a810e60047573747801000000000000000000000000009896800c00000003046d656d6f020000000568656c6c6f02746f051a429ef01f9fdf415ef56a84e96b54bd507a810e6004757374780100000000000000000000000000b71b000c00000003046d656d6f020000000a3431353937343737323502746f051a429ef01f9fdf415ef56a84e96b54bd507a810e6004757374780100000000000000000000000000d59f800c00000003046d656d6f020000000002746f051a429ef01f9fdf415ef56a84e96b54bd507a810e6004757374780100000000000000000000000000f42400",
                                    "repr": "(list (tuple (memo 0x313933373636323936) (to 'ST119XW0ZKZFM2QQNDA2EJTTMQN87N08EC3J9KGKV) (ustx u10000000)) (tuple (memo 0x68656c6c6f) (to 'ST119XW0ZKZFM2QQNDA2EJTTMQN87N08EC3J9KGKV) (ustx u12000000)) (tuple (memo 0x34313539373437373235) (to 'ST119XW0ZKZFM2QQNDA2EJTTMQN87N08EC3J9KGKV) (ustx u14000000)) (tuple (memo 0x) (to 'ST119XW0ZKZFM2QQNDA2EJTTMQN87N08EC3J9KGKV) (ustx u16000000)))",
                                    "name": "recipients",
                                    "type": "(list 200 (tuple (memo (buff 34)) (to principal) (ustx uint)))"
                                }
                            ]
                        }
                    }
                ]
            },
            {
                "transaction_identifier": {
                    "hash": "0xf5fdf061336a2acec2ffa3cbf186c8d2c8296f82e237b28346f817e927bbc778"
                },
                "operations": [
                    {
                        "operation_identifier": {
                            "index": 0
                        },
                        "type": "fee",
                        "status": "success",
                        "account": {
                            "address": "ST2TFVBMRPS5SSNP98DQKQ5JNB2B6NZM91C4K3P7B"
                        },
                        "amount": {
                            "value": "-300",
                            "currency": {
                                "decimals": 6,
                                "symbol": "STX"
                            }
                        }
                    },
                    {
                        "operation_identifier": {
                            "index": 1
                        },
                        "type": "token_transfer",
                        "status": "success",
                        "account": {
                            "address": "ST2TFVBMRPS5SSNP98DQKQ5JNB2B6NZM91C4K3P7B"
                        },
                        "amount": {
                            "value": "-1000",
                            "currency": {
                                "decimals": 6,
                                "symbol": "STX"
                            }
                        },
                        "coin_change": {
                            "coin_action": "coin_spent",
                            "coin_identifier": {
                                "identifier": "0xf5fdf061336a2acec2ffa3cbf186c8d2c8296f82e237b28346f817e927bbc778:1"
                            }
                        },
                        "metadata": {
                            "memo": null
                        }
                    },
                    {
                        "operation_identifier": {
                            "index": 2
                        },
                        "related_operations": [
                            {
                                "index": 1
                            }
                        ],
                        "type": "token_transfer",
                        "status": "success",
                        "account": {
                            "address": "ST221Z6TDTC5E0BYR2V624Q2ST6R0Q71T78WTAX6H"
                        },
                        "amount": {
                            "value": "1000",
                            "currency": {
                                "decimals": 6,
                                "symbol": "STX"
                            }
                        },
                        "coin_change": {
                            "coin_action": "coin_created",
                            "coin_identifier": {
                                "identifier": "0xf5fdf061336a2acec2ffa3cbf186c8d2c8296f82e237b28346f817e927bbc778:2"
                            }
                        },
                        "metadata": {
                            "memo": null
                        }
                    }
                ]
            }
        ],
        "metadata": {
            "burn_block_height": 61189
        }
    }
}
@github-project-automation github-project-automation bot moved this to 🆕 New in API Board Oct 23, 2024
@smcclellan smcclellan moved this from 🆕 New to 📋 Backlog in API Board Oct 28, 2024
@smcclellan
Copy link
Contributor

Marking Low priority as this is only relevant on Testnet and not Mainnet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants