Documentation

Requesting a transfer

Web
JSON

This API route sends a transfer request to the user. It functions as a type of "Donate" button which bypasses the need for Login Authentication due to it never returning results.

If the amount is set to 0, the user will be able to select the amount. If it is greater than 0 then it is a fixed amount the user must pay.


const tokenDetails = {contract:'eosio.token', symbol:'EOS', memo:'', decimals:4};
scatter.requestTransfer(network, to, amount, tokenDetails).then(result => {
    console.log('result', result);
})
{
    id:'random-uid',
    type:'requestTransfer',
    plugin:'Your App Name',
    payload:{
        origin:'domain' || 'YOUR_APP',
        network:{...},
        to:'',
        amount:'',
        options:{...}
    }
}