morceaux
{
"Name":"myfile",
"Hash":"Qme8q2XFoGJoMxTZkM21kxQfohk7MpRv5WNq8Vy57K5u74",
"Size":"197717"
}
Lovely Leopard
{
"Name":"myfile",
"Hash":"Qme8q2XFoGJoMxTZkM21kxQfohk7MpRv5WNq8Vy57K5u74",
"Size":"197717"
}
// Outputs Session ID
{"ID":"4a99a8a0-21a1-4e26-861f-9d725eb06012"}
// Generating a mnemonic
NSString *mnemonic = [NYMnemonic generateMnemonicString:@128 language:@"english"];
//=> @"letter advice cage absurd amount doctor acoustic avoid letter advice cage above"
NSString *seed = [NYMnemonic deterministicSeedStringFromMnemonicString:mnemonic
passphrase:@""
language:@"english"];
//=> "d71de856f81a8acc65e6fc851a38d4d7ec216fd0796d0a6827a3ad6ed5511a30fa280f12eb2e47ed2ac03b5c462a0358d18d69fe4f985ec81778c1b370b652a8"
// Storage upload a file with BTFS hash QmdBX8seLx4TGHwr8Tu9L2QSByaJ9bbFUpxFvKAYyxCf7b, price of 750000 μBTT, and contract length 35 days:
curl -X POST "http://localhost:5001/api/v1/storage/upload?arg=QmdBX8seLx4TGHwr8Tu9L2QSByaJ9bbFUpxFvKAYyxCf7b&price=750000&storage-length=35"
// Output storage hosts information
curl -X POST "http://localhost:5001/api/v1/storage/hosts/info?host-info-mode=all"
0 0 0 0 1 1 0 1
128 64 32 16 8 4 2 1