This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"script-token": { | |
"name": "token", | |
"commands": [ | |
"account create -n random --args privateKey:privKeyAcc1 --args name:nameAcc1 --args accountId:idAcc1", | |
"account create -n random --args privateKey:privKeyAcc2 --args name:nameAcc2 --args accountId:idAcc2", | |
"account create -n random --args privateKey:privKeyAcc3 --args name:nameAcc3 --args accountId:idAcc3", | |
"token create -n mytoken -s MTK -d 2 -i 1000 --supply-type infinite -a {{privKeyAcc1}} -t {{idAcc2}} -k {{privKeyAcc2}} --args tokenId,tokenId", | |
"token associate --account-id {{idAcc3}} --token-id {{tokenId}}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"accounts": { | |
"bert": { | |
"network": "testnet", | |
"alias": "bert", | |
"accountId": "0.0.7426198", | |
"type": "ecdsa", | |
"publicKey": "302d300706052b8104000a03220003732a9daae40e2a41ccd10dd35b521cbcafdd4bf906a66e37d0a65512a1d7db23", | |
"evmAddress": "a5accb5010ad3ee50c66a433d5b8fdfe0d0eab59", | |
"solidityAddress": "0000000000000000000000000000000000715096", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": [ | |
{ | |
"name": "createAccAndFT", | |
"commands": [ | |
"network use testnet", | |
"account create -a random", | |
"token create-ft -n m -s mm -d 2 -i 1000 -a 302e020100300506032b6570042204202a6568253a539643468dda3128a734c9fcb07a927b3f742719a869db731f9f50 -t 0.0.4536940 -k 302e020100300506032b6570042204202a6568253a539643468dda3128a734c9fcb07a927b3f742719a869db731f9f50" | |
] | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPERATOR_ID= | |
OPERATOR_PVKEY= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.clear(); | |
require("dotenv").config(); | |
const { | |
AccountId, | |
PrivateKey, | |
Client, | |
TokenCreateTransaction, | |
TokenUpdateTransaction, | |
TokenType, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"version": "1.0.0", | |
"additionalProperties": false, | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "Identifies the asset to which this token represents." | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
TokenCreateTransaction, | |
Hbar, | |
AccountCreateTransaction, | |
PrivateKey | |
} = require("@hashgraph/sdk"); | |
/* | |
* @return {AccountId} accountId | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "1", | |
"title": "Harry Potter and the Half-Blood Prince", | |
"author": "J.K. Rowling/Mary GrandPré", | |
"cover": "hard cover with dust jacket", | |
"language": "eng", | |
"publisher": "Scholastic Inc.", | |
"details": { | |
"isbn": "0439785960", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/http" | |
"io/ioutil" | |
) | |
func postRoute(rw http.ResponseWriter, req *http.Request) { | |
body, err := ioutil.ReadAll(req.Body) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "1", | |
"title": "Harry Potter and the Half-Blood Prince", | |
"author": "J.K. Rowling/Mary GrandPré", | |
"cover": "hard cover with dust jacket", | |
"language": "eng", | |
"publisher": "Scholastic Inc.", | |
"details": { | |
"isbn": "0439785960", |
NewerOlder