Labels: complexity: high
Add getCrossChainRef(invoiceId) that fetches the cross_chain_ref field for an invoice and parses it into a structured format. Also add setCrossChainRef for creators to attach a cross-chain reference at creation time.
Acceptance criteria:
getCrossChainRef(invoiceId) returns { ref: string | null }
parseChainRef(ref) returns { chain, txHash, blockNumber } when ref matches known formats
- Exported with TypeScript types
- Included in
getInvoice response automatically
Labels: complexity: high
Add
getCrossChainRef(invoiceId)that fetches thecross_chain_reffield for an invoice and parses it into a structured format. Also addsetCrossChainReffor creators to attach a cross-chain reference at creation time.Acceptance criteria:
getCrossChainRef(invoiceId)returns{ ref: string | null }parseChainRef(ref)returns{ chain, txHash, blockNumber }when ref matches known formatsgetInvoiceresponse automatically