Skip to content

SendPaymentV2 not recognising destCustomRecord for keysend #85

@danarchos

Description

@danarchos

Trying to send a keysend payment with sendPaymentV2 as below.

    const response = await rpc.sendPaymentV2({
      dest: Buffer.from(pubKey, "hex"),
      amt: 210,
      allowSelfPayment: true,
      timeoutSeconds: 30,
      paymentHash: preimage.toString("base64"),
      destCustomRecords: [[5482373484, Buffer.from(preimage)]],
    });

I am using the key 5482373484 but getting back an error:

no custom records with types below 65536 allowed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions