Ok so i got some code written for a music player that earn millix. @crank @danny @price @eriksson how do i get this to work in wordpress, does this look right? <?php // Define Millix DAG node endpoints define('MILLIX_NODE_1', 'http://node1.millix.org:8080'); define('MILLIX_NODE_2', 'http://node2.millix.org:8080'); // Define Millix DAG transaction fee define('MILLIX_TX_FEE', 0.0001); // Define your Millix address where you want to receive payments define('15vu8ndbG8okHHUyXsy4T2A8DwHESQxjiB0a015vu8ndbG8okHHUyXsy4T2A8DwHESQxjiB'); // Define the song that you want to play define('SONG_NAME', 'INSERT_SONG_NAME_HERE'); // Define the amount of Millix you want to earn per play define('MILLIX_PER_PLAY', 1000.00); // Connect to a random Millix DAG node $node = (rand(0, 1) == 0) ? MILLIX_NODE_1 : MILLIX_NODE_2; // Create a new Millix transaction for the song play $tx = array( 'inputs' => array( array( 'address' => YOUR_MILLIX_ADDRESS, 'amount' => MILLIX_TX_FEE, ), ), 'outputs' => array( array( 'address' => YOUR_MILLIX_ADDRESS, 'amount' => MILLIX_PER_PLAY, ), ), 'data' => SONG_NAME, ); // Sign the transaction with your Millix private key // (not shown here for security reasons) // Broadcast the transaction to the Millix DAG network $ch = curl_init($node.'/api/transactions'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($tx)); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); // Check if the transaction was successfully broadcasted if ($response === false) { echo 'Error: Failed to broadcast Millix transaction to DAG network'; } else { $result = json_decode($response, true); if ($result['success']) { echo 'Success: Millix transaction for song play broadcasted to DAG network'; } else { echo 'Error: Failed to broadcast Millix transaction to DAG network: '.$result['error']; } }
Ok so i got some code written for a music player that earn millix. @crank @danny @price @eriksson how do i get this to work in wordpress, does this look right? <?php // Define Millix DAG node endpoints define('MILLIX_NODE_1', 'http://node1.millix.org:8080'); define('MILLIX_NODE_2', 'http://node2.millix.org:8080'); // Define Millix DAG transaction fee define('MILLIX_TX_FEE', 0.0001); // Define your Millix address where you want to receive payments define('15vu8ndbG8okHHUyXsy4T2A8DwHESQxjiB0a015vu8ndbG8okHHUyXsy4T2A8DwHESQ...

earnings
137,000 mlx total
$0.06701845 total
engagement
100 views
19 reactions
trending
coming soon

reaction stream
10,000 mlx paid to @lilhooligan by @m0rrison
1,000 mlx paid to @lilhooligan by @mehmetnc
10,000 mlx paid to @lilhooligan by @mehmetnc
10,000 mlx paid to @lilhooligan by @khamos
10,000 mlx paid to @lilhooligan by @roshniii
1,000 mlx paid to @lilhooligan by @boraergul
10,000 mlx paid to @lilhooligan by @boraergul
10,000 mlx paid to @lilhooligan by @tantely
1,000 mlx paid to @lilhooligan by @blake
1,000 mlx paid to @lilhooligan by @blake
1,000 mlx paid to @lilhooligan by @blake
10,000 mlx paid to @lilhooligan by @blake
1,000 mlx paid to @lilhooligan by @be
1,000 mlx paid to @lilhooligan by @neron
10,000 mlx paid to @bugsfree by @lilhooligan
5,000 mlx paid to @bugsfree by @lilhooligan
5,000 mlx paid to @lilhooligan by @bugsfree
1,000 mlx paid to @lilhooligan by @bugsfree
5,000 mlx paid to @bugsfree by @lilhooligan
5,000 mlx paid to @lilhooligan by @bugsfree
5,000 mlx paid to @bugsfree by @lilhooligan
5,000 mlx paid to @lilhooligan by @bugsfree
5,000 mlx paid to @bugsfree by @lilhooligan
5,000 mlx paid to @bugsfree by @lilhooligan
1,000 mlx paid to @bugsfree by @lilhooligan
5,000 mlx paid to @lilhooligan by @bugsfree
1,000 mlx paid to @lilhooligan by @bugra1453
1,000 mlx paid to @lilhooligan by @seattlejohn
1,000 mlx paid to @lilhooligan by @seattlejohn

10 comments
0 mlx earned
I'm gonna get some sleep but i need pointers, like do i add my private key to the brackets like i did address, where on wrodpress do i add this as code aint working.
11,000 mlx earned
Create a separate page for songs only.
Or you can use it sidebars by a HTML code plugin.
5,000 mlx earned
So i have to upgrade to use that, right?
10,000 mlx earned
Let me clear that the code is okay for you.
I mean, do you have tested this code?
If so, it will work on any platform by HTML code plugin.
5,000 mlx earned
How do i test a script?
5,000 mlx earned
Oh god! Use plugin if you are familiar on WP.
0 mlx earned
im not familiar with either.
6,000 mlx earned
Mate i'm going to bed, its 3am here. will hit you up in the morning.
10,000 mlx earned
Have a great dream. Good night.
0 mlx earned
i have no idea what im doing