Documentation

Getting a Public Key

Web
JSON

getPublicKey is part of the onboarding tools provided by Scatter. By requesting a public key from a user they are given the chance to either give you an existing public key, or create one on the fly which is then store within their Scatter.

scatter.getPublicKey(blockchain).then(publicKey => {
    //...
})
{
    id:'random-uid',
    type:'getPublicKey',
    plugin:'Your App Name',
    payload:{
        origin:'domain' || 'YOUR_APP',
        blockchain:'...'
    }
}