Skip to content

Instantly share code, notes, and snippets.

View intelliBrain's full-sized avatar

Rene intelliBrain

  • intelliBrain GmbH
  • Zurich, Switzerland
View GitHub Profile
@intelliBrain
intelliBrain / index.js
Created December 12, 2018 18:33 — forked from WietseWind/index.js
XRP (XRPL) EscrowCreate using NodeJS (featuring Memos) - Used for: https://twitter.com/WietseWind/status/998968185532579840
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',