ReferenceAPI ReferenceAmp
Sync Amp
Sync Amp.
Request
interface AmpSyncRequest {
action: 'get'
resource: '/amp/sync'
}Prop
Type
Response
interface AmpSyncResponse_success {
status: 'success'
error_code?: '-1' | '-2' | '-3' | '-4' | '-5' | '-6' | '-7' | '-8' | '-9' | '-10' | '-11' | '-12' | '-13' | undefined
message?: string | undefined
details: {}
metadata: unknown
}Prop
Type
Example
import { AmpActionsSchema } from '@blockstream/amp-js-sdk'
import { broadcastRequest } from './broadcaster'
const response = await broadcastRequest<
typeof AmpActionsSchema.shape.sync
>(
{
action: 'get',
resource: '/amp/sync',
},
blockstream,
)