How To Increase the Gas Price Using Send Offline In MyEtherWallet.com

Do you have a stuck transaction on the Ethereum blockchain that remains unconfirmed?

This process will overwrite the stuck transaction with a zero amount, effectively returning the original ETH or Tokens back to you.

ethereum stuck transaction

Navigate to the “Send Offline” on the menu at the top.

In the top bar, change the Gas Price in the dropdown menu. If you not sure what to use, then refer to the value indicated by https://ethgasstation.info/

Step A

  • Enter the “From Address” of the stuck transaction. Click on the GENERATE INFORMATION button. Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price.

Step B

  • Enter the “TO ADDRESS” and the “AMOUNT” of 0.
  • Enter the “GAS PRICE” as it was displayed to you in step A. (it usually populates this for you)
  • Enter the “NONCE” as it was displayed to you in step A. (it usually populates this for you)
  • The “GAS LIMIT” has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you.
  • Select your wallet file -or- your private key and unlock your wallet.
  • Press the “GENERATE TRANSACTION” button.

Step C

  • The data field below this button will populate with your signed transaction.
    Click the Send Transaction button. This will broadcast your transaction once you confirm it.
Posted in News | Tagged , , | 3 Comments

WordPress How To Add meta tags to the header

By default, WordPress does not add the needed tags to the head section, so that previews on social media look good. It does to a certain degree especially if you add featured images manually to a blog post.

However, if you’re automating any part of the blog post creation, then there is a way to search the blog content for a suitable image and use that. This then happens dynamically.

Add the following code to your theme’s function.php file: –

// Add custom meta to the header

function set_header_metadata(){

global $post;

$post_id = $post->ID;
if (empty($post_id)) {
return;
}

$PageTitle = $post->post_title;
$posttype = $post->post_type;
$permalink = get_permalink($post->id);

// Attempt to retrieve the img source
$doc = new DOMDocument();
@$doc->loadHTML($post->post_content);
$tags = $doc->getElementsByTagName(‘img’);
$PageImage = null;
foreach ($tags as $tag) {
if (!$PageImage) {
$PageImage = $tag->getAttribute(‘src’);
}
}

$PageContent=”image/png”;
if (strpos(strtolower($PageImage),’.jpg’) !== false ||
strpos(strtolower($PageImage),’.jpeg’) !== false) {
$PageContent=”image/jpg”;
}
if (strpos(strtolower($PageImage),’.gif’) !== false) {
$PageContent=”image/gif”;
}

$metatag = ‘<meta property=\”og:title\” content=\”‘.$PageTitle.’\” />’;
$metatag .= ‘<meta property=\”og:image\” content=\”‘.$PageImage.’\” />’;
$metatag .= ‘<meta property=\”og:image:type\” content=\”‘.$PageContent.’\” />’;
$metatag .= ‘<meta property=\”og:type\” content=\”article\” />’;

echo $metatag;
}
add_action(‘wp_head’, set_header_metadata);

You can see this being used by looking at blog posts on CryptoSocialClub, where we have feeds coming in from blog authors. The blog posts are created automatically, so now it adds the meta tags correctly so they look great on Facebook, Google+ etc. etc.

Posted in News | Leave a comment