FAQS

Why does the SponsorGas function fail in Go language to process my request despite the input seeming correct?

  • A common reason for the failure of the SponsorGas function is an incorrect request format. If the input data is not structured as the API expects, the function may return errors or fail silently. Specifically, using []byte or []uint8 for the Data field instead of the expected map[string]uint8 can cause issues.

What should the correct structure of KanaSponsorGasInput look like in Go language?

type KanaSponsorGasInput struct {
    Data              map[string]uint8 `json:"data"`
    AdditionalSigners []string         `json:"additionalSigners,omitempty"`
}

Last updated