dashed-slug.net › Forums › Full Node Multi Coin Adapter extension support › Moved: deposit address not displayed › Reply To: Moved: deposit address not displayed
January 4, 2019 at 10:26 am
#5488
alexg
Keymaster
My apologies, the correct code is:
function test_diners_new_address() {
$adapters = apply_filters( 'wallets_api_adapters', array() );
if ( ! isset( $adapters['DNS'] ) ) {
error_log( 'DNS adapter not found' );
}
$address1 = $adapters['DNS']->get_new_address();
error_log( 'ADDRESS1: ' . print_r( $address1, true ) );
$address2 = apply_filters( 'wallets_api_deposit_address', null, array( 'symbol' => 'DNS' ) );
error_log( 'ADDRESS2: ' . print_r( $address2, true ) );
}
add_action( 'init', 'test_diners_new_address' );