Skip to content

Instantly share code, notes, and snippets.

@namankumar
namankumar / FeeCalc.js
Last active January 23, 2024 00:19
Resource Calculation on Soroban
var SorobanClient = require('soroban-client');
var server = new SorobanClient.Server('https://rpc-futurenet.stellar.org');
(async function main() {
const account = await server.getAccount("GAN2NFRHWTY5ZNF6OQOWHOZWISA6HFFNFCX2XQMU4FJ5GMG36O7GJHVN");
const fee = 100;
const contract = new SorobanClient.Contract("CAO4K2VSHMLIKSE2PWZKD5HJH4I4VLT66T7IONQCWKTPZN2IG7GPNXQU");
let transaction = new SorobanClient.TransactionBuilder(account, {
YUI.add('logismo', function(Y) {
/**
* Logismo
*/
var Logismo,
LOGISMO = 'logismo',
EVENTS_RESOURCE_PATH = 'eventsResourcePath',