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
'use strict'; | |
var express = require('express'), | |
app = express(), | |
http = require('http'), | |
server = http.createServer(app), | |
path = require('path'), | |
io = require('socket.io').listen(server), | |
fs = require('fs'), | |
zmq = require('zmq'), |
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
const RippledWsClient = require('rippled-ws-client') | |
const RippledWsClientSign = require('rippled-ws-client-sign') | |
const SeedOrKeypair = 'sXXXXXXXXXXXXXXXXXXXX' // The secret of the sending wallet | |
// const FinishAfter = Math.floor(new Date('2031-12-01T12:00:00Z') / 1000) - 946684800 /* XRPL Timestamp offset */ | |
const FinishAfter = Math.floor(Date.parse('2018-10-10 12:00:00 GMT+1') / 1000) - 946684800 /* XRPL Timestamp offset */ | |
const Transaction = { | |
TransactionType: 'EscrowCreate', |