Use username as a label

Hi guys.

This code creates a new wallet address with the given label (test). I want to create a wallet address with the logged in user’s username as the label. The field name is user_username and the db name is genies_MN

$newAddressInfo = $block_io->get_new_address(array(‘label’ => ‘test’));

$newAddressInfo = $block_io->get_new_address(array(‘label’ => $username));

just fill the variable.

Still a problem, i am going to redo everything, then i will post again. Thank you chorn :slight_smile:

i have redone everything, now it works. thank you

Sponsor our Newsletter | Privacy Policy | Terms of Service