Overview
Last updated
<div id="reputation-widget"></div>
<script type="module">
import { createWidget } from '@dotpassport/sdk';
createWidget({
apiKey: 'your-api-key',
address: 'polkadot-address'
}).mount('#reputation-widget');
</script>{
apiKey: string; // Required
address: string; // Required
theme?: 'light' | 'dark' | 'auto';
className?: string;
onError?: (error: Error) => void;
onLoad?: () => void;
}