C# Класс BitcoinLib.BlockchainAPI.Wallet

https://blockchain.info/api/create_wallet -- https://github.com/blockchain/api-v1-client-csharp/blob/master/docs/wallet.md
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
ArchiveAddress ( string adr ) : string

To improve wallet performance addresses which have not been used recently should be moved to an archived state. They will still be held in the wallet but will no longer be included in the "list" or "list-transactions" calls.

Consolidate ( int Days ) : List

Queries to wallets with over 10 thousand addresses will become sluggish especially in the web interface. The auto_consolidate command will remove some inactive archived addresses from the wallet and insert them as forwarding addresses (see receive payments API). You will still receive callback notifications for these addresses however they will no longer be part of the main wallet and will be stored server side.

NewAddress ( string label = null ) : Address

Generating a new address.

Send ( string toAddress, long amount, string fromAddress = null, long fee = default(long?), string note = null ) : Info.Blockchain.API.Wallet.PaymentResponse

Send bitcoin from your wallet to another bitcoin address. All transactions include a 0.0001 BTC miners fee if not set.

UnArchiveAdrres ( string adr ) : string

Unarchive an address. Will also restore consolidated addresses.

Wallet ( string guid, string password, string secoundPassword = null, string apiCod = null ) : System

Wallet class that reflects the functionality documented at at https://blockchain.info/api/blockchain_wallet_api. It allows users to directly interact with their existing Blockchain.info wallet, send funds, manage addresses etc.

WalletBalance ( ) : long

Get balance of all wallet address.

getAddressBallance ( string adr, int confirmation ) : Address

Retrieve the balance of a bitcoin address.

getWalletAddress ( int confirmation ) : List

List all active addresses in a wallet. Also includes a 0 confirmation balance which should be used as an estimate only and will include unconfirmed transactions and possibly double spends.

Описание методов

ArchiveAddress() публичный Метод

To improve wallet performance addresses which have not been used recently should be moved to an archived state. They will still be held in the wallet but will no longer be included in the "list" or "list-transactions" calls.
public ArchiveAddress ( string adr ) : string
adr string Bitcoin adrress
Результат string

Consolidate() публичный Метод

Queries to wallets with over 10 thousand addresses will become sluggish especially in the web interface. The auto_consolidate command will remove some inactive archived addresses from the wallet and insert them as forwarding addresses (see receive payments API). You will still receive callback notifications for these addresses however they will no longer be part of the main wallet and will be stored server side.
public Consolidate ( int Days ) : List
Days int A good value for days is 60 i.e. addresses which have not received transactions in the last 60 days will be consolidated.
Результат List

NewAddress() публичный Метод

Generating a new address.
public NewAddress ( string label = null ) : Address
label string An optional label to attach to this address. It is recommended this is a human readable string e.g. "Order No : 1234". You May use this as a reference to check balance of an order.
Результат Address

Send() публичный Метод

Send bitcoin from your wallet to another bitcoin address. All transactions include a 0.0001 BTC miners fee if not set.
public Send ( string toAddress, long amount, string fromAddress = null, long fee = default(long?), string note = null ) : Info.Blockchain.API.Wallet.PaymentResponse
toAddress string Recipient Bitcoin Address.
amount long Amount to send in satoshi.
fromAddress string Send from a specific Bitcoin Address (Optional)
fee long Transaction fee value in satoshi (Must be greater than default fee) (Optional)
note string A public note to include with the transaction. Can only be attached when outputs are greater than 0.005 BTC. (Optional)
Результат Info.Blockchain.API.Wallet.PaymentResponse

UnArchiveAdrres() публичный Метод

Unarchive an address. Will also restore consolidated addresses.
public UnArchiveAdrres ( string adr ) : string
adr string Bitcoin adrress
Результат string

Wallet() публичный Метод

Wallet class that reflects the functionality documented at at https://blockchain.info/api/blockchain_wallet_api. It allows users to directly interact with their existing Blockchain.info wallet, send funds, manage addresses etc.
public Wallet ( string guid, string password, string secoundPassword = null, string apiCod = null ) : System
guid string Your wallet guid.
password string Your wallet password.
secoundPassword string Secoud password.
apiCod string API Code.
Результат System

WalletBalance() публичный Метод

Get balance of all wallet address.
public WalletBalance ( ) : long
Результат long

getAddressBallance() публичный Метод

Retrieve the balance of a bitcoin address.
public getAddressBallance ( string adr, int confirmation ) : Address
adr string The bitcoin address to lookup.
confirmation int Minimum number of confirmations required. 0 for unconfirmed.
Результат Address

getWalletAddress() публичный Метод

List all active addresses in a wallet. Also includes a 0 confirmation balance which should be used as an estimate only and will include unconfirmed transactions and possibly double spends.
public getWalletAddress ( int confirmation ) : List
confirmation int Minimum number of confirmations required. 0 for unconfirmed.
Результат List