Skip to content

[feature] add ts package for express middleware around transaction handling #210

@ngundotra

Description

@ngundotra

It would be awesome if I could do

import { solanaPayMiddleware } from @solana-pay/middleware

async function createBuyTx(...): Transaction {
}

// under the hood this should do 
// on GET: return the Record on the right
// on POST: tx.serialize({ requireAllSignatures: false }).toString("base64")
export default solanaPayMiddleware(createBuyNFT, {
  label: "my label",
  icon: "https://solanapay.com/src/img/branding/Solanapay.com/downloads/gradient.svg",
});

cc @govarun

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions