Questions tagged [safe-core-sdk]
Developer support questions for the Gnosis Safe core SDK and tools that facilitate the interaction with the Safe contract and services.
54
questions
0
votes
1
answer
18
views
Adding a new chain to the safe-global/safe-deployments repository?
I want to deploy the Safe app on a custom EVM-compatible network using the safe-infrastructure repository.
What does adding a new chain like Thundercore Mainnet to the safe-deployments repository mean ...
0
votes
0
answers
11
views
Serializing SafeTransaction
How do I serialize SafeTransaction into a string and construct it from a string back to the instance with all data and signatures?
Using the safe-core-sdk, how does one serialize SafeTransaction (...
1
vote
2
answers
41
views
UUPS upgradable Transaction Guard smart contract not working with Genosis Safe
I have written a Transaction Guard smart contract What is Transaction Guard which is upgradable (UUPS method openzappelin What is upgradable contracts). So when we deploy this Transaction Guard Smart ...
1
vote
0
answers
25
views
Incomplete Safe Object after Gnosis Safe deployment via SDK
I am currently working on an OpenZeppelin Defender AutoTask script (which is in JS), making use of the safe-core-sdk.
The basics are working, I have successfully deployed a Safe via this script on ...
1
vote
0
answers
26
views
Using safe core sdk and creating the instance of EthAdapter
I am trying to create the instance of safe core sdk but it shows me an error such as ** TypeError: Web3Adapter is not a constructor**.
const Web3Adapter = require('@safe-global/safe-web3-lib');
const ...
0
votes
1
answer
15
views
Get if safe transaction was completed successfully
Context: I'm trying to integrate a contract call in React and I need to need call another contract call if the previous one is completed successfully. Is there any other way that we can know if the ...
0
votes
1
answer
30
views
Call Revert Exception on safeSdk for getOwners on Polygon only [intermittent]
Intermittent bug on polygon network that gives
"Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="getOwners()", data="0x", ...
0
votes
0
answers
14
views
update web-core and safe-core-sdk to use safe-deployments v1.18.0
I'm deploying safe-infrastructure for xinfin blockchain which is added in safe-deployments v1.18.0. When I create the first safe on UI, the console of web brower report error, such as Invalid ...
0
votes
0
answers
31
views
How do you deploy a smart contract from a Gnosis Safe?
I want to deploy a smart contract using my Safe. I know how to do it with Ethers.js using an EOA, but how can I have my own Gnosis Safe execute the contract deployment?
0
votes
1
answer
27
views
safe-ethers-lib: can't resolve stream when creating new ethAdapter
Getting this problem whenever I try to run
const ethAdapter = new EthersAdapter({
ethers,
signer: safeOwner
})
using the safe-ethers-lib
0
votes
0
answers
31
views
Gnosis backend not registering newly safe address created using gnosis sdk for some time and throwing error on Goerli testnet
I am deploying gnosis safe using gnosis safe core sdk on Goerli testnet. Issue is after safe gets deployed,safe code sdk functions like get safe assets, etc throwing 404 status code. Also, gnosis ui ...
0
votes
0
answers
52
views
Gnosis safe integration error
When I create a gnosis safe from their website and hardcode the address to buy a nft using thirdweb it works.
But when I create a safe using their sdk and pass in that address to the buyOutListing of ...
0
votes
0
answers
58
views
Getting 'Error: missing revert data in call exception' when calling safeSdk.executeTransaction()
Once the transaction is signed by all the owners, I'm trying to execute it with the executeTransaction() safeSdk method but the transaction is being reverted and it returns me this error =>
Error: ...
0
votes
0
answers
72
views
Getting `422` api error while executing a transaction using gnosis safe sdk
I have implemented the sdk for signing and sending custom tokens to other users from the gnosis treasury wallet. However, I am receiving the 422 api transaction error.
Currently I am getting the ...
0
votes
0
answers
74
views
GS026-Cannot execute Txn on Gnosis
I have the following issue:
I create, sign, and propose a transaction with safe-core-sdk.
This transaction then goes to another dapp where an owner address approves using metamask.
On gnosis UI at ...
0
votes
0
answers
54
views
Transaction Hash for transaction in dataDecoded of a Safe Transaction
May I know is there any way to get the transaction hash of smart contract function call which being executed via safeSdk.executeTransaction(safeTransaction), in dataDecodedresult when calling ...
0
votes
1
answer
117
views
GS025: Hash Has Not Been Approved Gnosis
I am getting the GS025 error from Tenderly.
The flow of my development is this: my own application using gnosis safe-core-sdk signs and proposes transactions to the gnosis safe on goerli or polygon.
I'...
0
votes
1
answer
61
views
Gnosis safe refund amount is not equal to gas fee
I am trying to enable a gas fee refund by referring to this doc. The refund thing is working but I am not able to get the exact refund which is equal to the actual gas fee. The refund amount is either ...
0
votes
1
answer
258
views
Creating multi-send transactions for native chain tokens (MATIC/ETH)
I am building up a multi-send transaction using the safe-core-sdk which will then be proposed using the safe-service-client's proposeTransaction method.
I am able to do this currently for deployed ...
0
votes
0
answers
161
views
How to notify other owners of gnosis safe when a transaction is created and also to check if a transaction is in queue with api or sdk?
I have a use case where a safe will have multiple owners and as soon a transaction is created other owners should be notified of the pending transaction. In order to do this, should I maintain this ...
0
votes
1
answer
425
views
Cannot read properties of undefined (reading 'getChainId')
I am calling below method to instantiate a safe :
// here props.account contains signedin owner address
var web3 = new Web3(Web3.givenProvider);
const ethAdapterOwner1 = new Web3Adapter({
...
0
votes
1
answer
191
views
"Invalid Multi Send contract address" on Harmony
I'm using @gnosis.pm/safe-core-sdk to connect to a safe on Harmony Mainnet. This exact same code is used on other EVM based chains without issues.
Stacktrace:
instrument.ts?6969:130 Error: Invalid ...
0
votes
0
answers
57
views
executeTransaction function's estimated gas limit was not enough to execute the transaction
When I executed a transaction with executeTransaction function then it failed on Ethereum Mainnet due to out of gas but when I tried again then it succeed. I compared the gas limits of both the ...
0
votes
1
answer
138
views
Is there a way to get safe addresses associated with an owner address?
I am trying to use Gnosis safe core sdk(https://github.com/gnosis/safe-core-sdk) to build an application.
Once application is connected to a user through metamask, is there a way to fetch safe ...
0
votes
1
answer
280
views
Getting "error: cannot estimate gas" on Ethereum mainnet but not on Rinkeby?
I am trying to execute a gnosis safe transaction on Ethereum mainnet but consistently this error -
error: cannot estimate gas; transaction may fail or may require manual gas limit (error={\"code\&...
1
vote
1
answer
86
views
Move transaction to Different Nonce, Keep signatures
Setup is as follows:
nonce=1: 2/8 approved
nonce=2: 8/8 approved
I want to do the tx at nonce=2 before nonce=1 but I don't want to recreate the TX and set the nonce because then I need to wrangle 8 ...
1
vote
1
answer
43
views
Track Gnosis Safes Created from Specific Source
we are using the safe API to create safes for our users and we want to track things like safes created, ETH volume, erc20/NFTs owned in the safe, etc. through platforms like Dune. We aren't using any ...
2
votes
1
answer
111
views
deploySafe function not returns transaction hash?
Currently when we call the const safeSdk: Safe = await safeFactory.deploySafe({ safeAccountConfig }) then we have to wait for the transaction success and mainly for the newly deployed safe address. ...
0
votes
0
answers
21
views
How to get owners of a Safe after deploying a smart contract [duplicate]
I am getting an error while logging the owner1 when running the script which prints the JSON_RPC on the terminal. How do i get the owners who were involved in deploying the Safe contract
1
vote
2
answers
335
views
Proposed transaction doesnt appear in queue, and can't be confirmed
I'm using the safe-core-sdk to propose a transaction to my Gnosis safe.
Once proposed, I can view the transaction by going to it directly with this URL: https://gnosis-safe.io/app/eth:...
0
votes
1
answer
71
views
Gnosis-Chain_ID error
I am trying to deploy a Safe smart contract but am getting an error that says
Here is the deployment code:
const { SafeFactory, ethAdapter } = require ('@gnosis.pm/safe-core-sdk')
import Safe from &...
1
vote
2
answers
520
views
How to use eip-712 to sign with safe-core-sdk
According to this guide.
Now we can use code below to sign a safe transaction.
const txHash = await sdk.getTransactionHash(safeTransaction);
const signature = await sdk.signTransactionHash(...
0
votes
1
answer
262
views
How to initialise existing Gnosis SAFE and create transaction?
I have a node.js file where I want to initialise an existing Gnosis SAFE where my address is a signer and create transactions with it.
I'm on the SDK version 1.3.0 and this is my code -->
const { ...
0
votes
1
answer
68
views
'origin' field not exist in SafeTransactionData
On this rest api Doc https://safe-transaction.gnosis.io the SafeMultisigTransaction Input type has property 'origin' that's supposed to "give more information about the transaction".
This ...
0
votes
0
answers
149
views
Multi send transactions are no longer displaying actions
Previously on the Gnosis Safe UI, when I proposed a multi-send safe transaction using the safe-core-sdk and safe-service-client, I was able to see each action associated with that tx.
Now when I send ...
0
votes
2
answers
3k
views
Getting 'TypeError: Cannot read properties of undefined (reading 'arrayify')' while signing safeTransaction with ethAdapter
I am getting the following error while signing a simple ether transfer transaction with the Safe Core SDK.
const ethAdapter = new EthersAdapter({
ethers: ether3,
signer: ether3.getSigner(0),
})
...
1
vote
1
answer
350
views
How can you identify if a transaction has been rejected on the gnosis safe transaction service using the core-sdk
I am using the safe-core-sdk to propose transactions to the Gnosis Safe Transaction Service.
When the transaction has been proposed, I am then checking frequently via a job whether the transaction has ...
1
vote
1
answer
210
views
Is there a limit to the amount of transfers in a multi-send transcation
Have been using the safe-core-sdk to propose transactions containing a bunch of ERC20 token transfers. Is there a limit, or maximum amount of transfers, that can be part of this multisend transaction?
...
1
vote
1
answer
159
views
Does a safe-core-sdk multi-send transaction revert if one of the actions fails?
Am currently using the Gnosis safe-core-sdk and safe-service-client. Am building out some functionality which batch sends varying amounts of tokens to various addresses using the multi send feature ...
0
votes
1
answer
185
views
Gnosis safe-core-sdk : EthersAdapter is giving empty object
I'm trying to use safe-core-sdk on our Dapp but the EthersAdapter instance creation is always giving empty object even the signer is getting from the provider is working fine
Lib used : ether.js ^5....
0
votes
2
answers
253
views
safeTxGas always ends up being 0 which causes revert inside multisend contract
Making a follow up thread since it was recommended to post the full code snippet: "Out of gas" revert inside the multisend contract
We are still having the issue of the revert inside the ...
1
vote
1
answer
173
views
Getting an error while calling 'safeSdk.executeTransaction()'
I have a safe with 1 owner and 1 threshold. I am trying to do a simple token transfer transaction but getting an error.
// Able to create and sign transaction off-chain successfully
{
"...
2
votes
1
answer
460
views
How to use Safe Core SDK in backend(Node.js)?
I want to use Gnosis Safe's Multisig wallet both from a web app(Next.js) and a mobile app(React Native). For this, using Safe Core SDK on the backend and building APIs using it seems a good approach. ...
0
votes
2
answers
169
views
"Out of gas" revert inside the multisend contract
I got the refundReceiver working (had been passing the separate transactions into the encodeMulti function instead of the array of transactions into createTransaction) but I get an "out of gas&...
0
votes
1
answer
55
views
How do I reimburse the gas fee (in ether) to the signer using the safe-core-sdk?
I thought reimbursing the signer who is executing the transaction in ether from the safe's ether would be as simple as adding in that refundReceiver param but what I am missing? Thanks!
const ...
1
vote
0
answers
84
views
How Safe UI creates new Safe?
I am creating a frontend similar to Safe UI using which users can create new multi-sig wallets for themselves. I am using Safe Core SDK on my front end (Next.js). Now when I deploy the new safe I face ...
1
vote
1
answer
128
views
Creating a Txn end to end
Hi not needing this now but I think the docs needs some work to produce a start to end flow of all the code as the parts and pieces don't really work together currently.
I start with the below from ...
2
votes
1
answer
543
views
GS025 error when executing Gnosis Safe multisig transaction
I'm having problems with executing a multisig transaction on a 2/2 Gnosis Safe. I've successfully executed single sig transactions on a different vault, but I can't get multisig to work:
After ...
1
vote
0
answers
680
views
How to use Safe Core SDK & Gnosis Safe Transaction Service API together?
What I understood is using Safe Core SDK - we can create safes and execute transactions and using Gnosis Safe Transaction Service API we can track the transactions. If this is correct then:
How to ...
1
vote
1
answer
537
views
Executing Transaction
https://docs.gnosis-safe.io/build/sdks/core-sdk
Looking at the above, I can approve a transaction taking the txHash from the API.
But if I want to execute the transaction as below it takes a ...