diff --git a/docs/enums/unit.html b/docs/enums/unit.html index a2d5937..11b63f4 100644 --- a/docs/enums/unit.html +++ b/docs/enums/unit.html @@ -1055,7 +1055,7 @@ img { max-width: 100%; }
KNano: = "KNano"
@@ -1070,7 +1070,7 @@ img { max-width: 100%; }
MNano: = "MNano"
@@ -1085,7 +1085,7 @@ img { max-width: 100%; }
NANO: = "NANO"
@@ -1100,7 +1100,7 @@ img { max-width: 100%; }
Nano: = "Nano"
@@ -1115,7 +1115,7 @@ img { max-width: 100%; }
hex: = "hex"
@@ -1130,7 +1130,7 @@ img { max-width: 100%; }
knano: = "knano"
@@ -1145,7 +1145,7 @@ img { max-width: 100%; }
nano: = "nano"
@@ -1160,7 +1160,7 @@ img { max-width: 100%; }
raw: = "raw"
diff --git a/docs/index.html b/docs/index.html index f48a526..a91ce86 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1055,7 +1055,7 @@ img { max-width: 100%; }
  • @@ -1089,7 +1089,7 @@ img { max-width: 100%; }
  • @@ -1122,7 +1122,7 @@ img { max-width: 100%; }
  • @@ -1155,7 +1155,7 @@ img { max-width: 100%; }
  • @@ -1189,7 +1189,7 @@ img { max-width: 100%; }
  • @@ -1222,7 +1222,7 @@ img { max-width: 100%; }
  • @@ -1255,7 +1255,7 @@ img { max-width: 100%; }
  • @@ -1288,7 +1288,7 @@ img { max-width: 100%; }
  • @@ -1327,7 +1327,7 @@ img { max-width: 100%; }
  • @@ -1365,7 +1365,7 @@ img { max-width: 100%; }
  • @@ -1405,7 +1405,7 @@ img { max-width: 100%; }
  • @@ -1443,7 +1443,7 @@ img { max-width: 100%; }
  • @@ -1475,7 +1475,7 @@ img { max-width: 100%; }
  • @@ -1513,7 +1513,7 @@ img { max-width: 100%; }
  • @@ -1536,7 +1536,7 @@ img { max-width: 100%; }
  • @@ -1568,7 +1568,7 @@ img { max-width: 100%; }
  • @@ -1600,7 +1600,7 @@ img { max-width: 100%; }
  • @@ -1632,7 +1632,7 @@ img { max-width: 100%; }
  • diff --git a/docs/interfaces/blockdata.html b/docs/interfaces/blockdata.html index 17de4ff..3199afa 100644 --- a/docs/interfaces/blockdata.html +++ b/docs/interfaces/blockdata.html @@ -1051,7 +1051,7 @@ img { max-width: 100%; }
    balance: string
    @@ -1066,7 +1066,7 @@ img { max-width: 100%; }
    link: string
    @@ -1081,7 +1081,7 @@ img { max-width: 100%; }
    previous: string
    @@ -1096,7 +1096,7 @@ img { max-width: 100%; }
    representative: string
    @@ -1111,7 +1111,7 @@ img { max-width: 100%; }
    work: string | null
    diff --git a/docs/interfaces/computeworkparams.html b/docs/interfaces/computeworkparams.html index bdd639f..3a65b93 100644 --- a/docs/interfaces/computeworkparams.html +++ b/docs/interfaces/computeworkparams.html @@ -1039,7 +1039,7 @@ img { max-width: 100%; }
    workerCount: number
    @@ -1054,7 +1054,7 @@ img { max-width: 100%; }
    workerIndex: number
    diff --git a/docs/interfaces/convertparams.html b/docs/interfaces/convertparams.html index 0f9e265..90eb7aa 100644 --- a/docs/interfaces/convertparams.html +++ b/docs/interfaces/convertparams.html @@ -1039,7 +1039,7 @@ img { max-width: 100%; }
    from: Unit
    @@ -1054,7 +1054,7 @@ img { max-width: 100%; }
    to: Unit
    diff --git a/docs/interfaces/deriveaddressparams.html b/docs/interfaces/deriveaddressparams.html index c438c49..4984a06 100644 --- a/docs/interfaces/deriveaddressparams.html +++ b/docs/interfaces/deriveaddressparams.html @@ -1035,7 +1035,7 @@ img { max-width: 100%; }
    useNanoPrefix: undefined | true | false
    diff --git a/docs/interfaces/hashblockparams.html b/docs/interfaces/hashblockparams.html index baae981..7d80232 100644 --- a/docs/interfaces/hashblockparams.html +++ b/docs/interfaces/hashblockparams.html @@ -1051,7 +1051,7 @@ img { max-width: 100%; }
    account: string
    @@ -1066,7 +1066,7 @@ img { max-width: 100%; }
    balance: string
    @@ -1081,13 +1081,14 @@ img { max-width: 100%; }
    link: string

    The account or block hash meant as a link, in address or hexadecimal format

    +

    Read more on the Official Nano Wiki

    @@ -1096,13 +1097,14 @@ img { max-width: 100%; }
    previous: string

    The hash of the previous block on the account chain, in hexadecimal format

    +

    0000000000000000000000000000000000000000000000000000000000000000 if open block.

    @@ -1111,7 +1113,7 @@ img { max-width: 100%; }
    representative: string
    diff --git a/docs/interfaces/signblockparams.html b/docs/interfaces/signblockparams.html index 2f86733..6fd84fd 100644 --- a/docs/interfaces/signblockparams.html +++ b/docs/interfaces/signblockparams.html @@ -1039,7 +1039,7 @@ img { max-width: 100%; }
    hash: string
    @@ -1054,7 +1054,7 @@ img { max-width: 100%; }
    secretKey: string
    diff --git a/docs/interfaces/validateworkparams.html b/docs/interfaces/validateworkparams.html index bf3c514..db92c1c 100644 --- a/docs/interfaces/validateworkparams.html +++ b/docs/interfaces/validateworkparams.html @@ -1039,7 +1039,7 @@ img { max-width: 100%; }
    blockHash: string
    @@ -1054,7 +1054,7 @@ img { max-width: 100%; }
    work: string
    diff --git a/docs/interfaces/verifyblockparams.html b/docs/interfaces/verifyblockparams.html index 5f4f768..ca4427e 100644 --- a/docs/interfaces/verifyblockparams.html +++ b/docs/interfaces/verifyblockparams.html @@ -1043,7 +1043,7 @@ img { max-width: 100%; }
    hash: string
    @@ -1058,7 +1058,7 @@ img { max-width: 100%; }
    publicKey: string
    @@ -1073,7 +1073,7 @@ img { max-width: 100%; }
    signature: string
    diff --git a/src/hash.ts b/src/hash.ts index e9e3579..b718865 100644 --- a/src/hash.ts +++ b/src/hash.ts @@ -20,13 +20,21 @@ STATE_BLOCK_PREAMBLE_BYTES[31] = 6; export interface HashBlockParams { /** The account address */ account: string; - /** The hash of the previous block on the account chain, in hexadecimal format */ + /** + * The hash of the previous block on the account chain, in hexadecimal format + * + * `0000000000000000000000000000000000000000000000000000000000000000` if `open` block. + */ previous: string; /** The destination address */ representative: string; /** The resulting balance, in raw */ balance: string; - /** The account or block hash meant as a link, in address or hexadecimal format */ + /** + * The account or block hash meant as a link, in address or hexadecimal format + * + * Read more on the [Official Nano Wiki](https://github.com/nanocurrency/raiblocks/wiki/Universal-Blocks-Specification) + */ link: string; }