All Projects → nebulasio → Neb.android

nebulasio / Neb.android

An Android SDK of Nebulas payment

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Neb.android

Stratisbitcoinfullnode
Bitcoin full node in C#
Stars: ✭ 757 (+4105.56%)
Mutual labels:  blockchain
Holochain Proto
Holographic storage for distributed applications -- a validating monotonic DHT "backed" by authoritative hashchains for data provenance (a Ceptr sub-project)
Stars: ✭ 795 (+4316.67%)
Mutual labels:  blockchain
Docuhash
Simple PoC that shows you how to use IPFS and Ethereum blockchain to store files and their information.
Stars: ✭ 17 (-5.56%)
Mutual labels:  blockchain
Typechain
🔌 TypeScript bindings for Ethereum smart contracts
Stars: ✭ 769 (+4172.22%)
Mutual labels:  blockchain
Ebookcoin
Ebookcoin has been updated to DDN Blockchain,please get it from https://github.com/ddnlink/ddn
Stars: ✭ 789 (+4283.33%)
Mutual labels:  blockchain
Oyente
An Analysis Tool for Smart Contracts
Stars: ✭ 820 (+4455.56%)
Mutual labels:  blockchain
Ethereum Development With Go Book
📖 A little book on Ethereum Development with Go (golang)
Stars: ✭ 754 (+4088.89%)
Mutual labels:  blockchain
Abci Host
Clojure host/server for Tendermint's ABCI protocol.
Stars: ✭ 18 (+0%)
Mutual labels:  blockchain
Awesome Decentralized Finance
A curated list of awesome decentralized finance projects
Stars: ✭ 793 (+4305.56%)
Mutual labels:  blockchain
Graph Node
Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
Stars: ✭ 884 (+4811.11%)
Mutual labels:  blockchain
Ckb
The Nervos CKB is a public permissionless blockchain, and the layer 1 of Nervos network.
Stars: ✭ 775 (+4205.56%)
Mutual labels:  blockchain
Nanocoin
A toy currency
Stars: ✭ 787 (+4272.22%)
Mutual labels:  blockchain
Diesel
A safe, extensible ORM and Query Builder for Rust
Stars: ✭ 7,702 (+42688.89%)
Mutual labels:  blockchain
Awesome Cryptoeconomics
An awesome curated list of Cryptoeconomic research and learning materials
Stars: ✭ 763 (+4138.89%)
Mutual labels:  blockchain
Blockchain Reading List
Blockchain Manchester Meetups, Talks and Reading List
Stars: ✭ 17 (-5.56%)
Mutual labels:  blockchain
Lbry Sdk
The LBRY SDK for building decentralized, censorship resistant, monetized, digital content apps.
Stars: ✭ 7,169 (+39727.78%)
Mutual labels:  blockchain
Filenation
The simplest way to send your files around the world using IPFS. ✏️ 🗃
Stars: ✭ 805 (+4372.22%)
Mutual labels:  blockchain
Snax
Decentralized Social Media Overlay
Stars: ✭ 18 (+0%)
Mutual labels:  blockchain
Eclair
A scala implementation of the Lightning Network.
Stars: ✭ 892 (+4855.56%)
Mutual labels:  blockchain
Fabric Multi Network
Stars: ✭ 16 (-11.11%)
Mutual labels:  blockchain

官方安卓星云钱包(nasnano)接入文档

(测试中,如有问题或建议请及时反馈)

nasnano下载地址:https://nano.nebulas.io/index_cn.html

安卓版本接入简述

在你的项目工程中引入该项目,下面的方式仅为示例(其他包依赖管理方式均可):

Build libnebulas目录下,libnebulas-release.aar

(1)将aar包复制到你项目的libs中

(2)在build.gradle中引入相关依赖描述

repositories {
    flatDir {
        dir 'libs'
    }
}
dependencies {
...
+    compile(name: 'libnebulas-release', ext: 'aar')
+    implementation 'com.squareup.okhttp3:okhttp:3.10.0'
+    implementation 'com.google.code.gson:gson:2.8.4'
...
}

调用接口

调用接口 pay

public static void pay(Context context,int mainNet, GoodsModel goods, String to, String value, String serialNumber)

        clickButton.setOnClickListener( new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub

                GoodsModel gm = new GoodsModel();
                gm.name = "mytestGood";       // 商品名称
                gm.desc = "mytestGoodDesp";   //商品描述
                String toAddr = "n1lxxx…………………………";  // 目标地址
                String valueInWei = "your value";    // your value
                
                String serialNumber = Util.getRandomCode(32);
                
                SmartContracts.pay(MainActivity.this ,Constants.MAIN_NET, gm, toAddr, valueInWei, serialNumber);

            }
        });

调用接口 call() 传入参数参考上面:

public static void call(Context context, int mainNet, GoodsModel goods, String to, String value, String[] args, String serialNumber)

调用接口 queryTransferStatus() :

queryTransferStatus(int mainNet, String serialNumber, final SmartContracts.TransferStatusCallback callback)

感谢社区小伙伴 大道 提供技术支持

本工程处于测试中,如有问题或建议请及时反馈

更多希望提供技术支持的小伙伴可以在 https://nebulas.io/developers.html 或官方微信群申请,期待来自你们的元气 :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].