调用钱包neon-js nep5资产转账代码报错

℉Nightmare`ヾ 15天前 54

{ Error: write EPROTO 101057795:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:openssl\ssl\s23_clnt.c:802:

    at _errnoException (util.js:1022:11)

    at WriteWrap.afterWrite [as oncomplete] (net.js:867:14)

  code: 'EPROTO',

  errno: 'EPROTO',

  syscall: 'write',

  config:

   { adapter: [Function],

     transformRequest: { '0': [Function] },

     transformResponse: { '0': [Function] },

     timeout: 5000,

     xsrfCookieName: 'XSRF-TOKEN',

     xsrfHeaderName: 'X-XSRF-TOKEN',

     maxContentLength: -1,

     validateStatus: [Function: validateStatus],

     headers:

      { Accept: 'application/json, text/plain, */*',

        'Content-Type': 'application/json',

        'User-Agent': 'axios/0.18.0',

        'Content-Length': 659 },

     method: 'post',

     url: 'https://seed6.cityofzion.io:443',

     data: '{"jsonrpc":"2.0","method":"sendrawtransaction","params":["d1015308004429353a00000014fc5b8b2f8c9b19dd382aee20f87db61037bcd8a0143c363ce691adfc546e144c39d5a6c3327e800c7153c1087472616e7366657267f56c89be8bfcdec617e2402b5c3fd5b6d71b820d0000000000000000000149b856b2fc14d083f1a77b4ef828090e289e6457d5bca7dd522a95b8e964fddf000001e72d286979ee6cb1b7e65dfddfb2e384100b8d148e7758de42e4168b71792c6001000000000000003c363ce691adfc546e144c39d5a6c3327e800c710141407e2a3149c75ef9508a7de33aad4543f71c7dd36e4a8d1fbefde8cc357cf9d39992cf2124b52f5cfca31c642c8ee222f381d16d47d69c4c2714377f7e2d94f093232102e8583084f9780fc5648a8accae4e17dec3511ec43863ba4fffae07d4a9767417ac"],"id":1234}' },

  request:

   Writable {

     _writableState:

      WritableState {

        objectMode: false,

        highWaterMark: 16384,

        finalCalled: false,

        needDrain: false,

        ending: false,

        ended: false,

        finished: false,

        destroyed: false,

        decodeStrings: true,

        defaultEncoding: 'utf8',

        length: 0,

        writing: false,

        corked: 0,

        sync: true,

        bufferProcessing: false,

        onwrite: [Function: bound onwrite],

        writecb: null,

        writelen: 0,

        bufferedRequest: null,

        lastBufferedRequest: null,

        pendingcb: 0,

        prefinished: false,

        errorEmitted: false,

        bufferedRequestCount: 0,

        corkedRequestsFree: [Object] },

     writable: true,

     domain: null,

     _events: { response: [Function], error: [Function] },

     _eventsCount: 2,

     _maxListeners: undefined,

     _options:

      { protocol: 'https:',

        maxRedirects: 21,

        maxBodyLength: 10485760,

        path: '/',

        method: 'post',

        headers: [Object],

        agent: undefined,

        auth: undefined,

        hostname: 'seed6.cityofzion.io',

        port: '443',

        nativeProtocols: [Object],

        pathname: '/' },

     _redirectCount: 0,

     _requestBodyLength: 659,

     _requestBodyBuffers: [ [Object] ],

     _onNativeResponse: [Function],

     _currentRequest:

      ClientRequest {

        domain: null,

        _events: [Object],

        _eventsCount: 6,

        _maxListeners: undefined,

        output: [],

        outputEncodings: [],

        outputCallbacks: [],

        outputSize: 0,

        writable: true,

        _last: true,

        upgrading: false,

        chunkedEncoding: false,

        shouldKeepAlive: false,

        useChunkedEncodingByDefault: true,

        sendDate: false,

        _removedConnection: false,

        _removedContLen: false,

        _removedTE: false,

        _contentLength: null,

        _hasBody: true,

        _trailer: '',

        finished: true,

        _headerSent: true,

        socket: [Object],

        connection: [Object],

        _header: 'POST / HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nUser-Agent: axios/0.18.0\r\nContent-Length: 659\r\nHost: seed6.cityofzion.io\r\nConnection: close\r\n\r\n',

        _onPendingData: [Function: noopPendingOutput],

        agent: [Object],

        socketPath: undefined,

        timeout: undefined,

        method: 'POST',

        path: '/',

        _ended: false,

        res: null,

        aborted: undefined,

        timeoutCb: null,

        upgradeOrConnect: false,

        parser: null,

        maxHeadersCount: null,

        _redirectable: [Circular],

        [Symbol(outHeadersKey)]: [Object] },

     _currentUrl: 'https://seed6.cityofzion.io:443/' },

  response: undefined }


最后于 11天前 被℉Nightmare`ヾ编辑 ,原因:
最新回复 (3)
全部楼主
  • 0 2
    neon-js 是coz开发的 。可以用我们的thinsdk-ts   
  • ℉Nightmare`ヾ 11天前
    0 3
    我用他们的封装好的库文件index.js,然后我搭建好nodeweb服务,做成接口,便宜java调用,哈哈,大神你们有没有直接封装好的库文件
  • 0 4
    ℉Nightmare`ヾ 我用他们的封装好的库文件index.js,然后我搭建好nodeweb服务,做成接口,便宜java调用,哈哈,大神你们有没有直接封装好的库文件
    nel的github中找一下  java的貌似有一个社区爱好者贡献了  java版本的thinsdk。
返回