ReferenceAPI ReferenceAmp
Reissue Amp
Reissue Amp.
Request
interface AmpReissueRequest {
action: 'add'
resource: string
details: {
wid: string
satoshi_to_reissue: number
asset_receiver_wid: string | undefined
}
}Prop
Type
Response
interface AmpReissueResponse_success {
status: 'success'
error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
message?: string | undefined
details: {
pset: string
}
metadata: unknown
}Prop
Type
Example
import { AmpActionsSchema } from '@blockstream/amp-registry'
import { broadcastRequest } from './broadcaster'
const response = await broadcastRequest<
typeof AmpActionsSchema.shape.reissue
>(
{
action: 'add',
resource: '/amp/assets/{assetId}/reissue',
details: {
// TODO: fill in required fields
},
},
blockstream,
)