@nimiq/accounts-client
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"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'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72076
719