Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Incorrect padding #224

Open
algoarrayone opened this issue Jan 27, 2024 · 0 comments
Open

Error: Incorrect padding #224

algoarrayone opened this issue Jan 27, 2024 · 0 comments

Comments

@algoarrayone
Copy link

algoarrayone commented Jan 27, 2024

Following is my code.

from dydx3 import Client
from web3 import Web3
from pprint import pprint
from datetime import datetime, timedelta
from dydx3.constants import API_HOST_SEPOLIA

ETHEREUM_ADDRESS = "0x31e221e887e8Df2e199fddd337B3a0dDff088D6d"
ETH_PRIVATE_KEY = "0x0000000000000000000000000000000000000000000000000000000"

STARK_PRIVATE_KEY = "05f02655252949ef04887d14fa28fd394461a100cee9ded5a9d31ff552930a9f"
DYDX_API_KEY = "4400776c-fc51-34af-93d7-747cdbb24627"
DYDX_API_SECRET = "1Xv-RYJyOO_PRnA0sC5WpxA5kwdGu9GmUyMhOUL"
DYDX_API_PASSPHRASE = "Ue9LuYqMxEAZ02OQmHp6"
HOST = API_HOST_SEPOLIA

HTTP_PROVIDER = "https://eth-sepolia.g.alchemy.com/v2/QW8oPlBILbZSf7ypLSt4r0bzwBwyKgTM"

client = Client(
    host=HOST,
    api_key_credentials={
        "key": DYDX_API_KEY,
        "secret": DYDX_API_SECRET,
        "passphrase": DYDX_API_PASSPHRASE,
    },
    stark_private_key=STARK_PRIVATE_KEY,
    eth_private_key=ETH_PRIVATE_KEY,
    default_ethereum_address=ETHEREUM_ADDRESS,
    web3=Web3(Web3.HTTPProvider(HTTP_PROVIDER))
)

print(client.private.get_account().data)

When I try to print get_account().data, the error generated as "Incorrect padding". What it means?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant