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

cleanup openapi spec across repos #808

Open
ryanwaits opened this issue Dec 9, 2024 · 1 comment
Open

cleanup openapi spec across repos #808

ryanwaits opened this issue Dec 9, 2024 · 1 comment

Comments

@ryanwaits
Copy link
Collaborator

There have been a number of minor copy issues that have popped up when fetching openapi specs, need to dedicate some time to clean these up for docs automation.

@ryanwaits ryanwaits added this to Devrel Oct 1, 2024
@ryanwaits ryanwaits converted this from a draft issue Dec 9, 2024
@ECBSJ
Copy link
Contributor

ECBSJ commented Dec 9, 2024

Dev suggested we give a better explanation of what the transaction_payload property should be when passing into the https://api.hiro.so/v2/fees/transaction endpoint. He stated that it wasn't clear enough.

here's more context in this Discord message.

let transaction: StacksTransactionWire
let txlength = estimateTransactionByteLength(transaction)

const json = {
  **transaction_payload: bytesToHex(serializePayloadBytes(transaction.payload)),**
  estimated_len: txlength
}

let response = await fetch("https://api.hiro.so/v2/fees/transaction", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify(json)
})
let result = await response.json()

I guess it's not obvious that one should be grabbing the payload property of the StacksTransactionWire class after it's constructed.

Image

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

No branches or pull requests

2 participants