Skip to content

Commit

Permalink
Merge pull request #74 from WalletConnect/hooked-wallet-subprovider
Browse files Browse the repository at this point in the history
Hooked wallet subprovider
  • Loading branch information
pedrouid committed Apr 1, 2019
2 parents 3a49275 + d173f6a commit 0ac6990
Show file tree
Hide file tree
Showing 18 changed files with 5,680 additions and 4,622 deletions.
24 changes: 24 additions & 0 deletions README.md
Expand Up @@ -115,6 +115,30 @@ walletConnector
.catch(console.error);
```

### Sign Transaction \(eth_signTransaction\)

```javascript
/**
* Draft transaction
*/
const tx = {
from: "0xbc28ea04101f03ea7a94c1379bc3ab32e65e62d3",
to: "0x0000000000000000000000000000000000000000",
nonce: 1,
gas: 100000,
value: 0,
data: "0x0"
};

/**
* Sign transaction
*/
walletConnector
.sendTransaction(tx)
.then(console.log)
.catch(console.error);
```

### Sign Message \(eth_sign\)

```javascript
Expand Down
24 changes: 24 additions & 0 deletions packages/browser/README.md
Expand Up @@ -99,6 +99,30 @@ walletConnector
.catch(console.error);
```

### Sign Transaction \(eth_signTransaction\)

```javascript
/**
* Draft transaction
*/
const tx = {
from: "0xbc28ea04101f03ea7a94c1379bc3ab32e65e62d3",
to: "0x0000000000000000000000000000000000000000",
nonce: 1,
gas: 100000,
value: 0,
data: "0x0"
};

/**
* Sign transaction
*/
walletConnector
.sendTransaction(tx)
.then(console.log)
.catch(console.error);
```

### Sign Message \(eth_sign\)

```javascript
Expand Down

0 comments on commit 0ac6990

Please sign in to comment.