-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zach Alam
committed
Dec 10, 2020
1 parent
c8735b8
commit 72c66ef
Showing
6 changed files
with
60 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
## Structure | ||
The `receipt` object is an object returned by many methods of the BitFact library. It contains important information about the data recorded on blockchain. At the very least the receipt object contains a `txid` and `hash`. A `meta` sub-object may be given but the information contained inside in not guaranteeed. | ||
|
||
## Example | ||
```javascript | ||
{ | ||
txid: '0x00188a9f1b03aafaa0bb38f7188dc5d0afc7ba8190336ea9352c9b1823e0fce9', | ||
hash: '7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069', | ||
meta: { | ||
info: { chain: 'ropsten' }, | ||
fact: { | ||
algo: 'sha256', | ||
hash: '7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069', | ||
type: 'text', | ||
memo: 'hello world memo' | ||
}, | ||
tx: { | ||
blockHash: '0x54faf738ed12cd0303585875fc145340293f890410dc4848c9fcd9d386c56bee', | ||
blockNumber: 9230680, | ||
contractAddress: null, | ||
cumulativeGasUsed: 2389412, | ||
from: '0x9bdf7a7f7fdf391b6efd32d16c2594ade09ff041', | ||
gasUsed: 23240, | ||
logs: [], | ||
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', | ||
status: true, | ||
to: '0x00000000000000000000000000000000000000bf', | ||
transactionHash: '0x00188a9f1b03aafaa0bb38f7188dc5d0afc7ba8190336ea9352c9b1823e0fce9', | ||
transactionIndex: 23 | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Common Errors | ||
This page documents a list of common errors that you may run into (and their possible solutions) when using the BitFact library. | ||
|
||
### Invalid Sender | ||
```javascript | ||
UnhandledPromiseRejectionWarning: Error: Returned error: invalid sender | ||
at Object.ErrorResponse (/BitFact/node_modules/web3-core-helpers/lib/errors.js:28:19) | ||
``` | ||
|
||
This error occurse when the privateKey for a given account does not have any Ethereum in their respective account. | ||
|
||
- Verify that the account specified by `privateKey` has enough Ethereum. | ||
- Verify the { chain: } parameter is being specified in the BitFact constructor. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters