How to use the stellar-base.xdr.Memo function in stellar-base

To help you get started, we’ve selected a few stellar-base examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stellar / js-stellar-sdk / lib / memo.js View on Github external
})(function (id) {
                if (Number(id) === "NaN") {
                    throw new Error("Expects a int64 as a string. Got " + id);
                }
                return xdr.Memo.memoId(id);
            })
        },
github stellar / js-stellar-sdk / lib / memo.js View on Github external
value: function none() {
                return xdr.Memo.memoNone();
            }
        },
github stellar / js-stellar-sdk / src / memo.js View on Github external
static hash(hash) {
        if (typeof hash === "string" && Buffer.byteLength(hash) != 32) {
            throw new Error("Expects a 32 byte hash value. Got " + Buffer.byteLength(hash) + " bytes instead");
        }
        return xdr.Memo.memoHash(hash);
    }