This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lnd = Lnrpc::Client.new({ | |
address: "127.0.0.1:10001", | |
credentials_path: "/Users/ramon/.polar/networks/1/volumes/lnd/alice/tls.cert", | |
macaroon_path: "/Users/ramon/.polar/networks/1/volumes/lnd/alice/data/chain/bitcoin/regtest/admin.macaroon", | |
}) | |
# This works | |
lnd.lightning.get_info | |
response = lnd.signer.sign_message({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" at ~/.config/nvim/init.vim | |
call plug#begin(stdpath('data') . '/plugged') | |
"" Gruvbox theme. | |
Plug 'gruvbox-community/gruvbox' | |
Plug 'airblade/vim-gitgutter' " show + / - changes if git repo | |
Plug 'AndrewRadev/splitjoin.vim' " expand/collapse blocks | |
Plug 'davidhalter/jedi-vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
method=POST path=/stellar/bridge_callbacks format=json controller=StellarBase::BridgeCallbacksController action=create status=200 duration=45.94 view=0.00 db=6.17 params={"amount"=>"195.2500000", "asset_code"=>"PHPT", "asset_issuer"=>"GCADSE5JJJPNC4HPOZTSUOYOFLR4JPG6N5METWZH3ZLZGSI3MALLWXHW", "data"=>"", "from"=>"GCO7WYNIWF2T3PRD7XGKV4KZ4LCHV355WA5VK7NYF6V5ZMGAJF2X3ZDR", "memo"=>"", "memo_type"=>"", "route"=>"", "transaction_id"=>"c207ab582ad039d5df8f46a858640f661af325c41c9fb39a2ed3159969547e49"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"authenticated_peers" : null, | |
"pending_peers" : [ | |
"159.122.134.146:11625", | |
"169.51.72.53:11625", | |
"54.216.51.168:11625", | |
"54.155.184.129:11625", | |
"218.98.33.37:11625", | |
"47.52.252.116:11625", | |
"199.201.65.2:11625", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.18; | |
// ---------------------------------------------------------------------------- | |
// 'BX87' token contract | |
// | |
// Deployed to : 0xdE500E92ba8E27bB8DaBc8F45CE654171b12a804 | |
// Symbol : BX87 | |
// Name : BX87 | |
// Total supply: 8,000,000,000 | |
// Decimals : 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.18; | |
// ---------------------------------------------------------------------------- | |
// 'BX8' token contract | |
// | |
// Deployed to : 0xdE500E92ba8E27bB8DaBc8F45CE654171b12a804 | |
// Symbol : BX8 | |
// Name : BX8 | |
// Total supply: 8,000,000,000 | |
// Decimals : 18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## .. setup envelope_base64 | |
response = horizon.transactions._post(tx: envelope_base64) | |
result_xdr = response._response.body["result_xdr"] | |
decoded_result_xdr = Stellar::Convert.from_base64(result_xdr) | |
tx_result = Stellar::TransactionResult.from_xdr(decoded_result_xdr) | |
=> #<Stellar::TransactionResult:0x007febe07e0a58 | |
@attributes= | |
{:fee_charged=>100, | |
:result=> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"_links"=>{"transaction"=>{"href"=>"https://horizon-testnet.stellar.org/transactions/c8a1cc9439bdaf85ee681b271b09d53d15b514cd60f7a027ba2dbe23498cc7dc"}}, | |
"hash"=>"c8a1cc9439bdaf85ee681b271b09d53d15b514cd60f7a027ba2dbe23498cc7dc", | |
"ledger"=>9072358, | |
"envelope_xdr"=> | |
"AAAAAPoyF+my9M94KEnU9ZwQCSLoZPnYN1tunfvweeXXcRf2AAAAZACKbt4AAAADAAAAAAAAAAAAAAABAAAAAAAAAAMAAAABQlRDAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAAAFQSFAAAAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAAAExLQAAB6EgAAAAAQAAAAAAAAAAAAAAAAAAAAHXcRf2AAAAQOZUB5Aa3ELGt8xp2/S97enQcYSZK2RSAdYIe4Kytstm/azXzsWGKKSmocuDVY/e8OLg+nJhOHXbE3KATQdHFw8=", | |
"result_xdr"=> | |
"AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAPoyF+my9M94KEnU9ZwQCSLoZPnYN1tunfvweeXXcRf2AAAAAAAGG6cAAAABQlRDAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAAAFQSFAAAAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAAAExLQAAB6EgAAAAAQAAAAAAAAAAAAAAAA==", | |
"result_meta_xdr"=> | |
"AAAAAAAAAAEAAAADAAAAAACKbuYAAAACAAAAAPoyF+my9M94KEnU9ZwQCSLoZPnYN1tunfvweeXXcRf2AAAAAAAGG6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sender":"aldi*bankA.com", | |
"need_info":false, | |
"tx":"AAABJnsibm9...", | |
"attachment":"{\"nonce\":\"1488805458327055805\",\"transaction\":{\"sender_info\":{\"address\":\"678 Mission St\",\"city\":\"San Francisco\",\"country\":\"US\",\"first_name\":\"Aldi\",\"last_name\":\"Dobbs\"},\"recipient_info\":{\"address\":\"4 Juan St\",\"city\":\"Manila\",\"country\":\"PH\",\"first_name\":\"Jhun\",\"last_name\":\"Dobbs\"},\"route\":\"unique-tx-code\",\"note\":\"\",\"extra\":\"\"},\"operations\":null}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://d3js.org/d3.v4.min.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<div id="chart"></div> |
NewerOlder