|
5 | 5 |
|
6 | 6 | <!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
7 | 7 | <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
8 |
| -- [About source and GitHub repositories](#about-source-and-github-repositories) |
9 |
| - |
10 |
| -- [Introduction](#introduction) |
11 |
| - - [Preffered models](#preffered-models) |
12 |
| - - [Preffered keys Wallet Model (Account)](#preffered-keys-wallet-model-account) |
13 |
| - - [Preffered ERC-20 Model](#preffered-erc-20-model) |
14 |
| -- [Account Management](#account-management) |
15 |
| - - [Create Account](#create-account) |
16 |
| - - [With Private Key](#with-private-key) |
17 |
| - - [With Mnemonics Phrase](#with-mnemonics-phrase) |
18 |
| - - [Import Account](#import-account) |
19 |
| - - [With Private Key](#with-private-key-1) |
20 |
| - - [With Mnemonics Phrase](#with-mnemonics-phrase-1) |
21 |
| - - [Get Keystore Manager from wallet data](#get-keystore-manager-from-wallet-data) |
22 |
| - - [Get wallet private key](#get-wallet-private-key) |
23 |
| -- [Ethereum Endpoints interaction](#ethereum-endpoints-interaction) |
24 |
| - - [web3 instance](#web3-instance) |
25 |
| - - [Ethereum Address](#ethereum-address) |
26 |
| - - [Initializing](#initializing) |
27 |
| - - [Get Balance](#get-balance) |
28 |
| - - [Get ETH balance](#get-eth-balance) |
29 |
| - - [Get ERC20 token balance](#get-erc20-token-balance) |
30 |
| - - [Transactions Operations](#transactions-operations) |
31 |
| - - [Prepare Transaction](#prepare-transaction) |
32 |
| - - [Send Ether](#send-ether) |
33 |
| - - [Send ERC-20 Token](#send-erc-20-token) |
34 |
| - - [Write Transaction and call smart contract method](#write-transaction-and-call-smart-contract-method) |
35 |
| - - [Read Transaction to call smart contract method](#read-transaction-to-call-smart-contract-method) |
36 |
| - - [Send Transaction](#send-transaction) |
37 |
| - - [Write](#write) |
38 |
| - - [Read](#read) |
39 |
| - - [Chain state](#chain-state) |
40 |
| - - [Get Block number](#get-block-number) |
41 |
| -- [Websockets](#websockets) |
42 |
| - - [Web3socketDelegate](#web3socketdelegate) |
43 |
| - - [Custom Websocket Provider](#custom-websocket-provider) |
44 |
| - - [Connect to custom endpoint](#connect-to-custom-endpoint) |
45 |
| - - [Send message](#send-message) |
46 |
| - - [Infura Websocket interactions](#infura-websocket-interactions) |
47 |
| - - [Connect to Infura endpoint](#connect-to-infura-endpoint) |
48 |
| - - [Connect to custom Infura-like endpoint](#connect-to-custom-infura-like-endpoint) |
49 |
| - - [Create a filter in the node to notify when something happened](#create-a-filter-in-the-node-to-notify-when-something-happened) |
50 |
| - - [Get new pending transactions](#get-new-pending-transactions) |
51 |
| - - [Create a new subscription over particular events](#create-a-new-subscription-over-particular-events) |
52 |
| - - [Subscribe on new pending transactions](#subscribe-on-new-pending-transactions) |
53 |
| -- [ENS](#ens) |
54 |
| - - [Registry](#registry) |
55 |
| - - [Resolver](#resolver) |
56 |
| - - [BaseRegistrar](#baseregistrar) |
57 |
| - - [RegistrarController](#registrarcontroller) |
58 |
| - - [ReverseRegistrar](#reverseregistrar) |
| 8 | +- [About source and GitHub repositories](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#about-source-and-github-repositories) |
| 9 | + |
| 10 | +- [Introduction](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#introduction) |
| 11 | + - [Preffered models](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#preffered-models) |
| 12 | + - [Preffered keys Wallet Model (Account)](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#preffered-keys-wallet-model-account) |
| 13 | + - [Preffered ERC-20 Model](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#preffered-erc-20-model) |
| 14 | +- [Account Management](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#account-management) |
| 15 | + - [Create Account](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#create-account) |
| 16 | + - [With Private Key](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#with-private-key) |
| 17 | + - [With Mnemonics Phrase](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#with-mnemonics-phrase) |
| 18 | + - [Import Account](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#import-account) |
| 19 | + - [With Private Key](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#with-private-key-1) |
| 20 | + - [With Mnemonics Phrase](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#with-mnemonics-phrase-1) |
| 21 | + - [Get Keystore Manager from wallet data](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-keystore-manager-from-wallet-data) |
| 22 | + - [Get wallet private key](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-wallet-private-key) |
| 23 | +- [Ethereum Endpoints interaction](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#ethereum-endpoints-interaction) |
| 24 | + - [web3 instance](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#web3-instance) |
| 25 | + - [Ethereum Address](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#ethereum-address) |
| 26 | + - [Initializing](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#initializing) |
| 27 | + - [Get Balance](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-balance) |
| 28 | + - [Get ETH balance](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-eth-balance) |
| 29 | + - [Get ERC20 token balance](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-erc20-token-balance) |
| 30 | + - [Transactions Operations](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#transactions-operations) |
| 31 | + - [Prepare Transaction](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#prepare-transaction) |
| 32 | + - [Send Ether](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#send-ether) |
| 33 | + - [Send ERC-20 Token](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#send-erc-20-token) |
| 34 | + - [Write Transaction and call smart contract method](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#write-transaction-and-call-smart-contract-method) |
| 35 | + - [Read Transaction to call smart contract method](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#read-transaction-to-call-smart-contract-method) |
| 36 | + - [Send Transaction](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#send-transaction) |
| 37 | + - [Write](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#write) |
| 38 | + - [Read](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#read) |
| 39 | + - [Chain state](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#chain-state) |
| 40 | + - [Get Block number](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-block-number) |
| 41 | +- [Websockets](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#websockets) |
| 42 | + - [Web3socketDelegate](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#web3socketdelegate) |
| 43 | + - [Custom Websocket Provider](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#custom-websocket-provider) |
| 44 | + - [Connect to custom endpoint](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#connect-to-custom-endpoint) |
| 45 | + - [Send message](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#send-message) |
| 46 | + - [Infura Websocket interactions](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#infura-websocket-interactions) |
| 47 | + - [Connect to Infura endpoint](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#connect-to-infura-endpoint) |
| 48 | + - [Connect to custom Infura-like endpoint](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#connect-to-custom-infura-like-endpoint) |
| 49 | + - [Create a filter in the node to notify when something happened](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#create-a-filter-in-the-node-to-notify-when-something-happened) |
| 50 | + - [Get new pending transactions](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-new-pending-transactions) |
| 51 | + - [Create a new subscription over particular events](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#create-a-new-subscription-over-particular-events) |
| 52 | + - [Subscribe on new pending transactions](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#subscribe-on-new-pending-transactions) |
| 53 | +- [ENS](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#ens) |
| 54 | + - [Registry](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#registry) |
| 55 | + - [Resolver](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#resolver) |
| 56 | + - [BaseRegistrar](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#baseregistrar) |
| 57 | + - [RegistrarController](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#registrarcontroller) |
| 58 | + - [ReverseRegistrar](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#reverseregistrar) |
59 | 59 |
|
60 | 60 | <!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
61 | 61 |
|
62 |
| ---- |
63 |
| -- **[Introduction](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#introduction)** |
64 |
| - - *[Preffered models](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#preffered-models)* |
65 |
| - - [Preffered keys Wallet Model](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#preffered-keys-wallet-model-account) |
66 |
| - - [Preffered ERC-20 Model](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#preffered-erc-20-model) |
67 |
| -- **[Account Management](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#account-management)** |
68 |
| - - *[Create Account](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#create-account)* |
69 |
| - - [Create Account With Private Key](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#create-account-with-private-key) |
70 |
| - - [Create Account With Mnemonics Phrase](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#create-account-with-mnemonics-phrase) |
71 |
| - - *[Import Account](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#create-account)* |
72 |
| - - [Import Account With Private Key](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#import-account-with-private-key) |
73 |
| - - [Import Account With Mnemonics Phrase](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#import-account-with-mnemonics-phrase) |
74 |
| - - [Get Keystore Manager from wallet data](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-keystore-manager-from-wallet-data) |
75 |
| - - [Get wallet Private key](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-wallet-private-key) |
76 |
| -- **[Ethereum Endpoints interaction](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#ethereum-endpoints-interaction)** |
77 |
| - - [web3 instance](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#web3-instance) |
78 |
| - - [Ethereum Address](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#ethereum-address) |
79 |
| - - *[Get Balance](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-balance)* |
80 |
| - - [Getting ETH balance](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#getting-eth-balance) |
81 |
| - - [Getting ERC20 token balance](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#getting-erc20-token-balance) |
82 |
| - - *[Transactions Operations](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#transactions-operations)* |
83 |
| - - [Preparing Transaction For Sending Ether](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#preparing-transaction-for-sending-ether) |
84 |
| - - [Preparing Transaction For Sending ERC-20 Tokens](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#preparing-transaction-for-sending-erc-20-tokens) |
85 |
| - - [Preparing Write Transaction for sending to some Contract and use its method](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#preparing-write-transaction-for-sending-to-some-contract-and-use-its-method) |
86 |
| - - [Preparing Read Transaction to call some Contract method](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#preparing-read-transaction-to-call-some-contract-method) |
87 |
| - - [Send write transaction](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#writing) |
88 |
| - - [Send read transaction](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#reading) |
89 |
| - - [Get Block number](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-block-number) |
90 |
| -- **[Websockets](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#websockets)** |
91 |
| - - [Web3socketDelegate](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#web3socketdelegate) |
92 |
| - - [Get latest new pending transactions](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-latest-new-pending-transactions) |
93 |
| - - *[Custom Websocket Provider](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#custom-websocket-provider)* |
94 |
| - - [Connect to custom endpoint](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#connect-to-custom-endpoint) |
95 |
| - - [Send message](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#send-message) |
96 |
| - - *[Infura Websocket Provider](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#infura-websocket-provider)* |
97 |
| - - [Connect to Infura endpoint](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#connect-to-infura-endpoint) |
98 |
| - - [Connect to custom endpoint with API similar to Infura WSS endpoint](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#connect-to-custom-endpoint-with-api-similar-to-infura-wss-endpoint) |
99 |
| - - [Create a filter in the node to notify when something happened](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#create-a-filter-in-the-node-to-notify-when-something-happened) |
100 |
| - - [Get new pending transactions](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#get-new-pending-transactions) |
101 |
| - - [Create a new subscription over particular events](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#create-a-new-subscription-over-particular-events) |
102 |
| - - [Subscribe on new pending transactions](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#subscribe-on-new-pending-transactions) |
103 |
| -- **[ENS](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#ens)** |
104 |
| - - [Registry](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#registry) |
105 |
| - - [Resolver](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#resolver) |
106 |
| - - [BaseRegistrar](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#baseregistrar) |
107 |
| - - [RegistrarController](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#registrarcontroller) |
108 |
| - - [ReverseRegistrar](https://github.com/matter-labs/web3swift/blob/master/Documentation/Usage.md#reverseregistrar) |
109 |
| - |
110 | 62 | ## Introduction
|
111 | 63 |
|
112 | 64 | To work with platforms based on blockchain technology, in particular with Ethereum-like blockchains, developer must be fluent in concepts such as a crypto wallet, private and public key, smart contract, token and others. We will use these concepts without explaining their meanings. For more information about Ethereum, we recommend reading the book [Mastering Ethereum](https://github.com/ethereumbook/ethereumbook), by Andreas M. Antonopoulos and Gavin Wood.
|
|
0 commit comments