Looking to sign/send fcl transactions using a public private keypair secret variables

Hi I’m looking to sign an fcl transaction from my backend server that looks something like this:

const result = await fcl.send([
    fcl.transaction`${BUY_NFT}`,
    fcl.args([
      fcl.arg(params.nftId, fcl.t.UInt64),
      fcl.arg(params.contractAddress, fcl.t.Address),
    ]),
    fcl.proposer(proposer),
    fcl.authorizations(authorizations),
    fcl.payer(payer),
    fcl.limit(9999),
  ])
  .then(fcl.decode);

However, I am not sure how to configure the proposer/authorizer/payer without having a wallet connected from a frontend.

Any help would be greatly appreciated. Thank you

1 Like

Ahoy!

You need to use a custom authorization function that submits to the backend for a signature. See this doc.

Here is an example of this being used currently.

Feel free to jump into the Discord with any more questions. People are very friendly there.

thank u!