Skip to content

Instantly share code, notes, and snippets.

View AdityaEXP's full-sized avatar
😝
studying

Aditya AdityaEXP

😝
studying
View GitHub Profile
@AdityaEXP
AdityaEXP / tipper.py
Created August 30, 2022 17:33
A tipper contract used by a tg bot with tax included while transfering
total_balance: uint256
tax_address: address
tax: uint256
event Tip:
sender: indexed(address)
to: indexed(address)
amount: uint256
tax: uint256
@AdityaEXP
AdityaEXP / sendMoneyByCB.php
Created October 14, 2021 13:28
Send bitcoin from your coinbase email to another person email by php.
<?php
function sendTransaction($private_key, $api_key , $to_email , $amount , $currency, $URL, $account_id){
$json = new stdClass();
$json->method = "POST";
$json->path = "/v2/accounts/".$account_id."/transactions";
$json->secretapikey = $private_key;
$json->apikey = $api_key;
$body = new stdClass();