Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nimiq/accounts-client

Package Overview
Dependencies
Maintainers
8
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nimiq/accounts-client - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

package.json
{
"name": "@nimiq/accounts-client",
"version": "0.2.0",
"version": "0.2.1",
"main": "dist/AccountsClient.umd.js",

@@ -18,3 +18,3 @@ "module": "dist/AccountsClient.es.js",

"tslint": "^5.11.0",
"typescript": "^3.3.3333"
"typescript": "^3.4.2"
},

@@ -21,0 +21,0 @@ "files": [

@@ -87,3 +87,3 @@ # Nimiq Accounts Manager <!-- omit in toc -->

```javascript
document.getElementById('#checkoutButton').addEventListener('click', function(event){
document.getElementById('checkoutButton').addEventListener('click', function(event){
accountsClient.checkout(/* see details below */);

@@ -196,5 +196,5 @@ });

// [optional] Extra data that should be sent with the transaction.
// Type: Uint8Array | Nimiq.SerialBuffer
// Type: string | Uint8Array | Nimiq.SerialBuffer
// Default: new Uint8Array(0)
//extraData: Nimiq.BufferUtils.fromAscii('Hello Nimiq!'),
//extraData: 'Hello Nimiq!',

@@ -283,6 +283,5 @@ // [optional] Nimiq.Transaction.Flag, only required if the transaction

UI to the user. The main difference to `checkout()` is that it requires the
request to already include the sender's account ID and address as `accountId` and
`sender` respectively, as well as the transaction's `validityStartHeight`. The
created transaction will only be returned to the caller, not sent to the network
automatically.
request to already include the sender's address as `sender`, as well as the
transaction's `validityStartHeight`. The created transaction will only be
returned to the caller, not sent to the network automatically.

@@ -297,3 +296,2 @@ For brevity, most duplicate parameter explanations are omitted here, please

// Sender information
accountId: 'xxxxxxxx',
sender: 'NQxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx',

@@ -544,5 +542,4 @@

call `signMessage()` with the following request object. If you do not include
_both_ the `accountId` _and_ `signer` properties, the user will be prompted to
select an address from their available accounts. The message can be either a
string or a Uint8Array byte array.
a `signer` property, the user will be prompted to select an address from their
available accounts. The message can be either a string or a Uint8Array byte array.

@@ -558,5 +555,2 @@ ```javascript

// [optional] The ID of the account with which to sign
accountId: 'xxxxxxxx',
// [optional] The human-readable address with which to sign

@@ -563,0 +557,0 @@ signer: 'NQxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc