Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
Algodot
Algorand integration in Godot
Supported Engine Version
3.4
Version String
0.3
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL
algodot
Algorand integration in Godot
Download the addon
Link coming soon!
Usage
Initializing the Algod object
algod = Algod.new()
algod.url = "http://localhost:4001"
algod.token = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
add_child(algod)
Test connections using .health()
assert(yield(algod.health(), "completed") == OK)
Sending transactions
var from_mnemonic = "your twenty five word mnemonic ..."
var from_address = algod.get_address(from_mnemonic)
# Get suggested parameters
var params = yield(algod.suggested_transaction_params(), "completed")
# Generate a new account
var to_account = algod.generate_key()
# Create and sign transaction
var tx = algod.construct_payment(params, from_address, account[0], 123456789)
var stx = algod.sign_transaction(tx, from_mnemonic)
var txid = yield(algod.send_transaction(stx), "completed")
# Wait for confirmation
yield(algod.wait_for_transaction(txid), "completed")
var info = yield(algod.account_information(account[0]), "completed")
assert(info.amount == 123456789)
For more examples, check out the test script.
Algorand integration in Godot
Reviews
Quick Information
Algodot
Algorand integration in Godot
Supported Engine Version
3.4
Version String
0.3
License Version
MIT
Support Level
community
Modified Date
2 years ago
Git URL
Issue URL