const fromSlpAddress = 'simpleledger:qp...'
const fromWIF = 'Kw...'
const toSlpAddress = 'simpleledger:qp...'
// Group NFT
const TOKENID = '4c689b3e716764aa76df2edd6c0ffd3932d16a826c7fca8bb28473d9f23d3329'const BITBOX = require('bitbox-sdk').BITBOX
const { GrpcClient } = require('grpc-bchrpc-node')
// it was 'bchd.ny1.simpleledger.io' below
const client = new GrpcClient({ url: 'bchd.greyh.at:8335' })
const validator = new slpjs.BchdValidator(client)
const bchdNetwork = new slpjs.BchdNetwork({ BITBOX, client, validator })
This file contains hidden or 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
| const tokenId = 'fa6c74c52450fc164e17402a46645ce494a8a8e93b1383fa27460086931ef59f' | |
| const fs = require("fs") | |
| const BITBOXSDK = require('bitbox-sdk') | |
| const { GrpcClient } = require('grpc-bchrpc-node') | |
| const slpjs = require('slpjs') | |
| const bchaddr = require('bchaddrjs-slp') | |
| const BigNumber = require('bignumber.js') | |
| const NETWORK = 'mainnet' | |
| const bitbox = |
All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
I hereby claim:
- I am zh on github.
- I am zhesto (https://keybase.io/zhesto) on keybase.
- I have a public key ASC56zloWAyeCWQJZVYS-nH92j_bAyJflzGTlz45VGUvbgo
To claim this, I am signing this object:
This file contains hidden or 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
| -- Two dashes start a one-line comment. | |
| --[[ | |
| Adding two ['s and ]'s makes it a | |
| multi-line comment. | |
| --]] | |
| ---------------------------------------------------- | |
| -- 1. Variables and flow control. | |
| ---------------------------------------------------- |
This file contains hidden or 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
| require 'net/http' | |
| class HttpClient | |
| def initialize(base_url, username = nil, password = nil) | |
| @base_url = base_url | |
| @username = username | |
| @password = password | |
| end | |
| def get(path, headers = {}) |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| """ | |
| movie_recommender.py | |
| Created by Thomas Cabrol on 2012-04-06. | |
| Copyright (c) 2012 __MyCompanyName__. All rights reserved. | |
| """ | |
| import csv |