lib/blockcypher/api.rb
# This method uses public key, signs with private key locally
This method uses public key, signs with private key locally
This method uses public key signs with private key locally
def microtx_from_pub(private_key, to_address, value_satoshis)
      pubkey = pubkey_from_priv(private_key)
      payload = {
        from_pubkey: pubkey,
        to_address: to_address,
        value_satoshis: value_satoshis
      }
      micro_skel = api_http_post('/txs/micro', json_payload: payload)
      micro_skel['signatures'] = signer(private_key, micro_skel['tosign'])
      api_http_post('/txs/micro', json_payload: micro_skel)
    end
def microtx_from_pub ( private_key , to_address , value_satoshis ) pubkey = pubkey_from_priv ( private_key ) payload = { from_pubkey : pubkey , to_address : to_address , value_satoshis : value_satoshis } micro_skel = api_http_post ( '/txs/micro' , json_payload : payload ) micro_skel [ 'signatures' ] = signer ( private_key , micro_skel [ 'tosign' ] ) api_http_post ( '/txs/micro' , json_payload : micro_skel ) end
This method uses public key, signs with private key locally
This method uses public key signs with private key locally
private_key
<not_specific>
to_address
<not_specific>
value_satoshis
<not_specific>