web3j 2.0 update

9

Click here to load reader

Upload: conor-svensson

Post on 12-Apr-2017

178 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Web3j 2.0 Update

web3j 2.0An update

@conors10

Page 2: Web3j 2.0 Update

Transaction Managers

Choose how you transact with Ethereum blockchains

• Offline signing (web3j)

• Online signing (Ethereum client)

• What about other clients, e.g. Quorum?

Page 3: Web3j 2.0 Update

Transaction ManagersOptional EIP-155 (Replay attack) support

Use a full client

Use Quorum

Use web3j (default)

Page 4: Web3j 2.0 Update

Event filtersWorking with filters shouldn’t be hard

Geth/Parity:

1. Create filter

2. Poll for changes

3. Terminate filter

web3j:

• Simple (one line of code)

• Reactive (ReactiveX Observables)

Page 5: Web3j 2.0 Update

Reactive, typed events

Create an Observable stream

Solidity

Java

Page 6: Web3j 2.0 Update

Homebrew + build info$ brew tap web3j/web3j $ brew install web3j $ web3j version

_ _____ _ _ | | |____ (_) (_) __ _____| |__ / /_ _ ___ \ \ /\ / / _ \ '_ \ \ \ | | | / _ \ \ V V / __/ |_) |.___/ / | _ | || (_) | \_/\_/ \___|_.__/ \____/| |(_)|_| \___/ _/ | |__/

Version: 2.0.1 Build timestamp: 2017-02-21 06:19:33.654 UTC

Page 7: Web3j 2.0 Update

web3j + Spring

Spring Boot integration

• web3j-spring-boot-starter

Page 8: Web3j 2.0 Update

Other stuffLight wallet generation

• ~50msec light

• ~700 msec full

Fast IPC client connections

• Named pipe (Windows)

• Domain socket (OS X/Linux)

Default types

• Empty types for smart contract params - e.g. Uint256.DEFAULT

Page 9: Web3j 2.0 Update

https://web3j.io